btrfs-progs: check: introduce function to check an extent
[platform/upstream/btrfs-progs.git] / CHANGES
1 btrfs-progs-4.7 (2016-07-29)
2   * convert: fix creating discontig extents
3   * check: speed up traversing heavily reflinked extents within a file
4   * check: verify qgroups of higher levels
5   * check: repair can now fix wrong qgroup numbers
6   * balance: new option to run in the background
7   * defrag: default extent target size changed to 32MiB
8   * du: silently skip non-btrfs dirs/files
9   * documentation updates: btrfs(5), btrfs(8), balance, subvolume, scrub,
10     filesystem, convert
11   * bugfixes:
12     * unaligned access (reported for sparc64) in raid56 parity calculations
13     * use /bin/bash
14     * other stability fixes and cleanups
15   * more tests
16
17 btrfs-progs-4.6.1 (2016-06-24)
18   * fi resize: negative resize argument accepted again
19   * qgroup rescan: fix skipping when rescan is in progress
20   * mkfs: initialize stripesize to correct value
21   * testsuite updates, mostly convert tests
22   * documentation updates
23     * btrfs-device, btrfs-restore manual pages enhanced
24     * misc fixups
25
26 btrfs-progs-4.6 (2016-06-10)
27   * convert - major rewrite:
28     * fix a long-standing bug that led to mixing data blocks into metadata block
29       groups
30     * the workaround was to do full balance after conversion, which was
31       recommended practice anyway
32     * explicitly set the lowest supported version of e2fstools to 1.41
33   * provide and install udev rules file that addresses problems with device
34     mapper devices, renames after removal
35   * send: new option: quiet
36   * dev usage: report slack space (device size minus filesystem area on the dev)
37   * image: support DUP
38   * build: short options to enable debugging builds
39   * other:
40     * code cleanups
41     * build fixes
42     * more tests and other enhancements
43
44 btrfs-progs-4.5.3 (2016-05-11)
45   * ioctl: fix unaligned access in buffer from TREE_SEARCH; might cause SIGBUS
46     on architectures that do not support unaligned access and do not performa
47     any fixups
48   * improved validation checks of superblock and chunk-related structures
49   * subvolume sync: fix handling of -s option
50   * balance: adjust timing of safety delay countdown with --full-balance
51   * rescue super-recover: fix reversed condition check
52   * check: fix bytes_used accounting
53   * documentation updates: mount options, scrub, send, receive, select-super,
54     check, mkfs
55   * testing: new fuzzed images, for superblock and chunks
56
57 btrfs-progs-4.5.2 (2016-05-02)
58   * new/moved command: btrfs-calc-stats -> btrfs inspect tree-stats
59   * check: fix false alert for metadata blocks crossing stripe boundary
60   * check: catch when qgroup numbers mismatch
61   * check: detect running quota rescan and report mismatches
62   * balance start: add safety delay before doing a full balance
63   * fi sync: is now silent
64   * fi show: don't miss filesystems with partially matching uuids
65   * dev ready: accept only one argument for device
66   * dev stats: print "devid:N" for a missing device instead of "(null)"
67   * other:
68     * lowest supported version of e2fsprogs is 1.41
69     * minor cleanups, test updates
70
71 btrfs-progs-4.5.1 (2016-03-31)
72   * mkfs: allow DUP on multi-device filesystems
73   * bugfixes: build fixes, assorted other fixes
74
75 btrfs-progs-4.5 (2016-03-20)
76   New/moved commands:
77     * btrfs-show-super -> btrfs inspect-internal dump-super
78     * btrfs-debug-tree -> btrfs inspect-internal dump-tree
79
80   New commands:
81     * btrfs fi du - calculate disk usage, including shared extents
82
83   Enhancements:
84     * device delete - delete by id (needs kernel support, not merged to
85       4.6)
86     * check - new option to specify chunk root
87     * debug-tree/dump-tree - option -t understands human readable name of
88       the tree (along numerical ids)
89     * btrfs-debugfs - can dump block group information
90
91   Bugfixes:
92     * all commands should accept the option separator "--"
93     * several fixes in device scan
94     * restore works on filesystems with sectorsize > 4k
95     * debug-tree/dump-tree - print compression type as string
96     * subvol sync: fix crash, memory corruption
97     * argument parsing fixes: subvol get-default, qgroup create/destroy/
98       assign, inspect subvolid-resolve
99     * check for block device or regular file in several commands
100
101   Other:
102     * documentation updates
103     * manual pages for the moved tools now point to btrfs-filesystem
104     * testsuite updates
105
106 btrfs-progs-4.4.1 (2016-02-26)
107   * find-root: don't skip the first chunk
108   * free-space-tree compat bits fix
109   * build: target symlinks
110   * documentation updates
111   * test updates
112
113 btrfs-progs-4.4 (2016-01-18)
114   User visible changes:
115     * mkfs.btrfs --data dup
116
117   People asked about duplicating data on a single device for a long time. There
118   are no technical obstacles preventing that, so it got enabled with a warning
119   about potential dangers when the device will not do the duplicated copies. See
120   mkfs.btrfs section DUP PROFILES ON A SINGLE DEVICE.
121
122     * support balance filters added/enhanced in linux 4.4
123       * usage=min..max -- enhanced to take range
124       * stripes=min..max -- new, filter by stripes for raid0/10/5/6
125       * limit=min..max -- enhanced to take range
126   Note: due to backward compatibility, the range maximum for 'usage' is not
127   inclusive as for the others, to keep the same behaviour as usage=N .
128
129     * manual pages enhanced (btrfs, mkfs, mount, filesystem, balance)
130     * error messages updates, rewordings -- some fstests may break due to that
131     * added support for free-space-tree implementation of space cache -- this
132       requires kernel 4.5 and is not recommended for non-developers yet
133     * btrfs filesystem usage works with mixed blockgroups
134
135   Other:
136     * installation to /usr/local -- this has unintentionally changed during
137       conversion to autotools in 3.19
138     * check: fix a false alert where extent record has wrong metadata flag
139     * improved stability on fuzzed/crafted images when reading sys array in
140       superblock
141     * build: the 'ar' tool is properly detected during cross-compilation
142     * debug-tree: option -t understands ids for tree root and chunk tree
143     * preparatory work for btrfs-convert rewrite
144     * sparse, gcc warning fixes
145     * more memory allocation failure handling
146     * cleanups
147     * more tests
148
149   Bugfixes:
150     * chunk recovery: fix floating point exception
151     * chunk recovery: endianity bugfix during rebuild
152     * mkfs with 64K pages and nodesize reported superblock checksum mismatch
153     * check: properly reset nlink of multi-linked file
154
155 btrfs-progs-4.3.1 (2015-11-16)
156   * fixes
157     * device delete: recognize 'missing' again
158     * mkfs: long names are not trimmed when doing ssd check
159     * support partitioned loop devices
160   * other
161     * replace several mallocs with on-stack variables
162     * more memory allocation failure handling
163     * add tests for bugs fixed
164     * cmd-device: switch to new message printing helpers
165     * minor code cleanups
166
167 btrfs-progs-4.3 (2015-11-06)
168   * mkfs
169     * mixed mode is not forced for filesystems smaller than 1GiB
170     * mixed mode broken with mismatching sectorsize and nodesize, fixed
171     * print version info earlier
172     * print devices sorted by id
173     * do not truncate target image with --rootsize
174   * fi usage:
175     * don't print global block reserve
176     * print device id
177     * minor output tuning
178     * other cleanups
179   * calc-size:
180     * div-by-zero fix on an empty filesystem
181     * fix crash
182   * bugfixes:
183     * more superblock sanity checks
184     * consistently round size of all devices down to sectorsize
185     * misc leak fixes
186     * convert: don't try to rollback with a half-deleted ext2_saved
187       subvolume
188   * other:
189     * check: add progress indicator
190     * scrub: enhanced error message
191     * show-super: read superblock from a given offset
192     * add README
193     * docs: update manual page for mkfs.btrfs, btrfstune, balance,
194       convert and inspect-internal
195     * build: optional build with more warnings (W=...)
196     * build: better support for static checkers
197     * build: html output of documentation
198     * pretty-print: last_snapshot for root_item
199     * pretty-print: stripe dev uuid
200     * error reporting wrappers, introduced and example use
201     * refactor open_file_or_dir
202     * other docs and help updates
203   * testing:
204     * test for nodes crossing stripes
205     * test for broken 'subvolume sync'
206     * basic tests for mkfs, raid option combinations
207     * basic tests for fuzzed images (check)
208     * command intrumentation (eg valgrind)
209     * print commands if requested
210     * add README for tests
211
212 btrfs-progs-4.2.3 (2015-10-19)
213   * subvol sync: make it actually work again: it's been broken since 4.1.2,
214     due to a reversed condition it returned immediately instead of waiting
215   * scanning: do not scan already discovered filesystems (minor optimization)
216   * convert: better error message in case the filesystem is not finalized
217   * restore: off-by-one symlink path check fix
218
219 btrfs-progs-4.2.2 (2015-10-05)
220   * fi label: use fallback if the label ioctl is not available
221   * convert: check nodesize constraints against commandline features (-O)
222   * scrub: report status 'running' until all devices are finished
223   * device scanning might crash in some scenarios
224   * fi usage: print summary for non-root users
225
226 btrfs-progs-4.2.1 (2015-09-20)
227   * fix an off-by-one error in cross-stripe boundary check
228     * if nodesize was 64k, any metadata block was reported as crossing,
229       this leads to mkfs failure for example due to "no free blocks
230       found"
231     * for other nodesizes, if the end of the metadata block was 64k
232       aligned, it was incorrectly reported by fsck
233   * convert: don't write uninitialized data to image
234   * image:
235     * don't loop with option -t0
236     * don't create threads if compression is not requested
237   * other: minor cleanups
238
239 btrfs-progs-4.2 (2015-09-03)
240   * enhancements:
241     * mkfs: do not create extra single chunks on multiple devices
242     * resize: try to guess the minimal size, 'inspect min-dev-size'
243     * qgroup assign: add option to schedule rescan
244     * chunk-recover: be more verbose about the scanning process
245   * fixes:
246     * check:
247         * find stripes crossing stripe boundary -- created by convert
248         * print correct range for file hole when there are no extents
249           and learn how to fix it
250     * replace: more sanity checks
251     * convert: concurrency fixes related to reporting progress
252     * find-root: option -a will not skip the current root anymore
253     * subvol list: fix occasional crash
254     * do not create stripes crossing stripe boundary
255   * build:
256     * fixes for musl libc
257     * preliminary support for android (not working yet, more code changes
258       needed)
259     * new EXTRA_CFLAGS and EXTRA_LDFLAGS
260   * other:
261     * lots of cleanups
262     * tests: lots of updates, new tests, framework improvements
263     * documentation updates
264     * debugging: print-tree shows stripe length
265
266 btrfs-progs-4.1.2 (2015-07-14)
267   * urgent bugfix: mkfs creates invalid filesystem, must be recreated
268
269 btrfs-progs-4.1.1 (2015-07-10) -- Do not use this version!
270   Bugfixes:
271     * defrag: threshold overflow fix
272     * fsck:
273       * check if items fit into the leaf space
274       * fix wrong nbytes
275     * mkfs:
276       * create only desired block groups for single device
277       * preparatory work for fix on multiple devices
278   Enhancements:
279     * new alias for 'device delete': 'device remove'
280   Other:
281     * fix compilation on old gcc (4.3)
282     * documentation updates
283     * debug-tree: print nbytes
284     * test: image for corrupted nbytes
285     * corrupt-block: let it kill nbytes
286
287 btrfs-progs-4.1 (2015-06-22)
288   Bugfixes:
289     * fsck.btrfs: no bash-isms
290     * bugzilla 97171: invalid memory access (with tests)
291     * receive:
292       * cloning works with --chroot
293       * capabilities not lost
294     * mkfs: do not try to register bare file images
295     * option --help accepted by the standalone utilities
296     
297   Enhancements:
298     * corrupt block: ability to remove csums
299     * mkfs:
300       * warn if metadata redundancy is lower than for data
301       * options to make the output quiet (only errors)
302       * mixed case names of raid profiles accepted
303       * rework the output:
304       * more comprehensive, 'key: value' format
305     * subvol:
306       * show:
307         * print received uuid
308         * update the output
309         * new options to specify size units
310       * sync: grab all deleted ids and print them as they're removed,
311         previous implementation only checked if there are any to be
312         deleted - change in command semantics
313     * scrub: print timestamps in days HMS format
314     * receive:
315       * can specify mount point, do not rely on /proc
316       * can work inside subvolumes
317     * send: new option to send stream without data (NO_FILE_DATA)
318     * convert: specify incompat features on the new fs
319     * qgroup:
320       * show: distinguish no limits and 0 limit value
321       * limit: ability to clear the limit
322     * help for 'btrfs' is shorter, 1st level command overview
323     * debug tree: print key names according to their C name
324
325   New:
326     * rescue zero-log
327     * btrfsune:
328       * rewrite uuid on a filesystem image
329       * new option to turn on NO_HOLES incompat feature
330
331   Deprecated:
332     * standalone btrfs-zero-log
333
334   Other:
335     * testing framework updates
336       * uuid rewrite test
337       * btrfstune feature setting test
338       * zero-log tests
339       * more testing image formats
340     * manual page updates
341     * ioctl.h synced with current kernel uapi version
342     * convert: preparatory works for more filesystems (reiserfs pending)
343     * use static buffers for path handling where possible
344     * add new helpers for send uilts that check memory allocations,
345       switch all users, deprecate old helpers
346     * Makefile: fix build dependency generation
347     * map-logical: make it work again
348
349 btrfs-progs-4.0.1 (2015-05-20)
350   * restore:
351     * can restore symlinks, new option --symlinks
352     * long option variants added
353   * convert: dropped dependency on acl.h header and libacl is not required
354     for build
355   * fix for 'check' crash
356   * device remove error message fix
357   * preparatory works for fsid change
358
359 btrfs-progs-4.0 (2015-04-29)
360   * resize:
361     * don't accept file as an argument (it's confusing)
362     * print better error message in case of an error
363   * restore: optionally restore metadata (time, mode, uid/gid)
364   * receive: optionally enforce chroot
365   * new rescue subcommand 'zero-log', same as btrfs-zero-log, but now also
366     part of the main utility
367   * check:
368     * free space checks match kernel, fixes incorrect reports
369   * convert: fix setting of checksum bit if --no-datasum is used
370   * fsck.btrfs: don't print messages
371   * fix quota rescan on PPC64 (mangled ioctl number)
372   * test updates
373   * documentation: files renamed to .asciidoc, misc fixups
374
375 btrfs-progs-3.19.1 (2015-03-25)
376   * convert:
377     * new option to specify metadata block size
378     * --no-progress actually works
379   * restore: properly handle the page boundary corner case
380   * build fixes:
381     * missing macro from public header, BTRFS_BUILD_VERSION
382     * wrong handling of --enable-convert
383   * fi usage: reports correct space for degraded mounts
384   * other:
385     * mkfs: help string updates
386     * completion: added 'usage' subcommands
387     * cleanups in qgroup code, preparatory work
388
389 btrfs-progs-3.19 (2015-03-11)
390   * build converted to autotools
391   * btrfs-image
392     * restore can now run in parallel threads
393     * fixed restore of multiple image from multiple devices onto a single
394       dev
395     * introduced metadump v2
396   * check: make --init-csum-tree and --init-extent-tree work together
397   * find-new: option to search through all metadata even if a root was
398     already found
399   * convert: show progress by default, can be turned off
400   * corrupt-block: option to work on a specific root
401   * bash completion script for all subcommands
402
403 btrfs-progs-3.18.2 (2015-01-27)
404   * qgroup show: print human readable sizes, options to say otherwise
405   * check: new option to explicitly say no to writes
406   * mkfs: message about trimming is not printed to stderr
407   * fi show: fixed return value
408   * tests: new infrastructure
409   * btrfstune: force flag can be used together with seeding option
410   * backtrace support is back
411   * getopt cleanups
412   * doc and help updates
413
414 btrfs-progs-3.18.1 (2015-01-09)
415   * minor fixes
416   * documentation updates
417
418 btrfs-progs-3.18 (2014-12-30)
419   * mkfs - skinny-metadata feature is now on by default, first introduced in
420     kernel 3.10
421   * filesystem usage - give an overview of fs usage in a way that's more
422     comprehensible than existing 'fi df'
423   * device usage - more detailed information about per-device allocations
424   * check
425     * option to set a different tree root byte number
426     * ability to link lost files to lost+found, caused by a recent kernel
427       bug
428     * repair of severely corrupted fs (use with care)
429   * convert - option to show progress
430   * subvol create - print the commit mode inline, print the global mode only
431     if --verbose
432   * other updates: musl-libc support, coverity bugfixes, new test images,
433     documentation
434
435 btrfs-progs-3.17.3 (2014-12-04)
436   * convert: fix conversion of sparse ext* filesystems
437   * show: resolve to the correct path
438   * fsck: more verbose error for root dir problems
439
440 btrfs-progs-3.17.2 (2014-11-19)
441   * check improvements
442     * add ability to replace missing dir item/dir indexes
443     * fix missing inode items
444     * create missing root dirid
445   * corrupt block: enhancements for testing fsck
446   * zero-log: able to reset a fs with bogus log tree pointer (bug_72151)
447
448 btrfs-progs-3.17.1 (2014-11-04)
449   * fi df: argument handling
450   * fix linking with libbtrfs
451   * replace: better error reporting
452   * fi show: fixed stall if run concurrently with balance
453   * check: fixed argument parsing for --subvol-extents
454   * fi df: SI prefixes corrected
455
456 btrfs-progs-3.17 (2014-10-17)
457   * check: --init-csum-tree actually does something useful, rebuilds the
458     whole csum tree
459   * /dev scanning for btrfs devices is gone
460   * /proc/partitions scanning is gone, blkid is used exclusively
461   * new subcommand subvolume sync
462   * filesystem df: new options to set unit format
463   * convert: allow to copy label from the origin, or specify a new one
464
465 btrfs-progs-3.16.2 (2014-10-01)
466   * a few fixes in fsck and image tools
467
468 btrfs-progs-3.16.1 (2014-09-15)
469   * print GlobalReserve in fi df output
470   * new option -R in subvol list
471   * library version defines
472   * static build is fixed
473   * build without documentation is possible
474
475 btrfs-progs-3.16 (2014-08-26)
476   * mkfs: new option to specify UUID, drop experimental notice
477   * check: new option to verify quotas, reduced memory requirements, new
478     option to print extent sharing
479   * restore: check length before decompression, more error handling, option
480     to loop during restoring
481   * balance: new filter 'limit'
482   * recover: allow to read all sb copies
483   * btrfstune: new option to force dangerous changes
484   * receive: new option to limit number of errors
485   * show-super: skip unrecognized sb, add option to force
486   * debug-tree: print tree by id
487   * documentation updates
488
489 btrfs-progs-3.14.2 (2014-05-29)
490   * documentation is now written in asciidoc and there are manpages for each
491     subcommand
492   * misc bugfixes
493
494 btrfs-progs-3.14.1 (2014-04-18)
495   * properties: fix handling of option -t
496   * restore: fix reading of compressed extents
497   * minor code and doc updates
498
499 btrfs-progs-3.14 (2014-04-06)
500   * fsck: fixes and enhancements to --init-extent-tree mode
501   * fsck: chunk-recover updates
502   * scrub: add force option -f
503   * send: check if subvolumes are read-only
504   * subvol delete: add options to affect commit behaviour
505   * btrfs: add property command group
506   * restore: add dry-run option
507   * restore: fix restoring of compressed files
508   * mkfs: support for no-holes feature
509   * mkfs: option -r deals with hardlinks and relative paths
510   * mkfs: discard phase is interruptible
511   * documentation updates
512
513 btrfs-progs-3.12 (2013-11-25)
514   * announcement, tarballs
515   * first release after 0.19 (2009/06) with a lot of changes