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