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