blob: 304af0b3ba0989e5f54f418681af30ad676fc860 [file] [log] [blame]
Theodore Ts'oc0b3deb2011-07-02 23:26:20 -04001E2fsprogs 1.42-WIP (July 2, 2011) -- 1ca87790b91
2=================================
3
4Add support for 64-bit file systems.
5
6Add initial support for bigalloc file systems.
7
8Fix a bug in e2fsck where if the free blocks and inodes counts are
9incorrect, e2fsck would fix them without printing an error message.
10This would cause a "*** FILE SYSTEM WAS MODIFIED ***" message without
11any explanation of what was fixed.
12
13E2fsck will no longer attempt to clone an extended attribute block in
14pass1b handling if the file system does not support extended
15attributes.
16
17E2fsck will be more careful accidentally asking the user to continue
18if the file system is mounted, so that an escape sequence won't cause
19a false positive. (Addresses Debian Bug: #619859)
20
21E2fsck now uses less cpu time in pass 5 when large portions of the
22bitmaps are uninitialized.
23
24E2fsck will no longer segault when a corrupted file system has a bad
25extent, and removing it leads to a block needing to be deallocated.
26(Addresses SourceForge Bug: #2971800)
27
28E2fsck now supports an extended "discard" option which will cause
29e2fsck to attempt discard all unused blocks after a full, successful
30file system check.
31
32The e2image program now supports the qcow2 format, which is a more
33efficient way of capturing file system dumps.
34
35Mke2fs now supports the [devices] stanza in mke2fs.conf which allows
36per-device defaults to be specified in the configuration file.
37
38Mke2fs now supports the reserved_ratio relation in the [defaults] and
39[fs_types] section in mke2fs.conf.
40
41Mke2fs now creates extent-mapped directories for the root and
42lost+found directories.
43
44Mke2fs will skip zero'ing the journal if the extended option
45"lazy_journal_init" is specified. This can save a lot of time, but it
46does add a small amount of risk if the system crashes before the
47journal is overwritten entirely once. It is epsecially useful for
48testing.
49
50Mke2fs will now create file systems that enable user namespace
51extended attributes and with time- and mount count-based file
52system checks disabled.
53
54Mke2fs will not set a stride or strip size of one block based on block
55device attributes obtained from sysfs.
56
57Mke2fs now displays a progress report during the discard process.
58
59Mke2fs now handles extreme file system parameters correctly which
60previously caused the inodes per group to drop below 8, leading to a
61segfault. (The inodes per group must be a multiple of 8, but the code
62didn't correctly deal with an inodes per group count less than 8.)
63
64Debugfs's icheck will now correctly find inodes which use the
65searched-for block as an extended attribute block.
66
67Debugfs now has a new "punch" command which remove blocks from the
68middle of an inode.
69
70The badblocks program now correctly recovers from I/O errors when
71direct I/O is being used. The badblocks command now also supports a
72-B option which forces the use of buffered I/O, and the -v option will
73provide a more detailed breakdown of read, write, and failed
74comparison errors.
75
76Added e4defrag tool which uses the EXT4_IOC_MOVE_EXT ioctl.
77
78Added support for journals larger than 2GB.
79
80Support using both hard links and symlinks when installing e2fsprogs.
81
82Add overflow checking to tune2fs -i's fsck interval, which must fit in
83a 32-bit field.
84
85Filefrag will report 0 extents correctly in verbose mode. (Addresses
86RedHat Bugzilla: #653234)
87
88Logsave's usage message has been fixed. (Addresses Debian Bug:
89#619788)
90
91Added a useful "fallocate" program to the contrib directory.
92
93Update translations: French, Chinese, Germany, Indonesian, Swedish,
94Vietnamese, Polish, Dutch, Czech,
95
96Updated/clarified man pages.
97
98Programming notes
99-----------------
100
101The ext2fs library now has the new functions ext2fs_punch(),
102ext2fs_get_memzero() and ext2fs_file_get_inode().
103
104The I/O manager now supports the discard operation.
105
106Reserved file system code points for new 1st class quota feature.
107
108Fixed a potential free of an unitialized pointer in
109ext2fs_update_bb_inode().
110
111Fixed miscellaneous compile warnings.
112
113Fixed portability issues for Mac OS X.
114
115Fixed FreeBSD portability where gettext is not in libc.
116
117Fixed a build failure when OMIT_COM_ERR is defined.
118
119Improved error checking and fixed memory leaks caused by error return
120paths.
121
122Added a regression test for extent-mapped journals by mke2fs and tune2fs.
123
124Added a test for creating a large (over 4GB) journal using mke2fs.
125
126Fixed the dependencies for "make check" so all required dependencies
127are built before running the gression tests.
128
129A link to com_err.h is installed in $(includedir) during a "make install".
130
131
Theodore Ts'o7267e3d2010-12-22 18:55:15 -0500132E2fsprogs 1.41.14 (December 22, 2010)
133=====================================
134
135Fix spurious complaint in mke2fs where it would complain if the file
136system type "default" is not defined in mke2fs.conf.
137
138The resize2fs program will no longer clear the resize_inode feature
139when the number reserved group descriptor blocks reaches zero. This
140allows for subsequent shrinks of the file system to work cleanly for
141flex_bg file systems.
142
143The resize2fs program now handles devices which are exactly 16T;
144previously it would give an error saying that the file system was too
145big.
146
147E2fsck (and the libext2fs library) will not use the extended rec_len
148encoding for file systems whose block size is less than 64k, for
149consistency with the kernel.
150
151Programming notes
152-----------------
153
154E2fsprogs 1.41.13 would not compile on big-endian systems. This has
155been fixed. (Addresses Sourceforge Bug: #3138115)
156
157The ext2fs_block_iterator2() function passed an incorrect ref_offset
158to its callback function in the case of sparse files. (Addresses
159Sourceforge Bug: #3081087)
160
161Fix some type-punning warnings generated by newer versions of gcc.
162
163
Theodore Ts'od085f612010-12-13 08:57:14 -0500164E2fsprogs 1.41.13 (December 13, 2010)
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500165=====================================
166
Theodore Ts'od085f612010-12-13 08:57:14 -0500167E2fsck now supports the extended option "-E journal_only", which
168causes it to only do a journal replay. This is useful for scripts
169that want to first replay the journal and then check to see if it
170contains errors.
171
172E2fsck will now support UUID= and LABEL= specifiers for the -j option
173(which specifies where to find the external journal). (Addresses
174Debian Bug #559315)
175
176E2fsck now has support for the problems/<problem code>/force_no
177configuration option in e2fsck.conf, which forces a problem to not be
178fixed.
179
180Dumpe2fs will now avoid printing large negative offsets for the bitmap
181blocks and instead print a message which is a bit more helpful for
182flex_bg file systems.
183
184Mke2fs will now check the file system type (specified with the -t
185option) to make sure it is defined in the mke2fs.conf file; if it is
186not, it will print an error and abort. If the usage type (specified
187with the -T option) is not defined in mke2fs.conf, mke2fs will print a
188warning but will continue. (Addresses Debian Bug #594609)
189
190Clarified error message from resize2fs clarifying that on-line
191shrinking is not supported at all. (Addresses Debian Bug #599786)
192
193Fix an e2fsck bug that could cause a PROGRAMMING BUG error to be
194displayed. (Addresses Debian Bug #555456)
195
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500196E2fsck will open the external journal in exclusive mode, to prevent
197the journal from getting truncated while it is in use due to a user
198accidentally trying to run e2fsck on a snapshotted file system volume.
Theodore Ts'od085f612010-12-13 08:57:14 -0500199(Addresses Debian Bug #587531)
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500200
201Fix a bug in e2fsck so it has the correct test for the EOFBLOCKS_FL
202flag.
203
204The tune2fs program can now set the uninit_bg feature without
205requiring an fsck.
206
207The tune2fs, dumpe2fs, and debugfs programs now support the new ext4
208default mount options settings which were added in 2.6.35.
209
210The e2fsck and dumpe2fs programs now support the new ext4 superblock
211fields which track where and when the first and most recent file
212system errors occurred. These fields are displayed by dumpe2fs and
213cleared by e2fsck. These new superblock fields were added in 2.6.36.
214
215Debugfs now uses a more concicse format for listing extents in its
216stat command. This format also includes the interior extent tree
217blocks, which previously was missing from stat's output for
218extent-based files.
219
220Debugfs has a new option, -D, which will request Direct I/O access of
221the file system.
222
223Mke2fs will skip initializing the inode table if a device supports
224discard and the discard operation will result in zero'ed blocks.
225
226Badblocks will now correctly backspace over UTF-8 characters when
227displaying its progress bar. (Addresses Gentoo Bug #309909; Addresses
228Debian Bugs #583782 and #587834)
229
230E2freefrag will now display the total number of free extents.
231
232Resize2fs -P no longer requires a freshly checked filesystem before
233printing the minimum resize size.
234
235Fixed a floating point precision error in a binary tree search routine
236that can lead to seg fault in e2fsck and resize2fs.
237
238Fixed a bug in e2fsck where if both the original and backup superblock
239are invalid in some way, e2fsck will fail going back to the original
240superblock because it didn't close the backup superblock first, and
241the exclusive open prevented the file system from being reopened.
242
243Fixed a big in e2freefrag which caused getopt parsing to fail on
244architectures with unsigned chars. (Addresses Gentoo Bug: #299386)
245
246Clarified an mke2fs error message so a missed common in an -E option
247(i.e., mke2fs -t ext4 -E stride=128 stripe-width=512 /dev/sda1")
248results in a more understandable explanation to the user.
249
250Mke2fs now displays the correct valid inode ratio range when
251complaining about an invalid inode ratio specified by the user.
252
253Mke2fs now understands the extended option "discard" and "nodiscard",
254and the older option -K is deprecated. The default of whether
255discards are enabled by default can be controled by the mke2fs.conf
256file.
257
258Mke2fs's handling of logical and physical sector sizes has been
259improved to reflect the fact that there will be some SSD's with 8k and
26016k physical sectors arriving soon. Mke2fs will no longer force block
261size to be the physical sector size, since there will be devices where
262the physical sector size is larger than the system's page size, and
263hence larger than the maximal supported block size. In addition, if
264the minimal and optimal io size are not exported by the device, and
265the physical sector size is larger than the block size, the physical
266sector size will be used to set the Raid I/O optimization hints in the
267superblock.
268
269E2fsck will now display a better, more specific error message when the
270user enters a typo'ed device name, instead of blathering on about
271alternate superblocks.
272
273Fixed various Debian Packaging Issues
274
Theodore Ts'od085f612010-12-13 08:57:14 -0500275Updated/clarified man pages (Addresses Debian Bugs: #580236, #594004,
276#589345, #591083; Addresses Launchpad Bug: #505719)
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500277
278Update the Chinese, Chzech, Dutch, French, Germany, Indonesian,
279Polish, Swedish, and Vietnamese translations.
280
281
282Programmer's Notes
283------------------
284
Theodore Ts'od085f612010-12-13 08:57:14 -0500285Fix a dependency definition for the static and profiled blkid
286libraries which could cause compile failures in some configurations.
287(Addresses Debian Bug: #604629)
288
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500289Add support for Direct I/O in the Unix I/O access layer.
290
291Fixed a memory leak in the Unix I/O layer when changing block sizes.
292
Theodore Ts'od085f612010-12-13 08:57:14 -0500293Fixed minor memory leaks in mke2fs.
294
Theodore Ts'od5b8a1e2010-11-22 16:10:23 -0500295Added a new function to the ext2fs library, ext2fs_get_memalign().
296
297The tst_super_size test program will check to make sure the superblock
298fields are correctly aligned and will print them out so they can be
299manually checked for correctness.
300
301Fixed some makefile dependencies for test programs in lib/ext2fs.
302
303Reserved the feature flags and superblock fields needed for the Next3
304snapshot feature.
305
306Reserved the feature flags for EXT4_FEATURE_INCOMPAT_DIRDATA and
307EXT4_INCOMPAT_EA_INODE.
308
309
Theodore Ts'o34567282010-05-18 00:14:21 -0400310E2fsprogs 1.41.12 (May 17, 2010)
311================================
Theodore Ts'ob8461222010-05-17 23:54:49 -0400312
313Mke2fs now gives a correct error message if the external journal
314device is not found. (Addresses Red Hat Bug #572935)
315
316Resize2fs -P will now refuse to print a minimum size if the file
317system is not clean. Previously it would go ahead and print a minimum
318size anyway, which might not be correct, leading to user confusion.
319
320E2fsck now tests for extents that begin at physical block 0 and
321rejects them as invalid. (Addresses Google Bug: #2573806)
322
323Fixed a bug in e2fsck which could cause it to crash when trying to
324remove an invalid extent and the block bitmaps hadn't yet been loaded.
325(Addresses SourceForge Bug: #2971800)
326
327E2fsck now will completely skip time-based checks if the system clock
328looks insane or the option broken_system_clock is set in
329/etc/e2fsck.conf.
330
331E2fsck would previously report an i_blocks corruption for a 4T file
332created using posix_fallocate; this bug has been fixed.
333
334E2fsck will now correctly mark a sparse journal as invalid and will
335delete and recreate the journal to address the problem.
336
337E2fsck would previously incorrectly ask the user whether she would
338like to abort the file system check after finding a problem --- and
339then abort regardless of the user's answer. This is annoying, and
340has been fixed.
341
342E2fsck can now continue even if it fails to recreate the resize
343inode; previously it would just abort the file system check
344altogether.
345
346E2fsck could potentially remove directory entries for inodes found in
347the unused region of the inode table; this would generally happen on
348ext4 file systems that do not use journaling. This bug has been fixed
349by not clearing these directory entries once it has been established
350that bg_unused_inodes may not be trustworthy; once pass #2 has been
351completed, e2fsck will restart the file system check from the
352beginning, and then it will be safe to delete any directory entries
353pointing to inodes that appear to be deleted. (Addresses Google Bug:
354#2642165)
355
356E2fsck will not try to set the block group checksums if the user
357cancels the fsck with a control-C. It's a bad idea to set the
358checksums if e2fsck hasn't been completed, and it often results an the
359error message, "Inode bitmap not loaded while setting block group
360checksum info". (Addresses Launchpad Bug: #582035)
361
362The mke2fs program now queries the kernel for the physical as well as
363the logical sector size, and will not allow a blocksize below the
364logical, and will strongly encourage a blocksize at least as big as
365the physical blocksize. This is needed for 4k sector drives that
366emulate 512 byte sector sizes.
367
368Mke2fs will now allow a flex_bg size of 1. This is unusual, and
369rarely needed, but it is a legal value.
370
371E2fsck will check for cases where the EOFBLOCKS_FL is set when it is
372not needed, and offer to clear it; this is a sign of a kernel bug, but
373more importantly, some released kernels may crash when this situation
374is encountered on ext4 file systems. (Addresses Google Bug: #2604224)
375
376E2fsck will use the EOFBLOCKS_FL flag exclusively to check whether
377i_size is correct. (Kernels starting with 2.6.34 will set
378EOFBLOCKS_FL.)
379
380The com_err library will now only output ^M (a CR character) when the
381tty is in raw mode.
382
383Update the Czech, Chinese, Dutch, French, Germany, Indonesian, Polish,
384and Vietnamese translations.
385
386Fixed various Debian packaging issues --- see debian/changelog for
387details. (Addresses Debian Bugs: #571247, #563487)
388
389
390Programmer's Notes
391------------------
392
393The regression test suite now uses its own mke2fs.conf file, so that
394downstream distributions want change the mke2fs.conf file which is
395distributed in the RPM or dpkg file, without worrying about screwing
396up the regression test results.
397
398Always build namei.o so that building with configure --disable-debugfs
399works correctly. Long-term, if we care about reduced e2fsprogs
400builds, we need a more general solution for deciding what .o files are
401needed for a particular build. Given that install floppies are going
402(gone?) the way the dodo bird, we probably don't care, though.
403(Addresses Sourceforge Bug: #2911433)
404
405Add configure options --enable-symlink-build and
406--enable-symlink-install, which allow e2fsprogs be built using
407symlinks instad of hard links, and to be installed using symlinks
408instead of hard links, respectively. It is useful when the file
409system where the build is taking place, or the file system where
410e2fsprogs is installed, can't handle hard links for some reason.
411(Addresses Sourceforge Bug: #1436294)
412
413Fixed compile warning in mke2fs.c.
414
415
Theodore Ts'o7b6f5922010-03-15 00:57:42 -0400416E2fsprogs 1.41.11 (March 14, 2010)
417==================================
418
419E2fsck will no longer give a fatal error and abort if the physical
420device has been resized beyond 2**32 blocks. (Addresses Launchpad
421Bug: #521648)
422
423Debugfs has a bug fixed so that "logdump -b <blk>" now properly shows
424the allocation status of the block <blk>. (Addresses Debian Bug:
425#564084)
426
427E2fsck now prints a much more emphatic and hopefully scary message
428when a file system is detected as mounted while doing a read/write
429check of the filesystem. Hopefully this will dissuade users from
430thinking, "surely that message doesn't apply to *me*" :-(
431
432E2fsck -n will now always open the file system read-only. We now
433disallow certain combination of options which previously were manual
434exceptions; this is bad because it causes users to think they are
435smarter than they really are. So "-n -c", "-n -l", "-n -L", and "-n
436-D" are no longer supported. (Addresses Launchpad Bug: #537483)
437
438In e2fsprogs 1.41.10, mke2fs would ask for confirmation to proceed if
439it detected a badly aligned partition. Unfortunately, this broke some
440distribution installation scripts, so it now just prints the warning
441message and proceeds. (Addresses Red Hat Bug: #569021. Addresses
442Launchpad Bug: #530071)
443
444Mke2fs would take a long time to create very large journal files for
445ext4. This was caused by a bug in ext2fs_block_iterate2(), which is
446now fixed.
447
448E2fsck now understands the EOFBLOCKS_FL flag which will be used in
4492.6.34 kernels to make e2fsck not complain about blocks deliberately
450fallocated() beyond an inode's i_size.
451
452E2fsprogs 1.41.10 introduced a regression (in commit b71e018) where
453e2fsck -fD can corrupt non-indexed directories when are exists one or
454more file names which alphabetically sort before ".". This can happen
455with ext2 filesystems or for small directories (take less than a lock)
456which contain filenames that begin with a space or some other
457punctuation mark. (Addresses Debian Bug: #573923, Addresses Launchpad
458Bug: #525114)
459
460
461Programmer's Notes
462------------------
463
464Add new test, f_rehash_dir, which checks to make sure e2fsck -D works
465correctly.
Theodore Ts'ob8461222010-05-17 23:54:49 -0400466
Theodore Ts'o7b6f5922010-03-15 00:57:42 -0400467The libcom_err function now has support for Heimdal's com_right_r
468function(). (Addresses Sourceforge Bug: #2963865, Addresses Debian
469Bug: #558910)
Theodore Ts'ob8461222010-05-17 23:54:49 -0400470
Theodore Ts'o7b6f5922010-03-15 00:57:42 -0400471
Theodore Ts'o90806952010-02-10 15:49:32 -0500472E2fsprogs 1.41.10 (February 7, 2010)
473====================================
474
475Fix resize2fs bug which causes it to access invalid memory.
476
477Add libss support for libreadline.so.6.
478
479Fix e2fsck's check for extent-mapped directory with an incorrect file
480type.
481
482Add new e2fsck.conf configuration option, default/broken_system_clock
483to support systems with broken CMOS hardware clocks. Also, since too
484many distributions seem to have broken virtualization scripts now,
485e2fsck will by default accept dates which are off by up to 24 hours by
486default. (Addresses Debian Bugs: #559776, #557636)
487
488Fix a bug where mke2fs may not use the best placement of the inode
489table when there is only room for a single block group in the last
490flex_bg.
491
492E2fsck is now smarter when it needs to allocate blocks in the course
493of fixing file system problems. This reduces the number of spurious
494differences found in pass #5.
495
496E2fsck will no longer rehash directories which fit in a single
497directory block.
498
499E2fsck now correctly handles holes in extent-mapped directories (i.e.,
500sparse directories which use extents).
501
502Fix big-endian problems with ext2fs_bmap() and ext2fs_bmap2().
503
504Fix a bug in filefrag where on platforms which can allow file systems
505with 8k blocks, that it doesn't core dump when it sees a file system
506with 8k block sizes. (Thanks to Mikulas Patocka for pointing this
507out.)
508
509E2fsck will correctly fix directories that are have an inaccurate
510i_size as well as other problems in a single pass, instead of
511requiring two e2fsck runs before the file system is fully fixed.
512
513Fix e2fsck so it will correctly find and detect duplicate directory
514entries for non-indexed directories. ( Addresses Sourceforge Bug:
515#2862551)
516
517Mke2fs will use BLKDISCARD to pre-discard all blocks on an SSD or
518thinly-provisioned storage device. This can be disabled using the -K
519option.
520
521Enhance libext2fs so it works around bug in Linux version 2.6.19
522and earlier where the /proc/swaps file was missing the header on
523the first line.
524
525Fix bug in Linux version 2.6.19 and earlier where the /proc/swaps file
526was missing the header on the first line.
527
528Fix some big-endian bugs in e2fsck and libext2fs.
529
530Fix resize2fs so it works correctly on file systems with external
531journals instead of failing early with the error "Illegal inode
532number".
533
534Fix libss so that it does not seg fault when using a readline library
535which does not supply a readline_shutdown() function.
536
537Updated dumpe2fs's usage message so it correctly gives the right
538arguments summary for "-o superblock=<num>" and "-o blocksize=<num>".
539(Addresses Launchpad Bug: #448099)
540
541Teach libext2fs to ignore the high 32 bits of the i_blocks field
542when huge_file file system feature is set, but the inode does not
543have the HUGE_FILE_FL flag set.
544
545Fix e2fsck's handling of 64-bit i_blocks fields.
546
547E2fsck will now print "Illegal indirect block", "Illegal
548double-indirect block", etc., instead of "Illegal block #-1" or
549"Illegal block #-2", etc. This makes it easier for users to
550understand what has gone wrong. (Addresses SourceForge Bug: #2871782)
551
552Mke2fs now will obtain get device topology information from blkid and
553use it to populate the superblock stride and stripe sizes. It will
554also warn if the block device is misaligned
555
556Fix file descriptor leaks in fsck and debugfs. (Addresses Novell Bug:
557##524526)
558
559Fix the libext2fs library code to round up the bitmap size to a 4-byte
560boundary, to prevent spurious seg faults caused by the x86
561architecture. This doesn't affect Linux systems, but was a major
562problem on a number of *BSD systems. (Addresses Sourceforge Bug:
563#2328708)
564
565Fix resize2fs's minimum size required for a file system so it doesn't
566fail when "resize2fs -M" is run. (Addresses RedHat Bugzilla: #519131)
567
568Dumpe2fs now prints summary information about the contents of the
569journal.
570
571Avoid printing scary error messages when e2fsck starts running
572problems on low-memory systems, as it tends to panic and mislead the
573user. (Addresses Debian Bug: #509529)
574
575Fix blkid's modules.dep parser so it handles compressed (.ko.gz)
576modules files. (Address Red Hat Bug: #518572)
577
578Fix tune2fs so it can add a journal when an extent-enabled file system
579is mounted. (Addresses Launchpad bug: #416648)
580
581Update Czech, Indonesian, Polish and Vietnamese translations (from the
582Translation Project).
583
584Update/clarify man pages. (Addresses Sourceforge Bug: #2822186)
585
586Fixed various Debian packaging issues --- see debian/changelog for
587details. (Addresses Debian Bugs: #540111)
588
589Programmer's Notes
590------------------
591
592The configure script supports the --with-cc, --with-ccopts, and
593--with-ldopts options. Instead, the more standard use of CC=,
594CCFLAGS=, and LDFLAGS= in the configure command line is used instead.
595Also, --with-ld, which never worked, was also removed.
596(Addresses Sourceforge Bug: #2843248)
597
598The in-tree header files are only used if the in-tree uuid or blkid
599libraries are used. Otherwise, use the system-provided uuid or blkid
600header files if using the system-provided libraries.
601
602Fix some build failures caused by --disable-* configure options.
603
604Work around a bug in autoconf 2.64.
605
606
Theodore Ts'oedde3e52009-08-22 22:38:50 -0400607E2fsprogs 1.41.9 (August 22, 2009)
608==================================
609
610Fix a bug in e2fsck routines for reallocating an inode table which
611could cause it to loop forever on an ext4 filesystem with the FLEX_BG
612filesystem feature with a relatively rare (and specific) filesystem
613corruption. This fix causes e2fsck to try to find space for a new
614portion of the inode table in the containing flex_bg, and if that
615fails, the new portion of the inode table will be allocated in any
616free space available in the filesystem.
617
618Make e2fsck less annoying by only asking for permission to relocate a
619block group's inode table once, instead of for every overlapping
620block. Similarly, only ask once to recompute the block group
621checksums, instead of once for each corrupted block group's checksum.
622
623Fix filefrag to avoid print the extent header if the FIEMAP ioctl is
624not present, and it needs to fall back to using the FIBMAP ioctl.
625
626Fix filefrag to correctly print the number of extents for zero-length
627files. (Addresses Debian Bug: #540376)
628
629Filefrag now has a -B option which forces the use of the FIBMAP ioctl
630to more easily debug the FIBMAP code.
631
632Fixed filefrag for non-extent based files.
633
634Add a new program, e2freefrag, which displays information about the
635free space fragmentation in an ext2/3/4 filesystem.
636
637Fix inode resizing via tune2fs -I so that it works correctly in the
638face of non-empty bad blocks inodes, and if the filesystem was
639formatted using the "mke2fs -E stride=N" option for RAID arrays.
Theodore Ts'o776a3742009-07-20 09:40:46 -0400640
641Fix regression in ext2fs_extent_set_bmap() caused e2fsck -fD to fail
642and corrupt large directories if the directory needs to shrink by more
643than one block. (Addresses Debian Bug: #537510)
644
645Fix e2fsck's buggy_init_scritps=1 so that the if the last write and/or
646last mount times are in the future, they are corrected even if
647buggy_init_scripts is set. This is needed because otherwise resize2fs
648will refuse to resize the filesystem, even after running "e2fsck -f".
649(Addresses Launchpad bug: #373409)
Theodore Ts'oedde3e52009-08-22 22:38:50 -0400650
651E2fsck will now print much fuller information when the last mount time
652or last written time is in the future, since most people can't seem to
653believe their distribution has buggy init scripts, or they have a
654failed CMOS/RTS clock battery.
655
656Enhance dumpe2fs to dump the extent information via the 'stat'
657command, and more detailed extent information via the new command
658'dump_extents'.
Theodore Ts'o776a3742009-07-20 09:40:46 -0400659
Theodore Ts'oedde3e52009-08-22 22:38:50 -0400660Update French, Polish, Czech, and Sweedish translation from the
661Translation Project.
Theodore Ts'o776a3742009-07-20 09:40:46 -0400662
663Fixed various Debian packaging issues --- see debian/changelog for
664details.
665
666Programmer's Notes
667------------------
668
669Fixed miscellaneous gcc -Wall warnings.
670
671Fixed memory leak in error path in ext2fs_block_iterate2()
672
673Fixed non-Linux build of the intl directory by adding support for the
674E/Q/V macros.
675
Theodore Ts'oedde3e52009-08-22 22:38:50 -0400676The bitmap read/write functions now treat uninitialized bitmaps as
677unallocated; this fixes a number of problems in all e2fsprogs for ext4
678filesystems when there is a need to allocate new blocks or inodes, and
679there aren't any free blocks or inodes in the already-used block
680groups.
681
Theodore Ts'o776a3742009-07-20 09:40:46 -0400682Improve ext2fs_extent_set_bmap() to avoid creating new extents which
683get inserted into the extent tree when they are not needed.
684
685
Theodore Ts'oc179bca2009-07-11 19:21:43 -0400686E2fsprogs 1.41.8 (July 11, 2009)
687================================
Theodore Ts'o24a24cc2009-07-09 08:09:58 -0400688
689Fix resize2fs's online resizing, fixing a regression which in
690e2fpsrogs 1.41.7. (Addresses Debian Bug: #535452)
691
692Fix potential filesystem corruptions caused by using resize2fs to
Theodore Ts'o989a01f2009-07-11 18:29:56 -0400693shrinking ext4 filesystems with extents enabled. (Addresses Red Hat
694Bug: #510379)
Theodore Ts'o24a24cc2009-07-09 08:09:58 -0400695
696Optimize uuid_generate() to avoid running uuidd if it is not setuid or
697setgid and the currently running program doesn't have write access to
698the uuidd work directory.
699
700Add safety checks (for non-Linux systems) so that uuidd isn't run with
701file descriptors 0, 1, and 2 closed; and if they are closed, uuidd
702will be careful not to close the file descriptor for its unix domain
703socket when it detaches itself from the controlling tty. Also add
704safety checks so that if the unix domain socket between the uuid
705library and uuidd program is closed for any reason, both the library
706and the uuidd will return an appropriate error code instead of looping
707in an infinite loop.
708
709The e2croncheck script, which creates an LVM snapshot and then checks
710the ext3/4 filesystem via the LVM snapshot, has been added to the
711contrib directory.
712
713Fix filefrag program for files that have more than 144 extents.
714
Theodore Ts'o989a01f2009-07-11 18:29:56 -0400715Update French, Polish, Czech, Indonsian, and Sweedish translation from
716the Translation Project.
717
718Fixed various Debian packaging issues --- see debian/changelog for
719details. (Addresses Debian Bug #535530)
Theodore Ts'o24a24cc2009-07-09 08:09:58 -0400720
721Update/clarify man pages.
722
723Programmer's Notes
724------------------
725
726Fix compilation problem when configured with --disable-uuid.
727
728Don't build uuidgen if configured with --disable-uuid.
729
Theodore Ts'o989a01f2009-07-11 18:29:56 -0400730Add the new library function ext2fs_test_inode_bitmap_range(), and
731optimized ext2fs_test_block_bitmap_range(), which will be needed for
732future optimizations for e2fsck.
733
Theodore Ts'o24a24cc2009-07-09 08:09:58 -0400734Fix makefile dependencies for libcom_err so that the Makefiles work
735well on non-GNU make program. (Addresses Sourceforge Patches: #2813809)
736
737Enhance the build system so that the full set of commands executed by
738the Makefiles are displayed, instead of the Linux kernel summary
739output, if the build was configured with --enable-verbose-makecmds, or
740if GNU make is in use and the V variable is non-null, i.e., via "make
741V=1".
742
743
Theodore Ts'od9206a32009-06-29 12:56:04 -0400744E2fsprogs 1.41.7 (June 29, 2009)
745================================
746
747Fix a bug in libext2fs which can cause e2fsck and resize2fs to write
748uninitalized data into the portion of the inode beyond the first 128
749bytes when operating on inodes mapped via extents; potentially
750corrupting filesystems.
751
752Fix memory leaks in e2fsprogs, including a very large memory leak
753which can cause e2fsck to run out of memory when checking very large
754filesystems using extents.
755
756The logsave program will now filter out the ^A and ^B characters when
757writing to the console.
758
759Harden ext2fs_validate_entry() so that lsdel will not read beyond the
760end of the block even if the directory block is corrupted.
761
762Fix debugfs from core dumping if the logdump command fails to open the
763output file.
764
765Enhance badblocks to print the currently tested block number when
766interrupted with ^C.
767
768Fix lsattr to exit with a non-zero status when it encounters errors.
769(Addresses RedHat Bugzilla #489841)
770
771Fix e2fsprogs to use the same encoding for rec_len in 64k (and larger)
772filesystems as the kernel when encoding rec_len >= 64k. For 64k
773filesystems (currently all that is supported by e2fsprogs, this is
774only a minor corner case).
775
776Resize2fs will now update the journal backup fileds in the sup0erblock
777if the journal is moved; this avoids an unnecessary full fsck after
778resizing the filesystem. (Addresses RedHat Bugzilla: #505339)
779
780Fix libext2fs to properly initialize i_extra_size when creating the
781journal and resize inodes.
782
783Change badblocks to allow block sizes larger than 4k.
784
785Fix filefrag progam so it correctly checks for errors from the fiemap ioctl.
786
787Update Chinese and Czech translation from the Translation Project.
788
789Clean up various man pages. (Addresses Debian Bug #531385 and #523063)
790
791
792Programmer's Notes
793------------------
794
795Add --disable-libuuid option to configure which uses an in-system
796installed version of libuuid; the private version is enabled by
797default.
798
799Add --valgrind-leakcheck option to the test_script program which runs
800valgrind with the appropriate options to find memory leaks.
801
802
Theodore Ts'od17ad122009-05-30 13:56:31 -0400803E2fsprogs 1.41.6 (May 30, 2009)
804===============================
805
806Fix a critical regression in e2fsck introduced version 1.41.5 which
807can undo updates to the block group descriptors after a journal replay.
808
809If e2fsck receives an I/O error while replaying the journal, prompt
810the user whether they want to ignore the error or not; if e2fsck is
811run in preen mode, force fsck to abort the preen pass.
812
813Fix a bug which would cause e2fsck to core dump if the filesystem
814contains a corrupt extent header, and the user declines to clear the
815inode. (Addresses Sourceforge Bug: #2791794)
816
817Fix e2fsck to restart only once in the case of multiple block groups
818which inodes in use that are in the uninitialized part of the block
819group's inode table.
820
821To reduce user confusion, if the /etc/mtab file is missing
822ext2fs_check_mount_point and ext2fs_check_if_mounted will return a
823new, explicit error code to indicate this case. This will cause
824e2fsck to give a clearer error message when the user is using buggy
825rescue CD's that don't properly set up /etc/mtab. (Addresses Debian
826Bug: #527859)
827
828Fix e2fsck so that if the primary group descriptors are corrupted, but
829the backup superblock is entirely invalid, to go back to using (and
830fixing) the priary group descriptors instead of completely giving up
831on the filesystem. (Addresses Debian Bug: #516820)
832
833Change e2fsck to not abort a preen pass if an inode is found to have
834i_file_acl_hi non-zero. Ext3 filesystems don't care, and newer
835kernels (post 2.6.29) will ignore this field. So let's fix it
836automatically during the preen pass instead of forcing the user to fix
837this up manually. (Addresses Debian Bug: #526524)
838
839Add resource tracking for e2fsck passes 1b through 1d.
840
841Speed up e2fsck by eliminating unnecessary journal checks if the
842filesystem is already mounted and doesn't need recovery (since the
843kernel would have run the journal when the filesystem was mounted.)
844Also speed up e2fsck by avoiding unnecessary block group descriptor
845updates in ext2fs_close().
846
847Add support to chattr to migrate inodes from using direct/indirect
848blocks to extents.
849
850Avoid corrupting the filesystem if there is an attempt to shrink a
851filesystem using resize2fs smaller than posible by making
852ext2fs_set_bmap() more careful not to delete the old block until the
853new block can be inserted. In addition, fix a bug in how the minimum
854size of the filesystem (plus a safety margin) is calculated, and
855modify resize2fs to refuse to shrink the filesystem below that minimum
856size without the force flag.
857
858Teach blkid to try to figure out DM device names using take advantage
859of information in sysfs when running on kernels (2.6.29 and later)
860which provide this information in /sys/block/dm-<N>/dm/name; this is
861much faster than scanning for the devncie number in /dev/mapper.
862
863Fix blkid to prefer /dev/mapper/<name> device names instad of the
864private /dev/dm-X names.
865
866Add an -a option to debugfs's close_filesys command which writes any
867changes to the superblock or block group descriptors to all of the
868backup superblock locations.
869
870Add support to the filefrag program to use the FIEMAP ioctl.
871
872Update Chinese translation from the Translation Project.
873
874Clean up various man pages. (Addresses Red Hat Bugzilla: #502971 and
875Launchpad Bug: #381854)
876
877Fixed various Debian packaging issues --- see debian/changelog for
878details. (Addresses Debian Bug #506064)
879
880
881Programmer's Notes
882------------------
883
884Add test code to make sure e2fsck's problem.c doesn't have two problem
885codes assigned to duplicate values.
886
887Avoid using a hard-coded path for /bin/rm in block's test_probe.in.
888(Addresses Sourceforge Bug: #2780205)
889
890Clean up e2fsck by removing #ifdef RESOURCE_TRACK by adding an empty
891function declaration for init_resource_track() and
892print_resource_track() when RESOURCE_TRACK is not defined.
893
894The test code which is used to build the tst_csum progam has been
895moved from from tst_csum.c into csum.c under an #ifdef DEBUG to to
896avoid compile problems caused by not having a prototype for
897ext2fs_group_desc_csum(). (Addresses Sourceforge Bug #2484331)
898
899Update the config.guess and config.sub file to the latest from the
900FSF, to allow e2fsprogs to build on the avr32 platform. (Addresses
901Debian Bug: #528330)
902
903Add a new function, ext2fs_extent_open2(), which behaves like
904pext2fs_extent_open(), but uses the user-supplied inode structure
905when opening an extent instead of reading the inode from disk.
906
907
Theodore Ts'o898ddb02009-04-23 22:44:16 -0400908E2fsprogs 1.41.5 (April 23, 2009)
909=================================
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400910
911Fix a number of filesystem corruption bugs in resize2fs when growing
912or shrinking ext4 filesystems off-line (i.e., when the ext4 filesystem
913is not mounted).
914
915Debugfs can now set i_file_acl_high via the set_inodes_field command,
916and print a 64-bit file acl. This is useful for debugging filesystem
Theodore Ts'o898ddb02009-04-23 22:44:16 -0400917corruptions where the high bits of i_file_acl_high are set. E2fsck
918will detect and fix non-zero i_file_acl_high on 32-bit filesystems
919since some Linux kernel versions pay attention to this field even when
920they shouldn't.
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400921
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400922Speed up e2fsck when checking clean filesystems by avoiding
923unnecessary block reads, and coalescing the block group descriptor
924blocks so they are read using a single read operation.
925
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400926The libuuid library will now close all file descriptors before running
927uuidd. This avoids problems when the calling program has open sockets
928which then never get closed because uuidd is a long-running helper
929daeomn. (Addresses Launchpad bug: #305057)
930
931In order to avoid unnecessary full filesystem checks by e2fsck after
932an on-line resize, e2fsck will ignore the NEEDS_RECOVERY flag set on
933the backup superblocks. (Addresses Red Hat Bugzilla: #471925)
934
935Mke2fs will avoid trying to create the journal when run in
936superblock-only mode (mke2fs -S), since the left-over journal in the
937inode table will cause mke2fs to fail.
938
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400939Fix a bug in libext2fs functions that check to see if a particular
940device or filesystem image is mounted, which would cause these
941functions to report that a file identical to the (relative) pathname
942used by a pseudo-filesystem was mounted when in fact it was not.
943
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400944Update Czech translation from the Translation Project.
945
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400946Add Chinese (simplified) translation from the Translation Project.
947
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400948Fix support for external journals (which was broken in e2fsprogs
9491.41.4).
950
951Fix a regression in debugfs where the "stat" command when no
952filesystem was open would cause debugfs to crash with a segmentation
953violation.
954
955Starting in the 2.6.29 linux kernel, the ext4 filesystem driver can be
956used to support filesystems without a journal. Update the blkid
957library so it understands this.
958
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400959The blkid library will remove an entry from the blkid cache
960representing the entire disk if partitions are found, since presuambly
961the device previously had no partition table, but has now transitioned
962to using a partition table.
963
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400964Add a check to mke2fs and tune2fs that the argument to the -m option
965(which specifies the reserved ratio) must be greater than zero.
966(Addresses Debian Bug: #517015)
967
968Add support for tracking the number kilobytes written to the
969filesystem via the superblock field s_kbytes_written. It will be
970updated by the kernel as well as by e2fsprogs programs which write to
971the filesystem. This is useful for tracking the wear to filesystems
972on Solid Sstate Drives.
973
974Fix compatibility issue in the libext2fs info file and makeinfo
975version 4.12. (Addresses Red Hat Bugzilla: #481620)
976
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400977Update/clarify man pages. (Addresses Debian Bug: #515693, #365619)
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400978
979Fixed various Debian packaging issues --- see debian/changelog for
980details. (Addresses Debian Bug: #506279)
981
982Programmer's Notes
983------------------
984
985Fix Hurd compilation problem in e2fsck and tune2fs (Addresses Debian
986Bug: #521602)
987
988Fix various gcc compilation warnings and other programming cleanups.
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400989(Addresses Red Hat Bugzilla: #486997)
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400990
991Add support for building the blkid command statically.
992
Theodore Ts'oe60c25b2009-04-23 01:57:51 -0400993Add support for disabling the built-in blkid library in favor of a
994system-installed blkid implementation via the configure option
995--disable-libblkid.
996
Theodore Ts'odaf3c822009-04-19 23:06:45 -0400997
Theodore Ts'ob2ca48f2009-01-27 19:51:00 -0500998E2fsprogs 1.41.4 (January 27, 2009)
999===================================
1000
1001Fixed a bug which could sometimes cause blkid to return an exit value
1002of zero for a non-existent device (Addresses Debian Bug: #502541)
1003
1004Blkid will now recognize ext3 filesystems that have the test_fs flag
1005set as ext3 filesystems.
1006
1007The blkid library will now recognize btrfs filesystems and swap
1008devices currently used by user-level software suspend.
1009
1010Tune2fs now updates the block group checksums when changing the UUID
1011to avoid causing e2fsck to complain vociferously at the next reboot.
1012
1013Tune2fs's inode size resizing algorithms have been fixed so it is not
1014vastly inefficient for moderate-to-large filesystems, due to some
1015O(n**2) and O(n*m) algorithms that didn't scale well at all.
1016
1017Fix tune2fs's inode resizing algorithm so it will not corrupt
1018filesystems laid out for RAID filesystems; in addition, tune2fs will
1019refuse to change the inode size for filesystems that have the flex_bg
1020feature enabled. (This is a limitation in the current implementation
1021of tune2fs -I.)
1022
1023E2fsprogs 1.41 broke debugfs's logdump command for normal ext3/4
1024filesystems with 32-bit block numbers, when the headers for 64-bit
1025block numbers was added. This regression has been fixed.
1026
1027Debugfs's ncheck command has been fixed to avoid printing garbage
1028characters at the end of file names.
1029
1030Fix resize2fs for ext4 filesystems. Some blocks that that need moving
1031when shrinking filesystems with uninit_bg feature would not be moved.
1032In addition, blocks and inode table blocks were not being correctly
1033freed when shrinking filesystems with the flex_bg feable, which caused
1034resize2fs -M to fail. Finally, when blocks are moved, make sure the
1035uninitialized flag in extents is preserved.
1036
1037Fix bug which caused dumpe2fs to abort with an error if run on a
1038filesystem that contained an external journal.
1039
1040Some distributions used "mke3fs" as an alias for "mkfs.ext3"; check
1041for this in argv[0] to provide better legacy support for these
1042distributions. This is a practice that should NOT be continued,
1043however.
1044
1045Mke2fs now has a new option -U, which allows the user to specify the
1046UUID that should be used for the new filesystem.
1047
1048Mke2fs will treat devices that are exactly 16TB as if they were 16TB
1049minus one block. This allows users who have read that ext3 supports
1050up to 16TB filesystems and who create a 16TB LVM to not get confused,
1051since the true limit is really 16TB minus one block.
1052
1053E2fsck will no longer abort an fsck run if block group has an errant
1054INODE_UNINIT flag.
1055
1056E2fsck now distinguishes between fragmented directories and fragmented
1057files in verbose mode statistics and in the fragcheck report.
1058
1059Fix a bug in e2fsck which casued it double count non-contiguous
1060extent-based inodes.
1061
1062E2fsck will leave some slack space when repacking directories to allow
1063room for a few directory entries to be added without causing leaf
1064nodes to be split right away.
1065
1066Fix a bug which caused e2fsck to crash when it comes across a
1067corrupted interior node in an extent tree with the error message:
1068"Error1: Corrupt extent header on inode XXXXXX"
1069
1070E2fsck problem descriptions involving the journal are no longer
1071referred to as "ext3" problems, since ext4 filesystems also have
1072journals.
1073
1074Fix a long-standing bug in e2fsck which would cause it to crash when
1075replying journals for filesystems with block sizes greater than 8k.
1076
1077Update Catalan translation from the Translation Project.
1078
1079Fixed various Debian packaging issues --- see debian/changelog for
1080details. (Addresses Debian Bugs: #503057, #502323, #511207)
1081
1082Programmer's Notes
1083------------------
1084
1085Fix build of e2fsck.profiled, and add support for building profiled
1086binaries in the misc directory if configured with --enable-profile.
1087
1088The ext2fs_open() function now performs more sanity checks on the
1089superblock to avoid potential divide by zero errors by other parts of
1090library.
1091
1092The ext2fs_read_inode_full() function now has a safety check to avoid
1093a segmentation fault on corrupted filesystems.
1094
1095The ext2fs_new_inode() function now has a sanity check so that if the
1096s_first_inode field in the superblock is insane, it will return
1097EXT2_ET_INODE_ALLOC_FAIL instead of returning an invalid inode number.
1098
1099To avoid segmentation faults, ext2fs_block_alloc_stats() and
1100ext2fs_inode_alloc_stats() now validates the passed inode or block
1101number to avoid overrunning an array boundary.
1102
1103Various signed/unsigned errors for variables containing block numbers
1104have been fixed.
1105
1106Accomodations for gcc's stupidity in not realizing that constant
1107strings that do not contain a '%' character are safe to use in format
1108strings have been made so that distributions that want to compile
1109e2fsprogs with -Werror=format-security have an easier time doing so.
1110
1111Added a new 64-bit getsize interface, ext2fs_get_device_size2().
1112
1113Added the utility make-sparse.c to the contrib directory.
1114
1115The ext2fs_block_iterate2() function now reflects errors from
1116ext2fs_extent_set_bmap() to the caller, if the callback tries to
1117change a block on an extent-based file, and ext2fs_extent_set_bmap()
1118fails for some reason (for example, there isn't enough disk space to
1119split a node and expand the extent tree.
1120
1121The ext2fs_block_iterate2() function will preserve the uninit flag in
1122extents when the callback function modifies a block in an extent-based
1123file.
1124
1125E2fsck will now flag filesystems that have an insane s_first_ino field
1126in their superblock, and attempt to use a backup superblock to repair
1127the filesystem.
1128
1129
Theodore Ts'odf547ae2008-10-11 18:40:13 -04001130E2fsprogs 1.41.3 (October 12, 2008)
1131===================================
1132
1133E2fsck has been fixed so it prints the correct inode number for
1134uinit_bg related problems.
1135
1136E2fsck will now offer to clear the test_fs flag if the ext4 filesystem
1137is available on linux. This can be disabled via a configuration
1138option in /etc/e2fsck.conf.
1139
1140Fix a file descriptor leak in libblkid when checking to see if an ext4
1141or ext4dev module exists.
1142
1143Fix a bug in e2fsck where in preen mode, if there are disk I/O errors
1144while trying to close a filesystem can lead to infinite loops.
1145(Addresses Red Hat Bugzilla #465679)
1146
1147Fix a bug in resize2fs where passing in a bogus new size of 0 blocks
1148will cause resize2fs to drop into an infinite loop. (Addresses Red
1149Hat Bugzilla: #465984)
1150
1151Add a check in the Unix I/O functions in libext2fs so that when a
1152device is opened read/write, return an error if the device is
1153read-only using the BLKROGET ioctl.
1154
1155Fix debugfs's ncheck command so that it prints all of the names of
1156hardlinks in the same directory.
1157
1158Fix a bug in libblkid so it correctly detects whether the ext4 and
1159ext4dev filesystems are available, so that the ext4dev->ext4
1160fallback code works correctly.
1161
1162Programmer's Notes
1163------------------
1164
1165Fix a parallel build problem by making sure util/subst is built before
1166trying to build the lib/et directory. (Addresses Sourceforge Bug:
1167#2143281)
1168
1169Updated "make depend" information for crc16.o
1170
1171
Theodore Ts'oc12125f2008-10-01 23:16:06 -04001172E2fsprogs 1.41.2 (October 2, 2008)
1173==================================
1174
1175Fix e2fsck's automatic blocksize detection. This fixes a regression
1176from e2fsprogs 1.40.7 which caused e2fsck to fail if the user
1177specifies a block number using the -b option if the blocksize option
1178isn't also specified using -B. Unfortunately, users very commonly
1179invoke e2fsck using "e2fsck -b 32768 /dev/hdXXX" to use the backup
1180superblock; in fack e2fsck will often suggest this kind of command
1181line. Oops.
1182
1183Enhance the debugfs's "ncheck" command so it will print all of the
1184pathnames for the specified inodes. (Previously, in some cases ncheck
1185might not print a pathname for an inode at all if some of the other
1186inodes had multiple hard links.)
1187
1188Enhance debugfs's "hash" command so the hash seed can be specified via
1189a command-line option. In addition, allow the hash algorithm to be
1190specified by name instead of just by number.
1191
1192Fix e2fsck so that we don't accidentally print the translation file's
1193header when asking the user a custom question so there is no prompt
1194defined for a particular problem record. For example, the question
1195"Run journal anyway" will get the PO header tacked on because e2fsck
1196erroneously passed the null string to _(). (Addresses Launchpad Bug:
1197#246892)
1198
1199Enhance badblocks so that it can test a normal file which is greater
1200than 2GB.
1201
1202Enhance the badblocks command so that it displays the time and
1203percentage complete when in verbose mode. (Addresses Debian Bug:
1204#429739)
1205
1206Fix a potential memory leak in a error handling path in debugfs's
1207ncheck function.
1208
1209Fix a potential memory corruption problem if a memory allocation fails
1210in resize2fs.
1211
1212Fix the usage message for debugfs's logdump command to be consistent
1213with its man manpage.
1214
1215Update Polish, French, Vietnamese, Dutch, Indonesian, German, Czech,
1216and Sweedish translation from the Translation Project.
1217
1218Add documentation for the file I/O functions to the libext2fs.texinfo
1219file. (Addresses Debian Bug: #484877)
1220
1221Update and clarified various man pages. (Addresses Launchpad Bug
1222#275272; Addresses Debian Bugs: #498100, #498101, #498102, #498103)
1223
1224Fixed various Debian packaging issues --- see debian/changelog for
1225details. (Addresses Debian Bug: #497619)
1226
1227Programmer's Notes
1228------------------
1229
1230Fix a potential file descriptor leack in libcom_err by setting the
1231close-on-exec flag for a fd used for debugging. (Addresses Red Hat
1232Bugzilla #464689)
1233
1234Fix a potential race in libcom_err by using sem_post/sem_init. SuSE
1235has been carrying a patch for a long time to prevent a largely
1236theoretical race condition if a multi-threaded application adds and
1237removes error tables in multiple threads. Unfortunately SuSE's
1238approach breaks compatibility by forcing applications to link and
1239compile with the -pthread option; using pthread mutexes has
1240historically been problematic. We fix this by using sem_post/sem_init
1241instead.
1242
1243Fix e2fsprogs-libs build failure due to 'subs' target. (Addresses
1244Sourceforge Bug: #2087502)
1245
1246Avoid linking e2initrd_helper, debugfs, blkid, and fsck with unneeded
1247libraries when using ELF shared libraries.
1248
1249Fix ELF shared library when building on systems that don't already
1250have the e2fsprogs shared libraries already installed. (Addresses
1251Sourceforge Bug: #2088537)
1252
1253Fix the pkg-config files so they work correctly when linking with
1254static libraries and fix the include directory so programs don't have
1255to use #include <ext2fs/ext2fs.h>, but can use #include <ext2fs.h>
1256instead. (Addresses Sourceforge Bug: #2089537)
1257
1258Make sure ext2fs_swab64() is compiled for all platforms, and not just
1259for x86. (Addresses Debian Bug: #497515)
1260
1261Remove the unused ext2fs_find_{first,ext}_bit_set() functions for all
1262non-x86 platforms. (They had been removed for x86 earlier.)
1263
1264Fix diet libc compilation support, which had bitrotted due to lack of
1265TLC. Fixing this improves general portability.
1266
1267When installing the link library when using ELF shared libraries,
1268avoid using absolute pathnames if the link library and the shared
1269library are installed in the same directory. (Addresses Sourceforge
1270Bug: #1782913)
1271
1272Fix gen-tarball so it will work even if the top-level directory has
1273been renamed to something other than "e2fsprogs". Also make
1274gen-tarball print the size of the resulting tar.gz file.
1275
1276
Theodore Ts'o31d64872008-09-01 10:39:35 -04001277E2fsprogs 1.41.1 (September 1, 2008)
1278====================================
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001279
1280Many people are forgetting to update their mke2fs.conf file, and this
1281causes ext3, ext4, and ext4dev filesystems won't get created with the
1282proper features enabled. We address this in two ways. First, mke2fs
1283will issue a warning if there is not definition for an ext3, ext4, or
1284ext4dev filesystem and the user is trying to create such a filesystem
1285type. Secondly, when installing from a source build, "make install"
1286will provide basic configuration file handling for /etc/mke2fs.conf.
1287If it exists, and does not mention ext4dev, it will be moved aside to
1288/etc/mke2fs.conf.e2fpsrogs-old and the new /etc/mke2fs.conf file will
1289be installed. If the existing /etc/mke2fs.conf file does mention
1290ext4dev, then "make install" will install official mke2fs.conf file as
1291/etc/mke2fs.conf.e2fsprogs-new and issue a message to the user that
1292they should look to see if any changes need to be merged.
1293
Theodore Ts'o31d64872008-09-01 10:39:35 -04001294The mke2fs program will now create the journal in the middle of the
1295filesystem, since this minimizes seek times on average for fsync-heavy
1296workloads. In addition, mke2fs will now create journals using extents
1297for filesystems that support them. This results in a more efficient
1298encoding for the journal since it eliminates the need for using
1299indirect blocks.
1300
1301The mke2fs program will avoid allocating an extra block to the
1302journal. (Addresses Sourceforge Bug: #1483791)
1303
1304Mke2fs will correctly enforce the prohibition against features
1305(specifically read-only features) in revision 0 filesystems. (Thanks
1306to Benno Schulenberg for noticing this problem.)
1307
1308Mke2fs previously would occasionaly create some slightly non-optimally
1309placed inode tables; this bug has been fixed.
1310
1311The mke2fs and tune2fs programs now print the correct usage message
1312describing the maximum journal size. (Addresses Debian Bug: #491620)
1313
1314Add support for setting the default hash algorithm used in b-tree
1315directories in tune2fs (from a command-line option) or mke2fs (via
1316mke2fs.conf). In addition, change the default hash algorithm to
1317half_md4, since it is faster and better.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001318
1319The blkid library will now recognize MacOS hfsx filesystems, and
1320correctly extract the label and uuid for hfs, hfsx, and hfsplus
1321filesystems. (Addresses Sourceforge Feature Requests: #2060292)
1322
Theodore Ts'o31d64872008-09-01 10:39:35 -04001323The blkid library has improved detection of JFS and HPFS filesystems.
1324(Addresses Launchpad Bug: #255255)
1325
1326The blkid library is now much more efficiently handling devicemapper
1327devices, mainly by no longer using the devicemapper library. This can
1328speed up access for systems with a large number of device mapper
1329devices.
1330
1331Blkid had a number of cache validation bugs in libblkid that have been
1332fixed. (Addresses Debian Bug: #493216)
1333
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001334Resize2fs will now properly close out the "updating inode references"
1335progress bar so there is a newline printed before printing the final
1336"resize is successful" message.
1337
1338Resize2fs will now correctly handle filesystems with extents and/o
1339uninitialized block groups correctly when file/directory blocks need
1340to relocated (i.e., when shrinking a filesystem or if the resize_inode
1341is not present). To support this, the ext2fs library now supports
1342initializing inode and block bitmaps that are not yet initialized when
1343allocating them using ext2fs_new_block() and ext2fs_new_inode(). In
1344addition, e2fs_block_iterate2() can now support changing the location
1345of interior nodes of an extent tree, and ext2fs_extent_set_bmap() has
1346been optimized to avoid creating unnecessary new extents when updating
1347the location of blocks in the extent tree. This will also help out
1348e2fsck's recovery of obscurely corrupted filesystems with extents,
1349when blocks are claimed by multiple inodes.
1350
Theodore Ts'o31d64872008-09-01 10:39:35 -04001351Add support for on-line resizing ext4 filesystem with the flex_bg
1352filesystem feature. The method for doing so is not optimal, but to do
1353a better job will require kernel support.
1354
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001355E2fsprogs 1.41.0 intrduced a bug in libext2fs which casued e2image and
1356debugfs programs to not be able to read e2image files; the signed
1357vs. unsigned bug in the code which read bitmaps from the e2image has
1358been fixed. (Addresses Debian Bug: #495830)
1359
1360Resize2fs is now correctly managing the directory in-use counts when
1361shrinking filesystems and directory inodes needed to be moved from one
1362block group to another. This bug has been around since e2fsprogs
13631.26, and is largely harmless, but does cause a filesystem corruption
1364which will be flagged by e2fsck after the filesystem has been shrunk.
1365
1366E2fsck will no longer issue spurious complaints about the inode size
1367caused by very large extent-based files, and by blocks reallocated
1368using fallocate() with the FALLOC_FL_KEEP_SIZE option. (Addresses
1369Kernel Bugzilla: #11341)
1370
1371Mke2fs will now set the creation timestamp on the lost+found directory
1372and the root directory. (More generally, all new inodes created using
1373the ext2fs library will correctly set the creation timestamp.)
1374
1375E2fsck now correctly calculates ind/dind/tind statistics in the
1376presence of extent-based files. In addition, "e2fsck -v" will report
1377statistics of the depth of extent trees in the filesystem. E2fsck can
1378also give an inode fragmentation report using "e2fsck -E fragcheck"
1379which can be useful when debugging the kernel block allocation
1380routines.
1381
Theodore Ts'o31d64872008-09-01 10:39:35 -04001382Fix support for empty directory blocks in ext4 filesystems with 64k
1383blocksize filesystems.
1384
1385E2fsck will now print the depth of corrupt htree directories.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001386
1387Debugfs's htree command now correctly understands extent-based
1388directories. It will also print out the minor hash as well as the
1389major hash.
1390
Theodore Ts'o31d64872008-09-01 10:39:35 -04001391Debugfs has a new command which will print the supported features of
1392e2fsprogs, to enable scripts to know whether the installed version of
1393e2fsprogs can support a specific feature.
1394
1395Debugfs will now write files using extents for filesystems that
1396support them.
1397
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001398The error message printed by "tune2fs -I" if the inode size was too
1399small was rather confusing, so it has been improved. Also, we won't
1400try to create an undo log until we know that command-line-specified
1401parameters such as "tune2fs -I <inode size>" are valid.
1402
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001403Given some filesystems found "in the wild" that had non-zero block
1404group checksums even though the uninit_bg/gdt_sum feature was not
1405enabled, e2fsck would issue spurious error messages. Teach
1406ext2fs_group_desc_csum_verify() to ignore the block group checksum
1407entirely if the feature flag is not set. (Addresses Debian Bug:
1408#490637)
1409
1410The blkid program will now print out a user-friendly listing of all of
1411the block devices in the system and what they contain when given the
1412-L option. (Addresses Debian Bug: #490527)
1413
Theodore Ts'o31d64872008-09-01 10:39:35 -04001414The filefrag program now has a more accurate calculation for the
1415number of ideal extents. (Addresses Debian Bug: #458306)
1416
1417The test I/O manager is now enabled by default, but its overhead is
1418only incurred when it would be enabled via the TEST_IO_FLAGS or
1419TEST_IO_BLOCK environment variables.
1420
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001421Typographical errors in various program strings and usage messages
1422have been fixed; most of these were pointed out by the e2fsprogs
1423message catalog translators. (Thanks, translators!)
1424
1425Update and clarified various man pages, as well as some typographical
1426errors in the libext2fs texinfo file.
1427
1428Fixed various Debian packaging issues --- see debian/changelog for
1429details.
1430
1431Add Indonesian and update French, Polish, Dutch, German, Sweedish,
1432Czech, and Vietnamese Translations. (Addresses Debian Bugs: #313697,
1433#401092)
1434
1435Programmer's Notes
1436------------------
1437
1438Fix portability problem with the badblocks group; for systems that
1439don't have nanosleep(), try using usleep() instead.
1440
1441The "make check" target in the e2fsck directory now sets
1442LD_LIBRARY_PATH before running the various e2fsck internal library
1443regression tests.
1444
1445The crc32 regression test in the e2fsck library is now portable to
1446greater varienty of environments, including big-endian systems and
1447when cross-building e2fsprogs for embedded systems. (Addresses
1448Sourceforge Bug: #2019287)
1449
1450The ext2fs_extent_set_bmap() had some bugs when setting the first
1451block in a file, or when replacing a single block extent. Those cases
1452fortunately were came up relatively rarely when e2fsck was checking
1453files, but caused some problems when resize2fs was shrinking
1454extent-based files.
1455
Theodore Ts'o31d64872008-09-01 10:39:35 -04001456Fix a potential core-dumping bug in libe2p's iterate_on_dir()
1457function.
1458
1459Various ext2fs library functions --- ext2fs_block_iterate2(),
1460ext2fs_initialize() and ext2fs_extent_open() --- now correctly free
1461allocated memory to avoid memory leaks in all of their error return
1462paths.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001463
1464Ext2ed was failing to build because masix support had been removed in
1465the rest of e2fsprogs, so ext2ed no longer has masix support, either.
1466
1467The configure script now respects the LDFLAGS environment variable if
1468it is set when configure is called. (Addresses Sourceforge Feature
1469Request: #1937287)
1470
1471Libuuid is now more portable to the Windows platform. (Addresses
1472Sourceforge Feature Request: #1937287)
1473
1474The configure script now uses AC_MSG_{RESULT,WARN,ERROR} instead of
1475bare echo commands so that configure flags such as --quiet work
1476correctly. (Addresses Sourceforge Patches: #2058794)
1477
1478A few uses of sprintf have been removed from the ext2fs library to
1479make life easier for bootloaders with a limited libc environment.
1480(Addresses Sourceforge Bug: #2049120)
1481
1482The ext2fs_read_inode() checks the validity of the inode number passed
1483to it earlier, to avoid doing some needless work when it would fail
1484anyway.
1485
1486The ext2fs_open() checks the validity of the blocksize parameter
1487passed to it earlier, to avoid doing some needless work when it would
1488fail anyway.
1489
1490Disable a very annoying automatic "%.sh -> %" GNU make rule in the
1491top-level Makefile. That automatic rule is used to better support
1492SCCS, but it caused problems for a particular niche distribution which
1493likes to use configure.sh files to store the configure options used to
1494build a package. Unfortuntaely GNU make will use the configure.sh to
1495replace the configure script, resulting in a self-inflicted fork bomb
1496leading to an out-of-memory crash.
1497
Theodore Ts'o31d64872008-09-01 10:39:35 -04001498To support old GNU C compilers don't use C99/C++ comments, but only
1499K&R style comments, and don't try to use __builtin_expect if __GNUC__
1500is less than 3. (__builtin_expect is only supported for gcc versions
15012.96 and up, and it's tricky to check for gcc 2.95 vs gcc 2.96; since
1502this is an optimization, we only try to use __builtin_expect for gcc 3
1503and up.)
1504
1505In e2fsck's crc routines, make sure we use WORDS_BIGENDIAN instead of
1506__LITTLE_ENDIAN, which are only defined by glibc's header files and
1507hence isn't portable.
1508
1509For the convenience for some distributions that need a static tune2fs,
1510the Makefile for misc/ now has a tune2fs.static target.
1511
1512The ext2fs_block_iterate2() function now supports BLOCK_FLAG_APPEND
1513for extent-based files
1514
1515The ext2fs_bmap() function now supports BMAP_ALLOC for extent-based
1516files.
1517
1518All source files no longer have any trailing white space.
1519
1520The io_channel_read_blk64() and io_channel_write_blk64() functions are
1521now functions instead of C preprocessor macros to provide better
1522forward compatibility.
1523
1524The e2fpsrogs translation template now expands the @x abbrevation.
1525
1526Various namespace leackages in libblkid, libe2p, and libext2fs have
1527been fixed.
1528
1529Fix a parallel build problem in e2fsprogs.
1530
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001531E2fsprogs is now more portable to Solaris.
1532 * blkid no longer assumes that the TIOCGSIZE and TIOCGWINSZ ioctl's
1533 are always present.
1534 * Scripts do not assume that /bin/true is always in /bin
1535 * Don't use __FUNCTION__ since Solaris's C99 doesn't support it.
1536 * Flush stdio handles before calling setbuf(), since Solaris will
1537 discard any pending output to the stream.
1538 * Define _XOPEN_SOURCE to 600 since Solaris's header files are very
1539 picky about which C compiler can beused for SUSv3 conformance.
1540 Use of C99 is not compatible with SUSv2 (_XOPEN_SOURCE=500),
1541 and C89 is not compatible with SUSv3 (_XOPEN_SOURCE=600).
1542 Since we need some SUSv3 functions, consistently use SUSv3 so
1543 that e2fsprogs will build on Solaris using c99.
1544 * Solaris C99 does not support varargs C preprocessor macros
1545 * Solaris header files pollute the C namespace if in/netinet.h
1546 is included, which conflicts with e2fsprogs' use of the kmem_cache_t
1547 typedef.
1548 * Solaris ships with a pathetically ancient shell in /bin/sh so we
1549 avoid the use of various more avanced shell constructs such as $().
1550
Theodore Ts'o31d64872008-09-01 10:39:35 -04001551The "make rpm" command will now take some extra configure optiosn from
1552the build environment without needing to patch the source tree.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001553
Theodore Ts'o31d64872008-09-01 10:39:35 -04001554The ext2fs_add_dir_block() function will now grow the dblist more
1555aggressively as an optimization to avoid copying the array too often.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001556
Theodore Ts'o31d64872008-09-01 10:39:35 -04001557The e2fsck_write_bitmaps() will write the block and inode bitmaps
1558together instead of in two passes.
Theodore Ts'o30ab7f42008-08-23 11:43:08 -04001559
1560
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001561E2fsprogs 1.41 (July 10, 2008)
1562==============================
Theodore Ts'o795de672008-06-18 00:50:05 -04001563
1564Add support for ext4 filesystem features, in particular extents,
1565uninit_bg, flex_bg, huge_file, and dir_nlink features. Also add
1566support for checking journal checksums. Debugfs will print new
1567superblock and inode fields that were defined for ext4. For example,
1568the nanosecond and i_version fields of an inode, and the
1569s_min_extra_isize and s_wanted_extra_isize fields from the superblock.
1570Note: Resize2fs doesn't currently support the combination of flex_bg
1571and !resize_inode. (Addresses Debian Bug: #388452, #425477)
1572
1573Tune2fs can support migrating a filesystem from using 128 byte inodes
1574to 256 byte inodes, so it can take advantage of the full features of
1575ext4.
1576
1577Add support for "undo" support. E2fsck and mke2fs can optionally
1578record an undo log which can replayed by the program e2undo.
1579
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001580E2fsck could damage a filesystem by trying to relocate inode tables
1581due to corrupted block group descriptors, where the attempted inode
1582table relocation would do far more harm than good. E2fsck has been
1583fixed to detect this these sorts of corrupted block group descriptors
1584much earlier in e2fsck processing, so it can try to use the backup
1585superblock and block group descriptors first. This should be a much
1586better strategy for recovering these types of corrupted filesystems.
1587(Addresses Sourceforge Bug: #1840291)
1588
Theodore Ts'o795de672008-06-18 00:50:05 -04001589E2fsck will display a more understandable message when the last check
1590field in the superblock is in the future. (Addresses Debian Bug:
1591#446005).
1592
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001593E2fsck now performs more extensive and careful checks of extended
1594attributes stored in the inode.
1595
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001596Enhance mke2fs to print a more explanatory error message when
1597ext2fs_get_device_size() returns EFBIG. (Addresses Debian Bug:
1598#488663)
1599
1600Fix mke2fs to use a default block size of 4k when formatting an
1601external journal device. This is done by using a fixed filesystem
1602type list that consists only of the single filesystem type "journal"
1603when looking up configuration keys in /etc/mke2fs.conf. (Addresses
1604Debian Bug: #488663)
1605
Theodore Ts'o795de672008-06-18 00:50:05 -04001606Speed up how mke2fs writes the journal data blocks by writing the disk
1607blocks in larger chunks.
1608
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001609Fix blkid handling of stale devices. Fix a bug which could cause a
1610core dump while garbage collecting the blkid cache, and assure that
1611blkid_find_dev_with_tag() never returns a non-existent device. Also,
1612if a filesystem is found at a new /dev location, eliminate any
1613duplicate stale entries which can not be verified.
Theodore Ts'odaf3c822009-04-19 23:06:45 -04001614(Addresses Debian Bugs: #487758, #487783)
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001615
Theodore Ts'o795de672008-06-18 00:50:05 -04001616Add more paranoid checks for LVM volumes and swap partitions in
1617blkid's probe function, to reduce the chances of false positives.
1618
1619The mke2fs program now has a much more sophisticated system for
1620controlling configuration parameters of a newly created filesystem
1621based on a split filesystem and usage type system. The -t option to
1622mke2fs was a deprecated alias to -c; it now specifies a filesystem
1623type (ext2, ext3, ext4, etc.), while the -T option can now be a comma
1624separated usage list. The filesystem type information and type
1625information is used to extract configuration parameters from the
1626/etc/mke2fs.conf file.
1627
Theodore Ts'o795de672008-06-18 00:50:05 -04001628The mke2fs program will no longer complain and request the -f option
1629when the user tries to create a filesystem with greater than 2**31
1630blocks.
1631
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001632When creating a filesystem for the GNU Hurd use a fs-type of Hurd and
1633adjust the mke2fs.conf file so filesystems for the Hurd are created
1634with a blocksize of 4096 and inode size of 128, which is all it knows
1635how to handle. (Addresses Debian Bug: #471977)
1636
Theodore Ts'o795de672008-06-18 00:50:05 -04001637Mke2fs will always make sure that lost+found always has at least 2
1638blocks, even for filesystems with very large blocksizes (i.e., 64kb).
1639
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001640Resize2fs will now print the minimum needed filesystem size if given
1641the -P option, and will resize the filesystem to the smallest possible
1642size if given the -M option.
1643
1644Fix resize2fs to clean up the resize_inode if all of the reserved gdt
1645blocks are consumed during an off-line resize.
1646
Theodore Ts'o795de672008-06-18 00:50:05 -04001647The "ls" command in debugfs now supports the -p option, which causes
1648it to quote the filenames so that spaces or tabs in directory entries
1649are easily visible. (Addresses Red Hat Bugzilla: #149480; Addresses
1650Sourceforge Feature Request: #1201667)
1651
1652Fix a potential off-by-one buffer oveflow in the fs_device_name in an
1653e2image file.
1654
1655The chattr program will return a non-zero exit code in case of
1656failures, and error messages can be suppressed with the -f option.
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001657(Addresses Red Hat Bugzilla: #180596)
1658
1659Fix a bug in badblocks which caused it to overrun an array and likely
1660crash if more than 8 test patterns are specified using the -t option.
1661(Addresses Debian Bug: #487298)
Theodore Ts'o795de672008-06-18 00:50:05 -04001662
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001663Add support to badblocks to limit how quickly it reads from the disk
1664drive (so it can be used for background scrubbing), and so it will
1665abort after finding a given number of errors.
1666
Theodore Ts'o795de672008-06-18 00:50:05 -04001667Remove support for the legacy big-endian filesystem format which only
1668existed on extremely long-dead PowerPC kernels almost a decade ago.
1669
1670Remove MASIX support from e2fsprogs.
1671
1672Add I/O statistics reporting to e2fsck.
1673
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001674Update Vietnamese, Polish, French, Spanish, German, Catalan, Dutch,
1675Czech translations.
1676
1677Fixed various Debian packaging issues --- see debian/changelog for
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001678details. (Addresses Debian Bugs: #487443, #487675, #490003)
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001679
1680Fixed spelling mistakes, typos, and otherwise clarified man pages.
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001681(Addresses Debian Bugs: #393313, #487849, #440983, #440981)
Theodore Ts'oa41d5ac2008-07-07 15:10:16 -04001682
Theodore Ts'o795de672008-06-18 00:50:05 -04001683Programmer's Notes
1684------------------
1685
1686Factor out bitmap code in preparation for adding 64-bit new-style
1687bitmaps.
1688
1689Fix gcc -Wall warnings
1690
1691Fix the pkg-config files so that private librares are specified in
1692"Libs.private:".
1693
1694Fix the libext2fs.texinfo manual so it builds with modern versions of
1695texinfo.
1696
1697Silence the makefile from showing the awk command used to build the
1698
1699Clean up the badblocks group so to make it more portable and robust.
1700
1701Avoid using predictable filenames in /tmp in blkid's regression test
1702suite. Also remove bashism's in the regression test script.
1703
Theodore Ts'o92e49d82008-07-10 17:24:22 -04001704If the configure script is given --with-diet-libc, don't use thread
1705local storage, since diet libc doesn't support TLS. (Addresses
1706Sourceforge Bug: #2000654)
1707
1708Fix the blkid regression test suite to tolerate older versions of
1709mkswap that don't support the -U option.
1710
Theodore Ts'o795de672008-06-18 00:50:05 -04001711A few library routines have been converted to support 64-bit block
1712numbers; in particular, the I/O manager functions, the test_io,
1713inode_io, and unix_io managers have all be converted to support 64-bit
1714operation.
1715
1716Debugfs can now be extended for use by test programs. See
1717lib/ext2fs/extents.c for an example for how it can be used. The test
1718program links against the debugfs object files, and provides
1719additional commands by defining an auxiliary libss command table.
1720
1721The lazy_bg filesystem feature, which was only used by developer's
1722testing, has been removed since it has been largely supplanted by
1723uninit_bg. This also simplifies the code.
1724
1725
Theodore Ts'o0c7be6c2008-06-17 22:17:09 -04001726E2fsprogs 1.40.11 (June 17, 2008)
1727=================================
1728
1729Mke2fs, tune2fs, and resize2fs now use floating point to calculate the
1730percentage of reserved blocks. (Addresses Debian Bug: #452639)
1731
1732Updated Spanish and Catalan translations.
1733
1734Fixed various Debian packaging issues --- see debian/changelog for
1735details. (Addresses Debian Bugs: #483962, #483023)
1736
1737Add detection for ZFS volumes to the libblkid library.
1738
1739Fixed spelling mistakes, typos, and otherwise clarified man pages.
1740(Addresses Debian Bug: #486463)
1741
1742Programmer's notes:
1743-------------------
1744
1745Fix marginal C code in probe_lvm2() function to the blkid library more
1746portable for older compilers.
1747
1748Fix build problems on MacOS X. (Addresses Sourceforge Bug: #1972473)
1749
1750Fix ext2fs_swap{16,32,64} functions so they can be used by external
1751applications on big-endian machines. (Addresses Debian Bug: #484879)
1752
1753
Theodore Ts'o491d8bc2008-05-21 13:23:04 -04001754E2fsprogs 1.40.10 (May 21, 2008)
1755================================
1756
1757When deciding whether or not to revalidate a blkid cache entry, if the
1758device's mtime is newer than the last time the cached entry was
1759validated, force a revalidation.
1760
1761Fix a potential data corruption bug in e2fsck in the journal replay.
1762The chances of this is happening is extremely remote, especially the
1763default data=ordered or data=writeback modes. However, if a block
1764which has been journalled starts with the first four bytes 0xc03b3998,
1765when e2fsck replays the journal, those four bytes will be replaced
1766with zero's. Fortunately, it is highly, highly unlikely for e2fsck
1767metadata to begin with those fatal 4 byte sequence, and unless
1768data=ordered mode is in use, data blocks are never journaled.
1769
1770Updated German, Dutch, Sweedish, and Vietnamese translations.
1771
1772Programmer's notes:
1773-------------------
1774
1775Fixed various Debian packaging issues --- see debian/changelog for
1776details.
1777
1778Remove default sizes of types when cross compiling, since autoconf
17792.50 can figure this out automatically now.
1780
1781
Theodore Ts'o7affded2008-04-27 00:53:27 -04001782E2fsprogs 1.40.9 (April 27, 2008)
1783=================================
Theodore Ts'o5e107622008-03-14 14:29:51 -04001784
1785SuSE's security team audited uuidd and came up with a few minor
1786issues. None of them are serious given that uuidd runs setuid as a
1787unprivileged user which has no special access other than libuuid
1788directory, but it's good to get them fixed.
1789
1790One additional fix in ext2fs_swap_inode_full() needed for resize2fs to
1791work correctly with in-inode extended attributes.
1792
Theodore Ts'o7affded2008-04-27 00:53:27 -04001793Updated German, Czech, Dutch, French, Polish, Sweedish, and Vietnamese
1794translations.
1795
1796Debugfs will avoid using a pager if the standard output is not a tty.
1797
1798Fix debugfs and tune2fs to correctly handle daylight savings time when
1799parsing a time string.
1800
1801Fixed spelling mistakes, typos, and otherwise clarified man pages.
1802
1803Fix fsck completion bars when multiple filesystems were being checked
1804in parallel. (Addresses Debian Bug: #432865, Addresses Launchpad Bug:
1805#203323, Addresses Sourceforge Bug: #1926023)
1806
1807Fix fsck so that progress information is sent back correctly when
1808multiple filesystems are being check and the output of fsck is being
1809redirected to a file descriptor. Also, include the device name (w/o
1810spaces) in the progress information sent back via a file descriptor.
1811(Addresses Launchpad Bug: #203323, Addresses Sourceforge Bug:
1812#1926023)
1813
1814Teach fsck to treat "ext4" and "ext4dev" as ext* filesystems.
1815
1816If logsave receives a SIGTERM or SIGINT signal, it will now pass that
1817signal to its child process.
1818
1819Fix mke2fs's creation of are resize inode when there is a non-standard
1820s_first_data_block setting.
1821
1822Fix bug in blkid when run by an unprivileged user; most devices were
1823not reported correctly. 9Addresses Launchpad Bug: #220275)
1824
1825Mke2fs will not allow the logically incorect combination of
1826resize_inode and meta_bg, which had previously caused mke2fs to create
1827a corrupt fileystem.
1828
1829Fix fsck in German locales so that a 'j' means yes.
1830(Addresses Sourceforge Bug: #1947683)
1831
1832
Theodore Ts'o5e107622008-03-14 14:29:51 -04001833Programmer's notes:
1834-------------------
1835
1836Fixed various Debian packaging issues --- see debian/changelog for
1837details.
1838
Theodore Ts'o7affded2008-04-27 00:53:27 -04001839Update valgrind options in test_script to work with valgrind 3.2.3
1840
1841Update texinfo.tex to a much newer version from the FSF.
1842
1843Remove bashism for configure script and from the lib/ss Makefile.
1844Addresses Sourceforge Bug: 1921969
1845
1846Fix some silently broken tests: m_no_opt, m_meta_bg, and m_raid_opt.
1847
1848Fix build system so that if texinfo is not installed, it won't print a
1849(harmless) error message.
1850
1851
Theodore Ts'oda078322008-03-13 20:25:51 -04001852E2fsprogs 1.40.8 (March 13, 2008)
1853=================================
1854
1855Fixed e2image -I so it works on image files which are larger than 2GB.
1856
1857Fixed e2fsck's handling of directory inodes with a corrupt size field. If
1858the size is larger than the number of blocks found in the inode, don't
1859try to allocate extra empty blocks at the end of the directory to make
1860up the difference; there's no point to doing that. In addition, if
1861the size is not a multiple of a blocksize, always fix it.
1862
1863E2fsck handled a pass 2 "should never happen error" by not giving
1864enough information and then core dumping. Unfortunately, it was all
1865too easy to trigger the "should never happen" situation if a
1866directory's inode size was not correct. This has been fixed, but
1867e2fsck has also been taught how to handle this situation more
1868gracefully, by simply removing the inode hash tree information, so
1869that it can be rebuilt again after e2fsck's pass 3. (Addresses
1870Launchpad Bug: #129395)
1871
1872Resize2fs had a bug resizing large inodes with extended attributes
1873that was fixed in 1.40.6; unfortunately, it turned out it wasn't fixed
1874completely on big-endian systems such as PowerPC. The bug should be
1875completely fixed now. Yay for regression test suites. (Addresses Red
1876Hat Bugzilla: #434893)
1877
1878Updated German, Czech, Dutch, Polish, Sweedish, and Vietnamese
1879translations. Many thanks to Philipp Thomas from Novell for stepping
1880up to become the new German translation maintainer! (Addresses Debian
1881Bugs: #302512, #370247, #401092, #412882).
1882
1883When e2fsck is clearing a corrupt inode's HTREE directory information,
1884make it clear that it is just clearing the HTREE information, not the
1885entire inode.
1886
1887Fixed spelling mistakes, typos, and otherwise clarified man pages.
1888
1889Programmer's notes
1890------------------
1891
1892Add new functions, ext2fs_dblist_get_last() and
1893ext2fs_dblist_drop_last(), which allows the caller to examine the last
1894directory block entry added to the list, and to drop if it necessary.
1895
1896Fixed a portability problem in libblkid with DJGPP.
1897
1898Fix an obvious typo in an "internal error" message in e2fsck. Thanks
1899to Philipp Thomas for pointing this out.
1900
1901If the info files are not built, change "make install" so it doesn't
1902fail with an error code.
1903
1904
Theodore Ts'oe1e83b62008-02-28 22:51:49 -05001905E2fsprogs 1.40.7 (February 28, 2008)
1906====================================
1907
1908Remove support for clearing the SPARSE_SUPER feature from tune2fs, and
1909depreciate the -s option, since it can result in filesystems which
1910e2fsck can't fix easily. There are very good reasons for wanting to
1911disable sparse_super; users who wants to turn off sparse_super can use
1912debugfs. (Addresses Sourceforge Bug: #1840286)
1913
1914Add missing options to mke2fs's usage message. (Addresses Sourceforge
1915Bug: #1751393)
1916
1917Fix bug in resize2fs when large (greater than 128 byte) inodes are
1918moved when a filesystem is shrunk; it was only moving the first 128
1919bytes, so extended attributes were not getting moved. (Addresses Red
1920Hat Bugzilla: #434893)
1921
1922E2fsck now prints an explicit message when the bad block inode is
1923updated, to avoid confusion about why the filesystem was modified.
1924(Addresses Sourceforge Bug: #756460)
1925
1926Allow mke2fs and tune2fs manipulate the large_file feature.
1927Previously we just let the kernel and e2fsck do this automatically,
1928but e2fsck will no longer automatically clear the large_file feature.
1929It still isn't really necessary to worry about this feature flag
1930explicitly, but some users seem to care. (Addresses Red Hat Bugzilla:
1931#258381)
1932
1933Suppress message about an old-style fstab if the fstab file is empty.
1934(Addresses Debian Bug: #468176)
1935
1936Fix (really minor) bug in debugfs's find_free_block so it avoids
1937reporting a free block more than once if there are too few free blocks
1938in the filesystem. (Addresses Sourceforge Bug: #1096315)
1939
1940Change e2fsck to no longer clear the LARGE_FILES feature flag
1941automatically, when there are no more > 2GB files in the filesystem.
1942It's been almost a decade since there have been kernels that don't
1943support this flag, and e2fsck clears it quietly without telling the
1944user why the filesystem has been changed.
1945
1946Fix bug which could cause libblkid to seg fault if a device mapper
1947volume disappears while it is being probed. (Addresses RedHat
1948Bugzilla: #433857)
1949
1950Inhance e2fsck's reporting of unsupported filesystem feature flags.
1951(Addresses Sourceforge Feature Request: #1175808)
1952
1953Fix option syntax in dumpe2fs for explicit superblock and blocksize
1954parameters. What was currently documented in the man page has been
1955broken for some time, due to getopt() implementation changes. The
1956option sytax has been changed to one which is can be more portable
1957supported and which is consistent with the format for extended options
1958in mke2fs and tune2fs. (Addresses Sourceforge Bug: #1830994)
1959
1960Add support to tune2fs to clear the resize_inode feature. This
1961requires an fsck afterwards. (Addresses Red Hat Bugzilla: #167816)
1962
1963Teach blkid to detect LVM2 physical volumes. (Addresses Red Hat
1964Bugzilla: #409321)
1965
1966Add support for setting RAID stride and stripe-width via mke2fs and
1967tune2fs. Teach dumpe2fs to print the RAID parameters.
1968
1969Add support for setting new superblock fields to debugfs's
1970set_super_value.
1971
1972Add support for printing "mostly-printable" extended attributes in
1973Debugfs.
1974
1975Add support for the -M option to fsck, which causes it to ignore
1976mounted filesystem.
1977
1978Fix uuidd so that it creates the pid file with the correct pid number.
1979(Addresses Sourceforge Bug: #1893244)
1980
1981Fix various gcc -Wall warnings.
1982
1983Update Czech, Dutch, Polish, Sweedish, and Vietnamese translations
1984
1985Fixed spelling mistakes, typos, and otherwise clarified man pages.
1986(Addresses Sourceforge Patch: #1399325)
1987
1988
1989Programmer's notes:
1990-------------------
1991
1992Fixed various Debian packaging issues --- see debian/changelog for
1993details. (Addresses Debian Bug: #466929)
1994
1995Add new flag EXT2_FLAG_NONFREE_ON_ERROR ext2fs_open2() which returns a
1996partially filled-in filesystem object on an error, so that e2fsck can
1997print more intelligent error messages.
1998
1999Add a new function e2p_edit_feature2() which allows the caller to
2000specify which feature flags are OK to set or clear, and which returns
2001more specific information about feature flags which are not allowed to
2002be set/cleared.
2003
2004Set the C locale in the test_script driver since it uses [A-Za-z].
2005(Addresses Sourceforge Bug: #1890526)
2006
2007Use fcntl locking instead of lockf in libuuid since Cygwin doesn't
2008support lockf().
2009
2010Change configure.in to avoid using the 'dc' command unless it is
2011absolutely needed. (i.e., when using parsing a WIP-style version
2012number) (Addresses Sourceforge Bug: #1893024)
2013
2014Add portability checks to support compilation under DJGPP.
2015
2016Update to the latest samba tdb code before the LGPLv3 change, which
2017fixes a realloc() leak on failure.
2018
2019Fix memory leak in ext2fs_alloc_block().
2020
2021Fix makefile dependency issues for various install targets.
2022(Addresses-Sourceforge-Patches: #1903484, #1903466, #1903456)
2023
2024Improve descriptions for the r_move_itable and r_resize_inode tests.
2025
2026
Theodore Ts'oe015f3d2008-02-10 00:16:37 -05002027E2fsprogs 1.40.6 (February 9, 2008)
2028===================================
2029
2030Add support for returning labels for UDF filesystems in the blkid
2031library.
2032
2033Fix bug in the blkid library where cached filesystems was not being
2034flushed when opening USB devices returned the error ENOMEDIUM.
2035(Addresses Debian Bug: #463787)
2036
2037Added logic to the blkid library to automatically choose whether a
2038filesystem should be mounted as ext4 or ext4dev, as appropriate.
2039
2040Allow tune2fs to set and clear the test_fs flag on ext4 filesystems.
2041
2042Fix a bug in e2fsck which caused it to core dump if e2fsprogs had been
2043configured with --enable-jbd-debug.
2044
2045Document the BLKID_FILE environment variable in the libblkid man page
2046
2047Programmer's Notes:
2048-------------------
2049
2050Update e2fsprogs translation template and Vietnamese and Czech translations
2051
2052Fixed various Debian packaging issues --- see debian/changelog for
2053details. (Addresses Debian Bugs: #436058)
2054
2055Don't try to create $DESTDIR/etc/init.d as part of make install as we
2056don't install the init.d script (and it's not the recommended way to
2057start uuidd anyway). (Addresses Sourceforge Bug: #1885085)
2058
2059Use thread local storage to fix a theoretical race condition if two
2060threads try to format an unknown error code at the same time in the
2061com_err library.
2062
2063
Theodore Ts'oc8a57082008-01-27 20:01:25 -05002064E2fsprogs 1.40.5 (January 27, 2008)
2065===================================
2066
2067Fix a potential overflow big in e2image if the device name is too
2068long.
2069
2070Mke2fs will now create new filesystems with 256 byte inodes and the
2071ext_attr feature flag by default. This allows for much better future
2072compatibity with ext4 and speeds up extended attributes even on ext3
2073filesystems.
2074
2075Teach e2fsck to ignore certain "safe" filesystem features which are
2076set automatically by the kernel. Having the kernel set features
2077automagically behind the user's back is a bad idea, and we should try
2078to break the kernel of this habit, especially for the newer ext4
2079feature flags. But for now, we will try to avoid needless full checks
2080which can annoy users who are doing fresh installs.
2081
2082Add support in tune2fs and mke2fs for making a filesystem as being "ok
2083to be used with test kernel code". This will be needed for using test
2084filesystems with the latest ext4 kernel code.
2085
2086Change e2fsck -fD so that it sorts non-htree directories by inode
2087numbers instead of by name, since that optimizes performances much
2088more significantly. (Addresses-Sourceforge-Feature-Request: #532439)
2089
2090If e2image fills the disk, fix it so it exits right away instead of
2091spewing large numbers of error messages.
2092(Addresses-Sourceforge-Feature-Request: #606508)
2093
2094If ftruncate64() is not available for resize2fs, let it use ftrucate()
2095instead, but have it check to see if the size would get truncated, and
2096skip calling ftruncate in that case.
2097
2098Add support for detecting HFS+ filesystems in the blkid library.
2099
2100Add supprt in the blkid library for ext4/ext4dev filesystems.
2101
2102Fix a bug in blkid where it could die on a floating point exception
2103when presented with a corrupt reiserfs image.
2104
2105Fix blkid's handling of ntfs UUID's so that leading zeros are printed
2106such that UUID string is a fixed length.
2107
2108Add sample python bindings for the uuid library to the contrib
2109directory. (Addresses-Sourceforge-Patches: #778817)
2110
2111Fix debugfs's 'lsdel' command so it uses ext2fs_block_iterate2 so it
2112will work with large files. (Addresses Sourceforge Feature Request:
2113#1257500 and Sourceforge Support Request: #1253511)
2114
2115Allow the debugfs 'undel' command to undelete an inode without linking
2116it to a specific destination directory, since this might require
2117allocating blocks that could overwrite some yet-to-be-recovered
2118deleted files. (Addresses-Sourceforge-Feature-Request: #967141)
2119
2120Update Swedish translations from the Translation Project.
2121
2122Programmer's Notes:
2123-------------------
2124
2125Fix configure handling of --sbindir (which should rarely be used, but
2126someone did complain, so let's fix it). (Addresses Sourceforge Bug:
2127#498381)
2128
2129Updated e2fsprogs.spec file to include a new uuidd package
2130
2131Use pkg-config to determine where to find the devmapper library so we
2132can find out where it is located on different distributions.
2133
2134Fix Makefile race so that "make -j3 distclean" works correctly
2135
2136Fix portability problems on non-Linux/non-Hurd/non-Masix systems,
2137especially on MacOS X systems. (Addresses Sourceforge Bugs: #1861633,
2138#1819034, #1863819)
2139
2140Fixed spelling mistakes, typos, and otherwise clarified man pages.
2141
2142Fixed various Debian packaging issues --- see debian/changelog for
2143details. (Addresses Debian Bugs: #459403, #459475, #459614)
2144
2145Remove the --enable-dynamic-static configure option, and build e2fsck
2146dynamically by default. If the user wants e2fsck.static, he/she will
2147need to build it via "make -C e2fsck e2fsck.static"
2148
2149Fix various build warnings due to missing prototypes.
2150(Addresses Sourceforge Patch: #1861663, #1861659)
2151
2152
Theodore Ts'o2c0dd0f2007-12-29 10:19:33 -05002153E2fsprogs 1.40.4 (December 31, 2007)
2154====================================
2155
2156Improve time-based UUID generation. A new daemon uuidd, is started
2157automatically by libuuid if necessary. This daemon is setuid to allow
2158updates to /var/lib/libuuid, so the clock sequence number can be
2159stored and so if the clock is set backwards, it can be detected.
2160(Addresses Sourceforge Bug: #1529672, Addresses Red Hat Bugzilla:
2161#233471)
2162
2163Filter out the NEEDS_RECOVERY feature flag when writing out the backup
2164superblocks. This avoids e2fsck from concluding that a full
2165filesystem check is required before backing up the superblock due to
2166changes in the feature flags. (Addresses Debian Bug: #454926)
2167
2168Fix fsck to only treat the '#' character as a comment at the beginning
2169of the line in /etc/fstab. Otherwise fstabs for the fuse filesystem
2170will cause fsck to issue an bogus warning message.
2171(Addresses Gentoo bug: #195405, Addresses Sourceforge bug: #1826147)
2172
2173Format control characters and characters with the high eighth bit set
2174when printing the contents of the blkid cache, to prevent filesystems
2175with garbage labels from sending escape sequences to the user's screen
2176that might, for example place it in graphics mode. (Addresses Ubuntu
2177Bug: #78087)
2178
2179Fix sign-extension problem on 64-bit systems in in the com_err
2180library. (Addresses Sourceforge Bug: #1809658)
2181
2182Avoid division by zero error when probing an invalid FAT filesystem in
2183the blkid library. (Addresses Sourceforge Bug: #1831627)
2184
2185Update Dutch, Polish, and Vietnamese translations from the Translation
2186Project. Remove the Rwandan translation upon advice of the
2187Translation Project.
2188
2189Programmer's Notes:
2190-------------------
2191
2192Fix the libss "make check" regression test so that it works if the
2193current directory is not in the user's path or if the libss shared
2194library is not installed. (Addresses Sourceforge Bug: #1848974)
2195
2196Fixed spelling mistakes, typos, and otherwise clarified man pages.
2197(Addresses Debian Bugs: #444883, #441872)
2198
2199Fixed various Debian packaging issues --- see debian/changelog for
2200details. (Addresses Debian Bugs: #437720, #451172, #458017)
2201
2202Fix build failure on non-Linux/non-Hurd/non-Masix systems.
2203(Addresses Sourceforge Bug: #1859778)
2204
2205Fix Hurd portability issues. (Addresses Debian Bug: #437720)
2206
2207
Theodore Ts'o80dda9b2007-12-03 18:33:39 -05002208E2fsprogs 1.40.3 (December 5, 2007)
2209===================================
2210
2211Fix a potential security vulnerability where an untrusted filesystem
2212can be corrupted in such a way that a program using libext2fs will
2213allocate a buffer which is far too small. This can lead to either a
2214crash or potentially a heap-based buffer overflow crash. No known
2215exploits exist, but main concern is where an untrusted user who
2216possesses privileged access in a guest Xen environment could corrupt a
2217filesystem which is then accessed by the pygrub program, running as
2218root in the dom0 host environment, thus allowing the untrusted user to
2219gain privileged access in the host OS. Thanks to the McAfee AVERT
2220Research group for reporting this issue. (Addresses CVE-2007-5497.)
2221
2222Fix hueristics in blkid which could cause a disk without partitions to
2223be incorrectly skipped when a loopback device is present. (Addresses
2224Red Hat Bugzilla #400321.)
2225
2226Fix e2image so that in raw mode it does not create an image file which
2227is one byte too large.
2228
2229Change mke2fs's usage message so it recommends the preferred -E option
2230instead of the deprecated -R option.
2231
2232Enhance the blkid library so it will recognize squashfs filesystems.
2233(Addresses Red Hat Bugzilla #305151.)
2234
2235Enhance e2fsck so it will force the backup superblocks to be backed up
2236if the filesystem is consistent and key constants have been changed
2237(i.e., by an on-line resize) or by e2fsck in the course of its
2238operations.
2239
2240Enhance blkid's detection of FAT filesystems; so that USB disks with
2241only a single bootable partition will not get missed.
2242
2243E2fsck will no longer mark a filesystem as invalid if it has time
2244errors (i.e., if superblock mount time or last write time is in the
2245future) and the user refuses to fix the problem.
2246
2247The Ubuntu init scripts don't properly set the system time correctly
2248from hardware clock if the hardware clock is configured to tick local
2249time instead of GMT time. Work around this as best as we can by
2250providing an option, buggy_init_scripts, in /etc/e2fsck.conf which can
2251be set on Ubuntu systems. (Addresses Debian Bug #441093, and Ubuntu
2252Bug #131201.)
2253
2254Fix fsck to ignore /etc/fstab entries for bind mounts. (Addresses Red
2255Hat Bugzilla #151533.)
2256
2257Fix e2fsck so that if the superblock is corrupt, but still looks
2258vaguely like an ext2/3/4 superblock, that it automatically tries to
2259fall back to the backup superblock, instead of failing with a hard
2260error.
2261
2262Make the e2fsprogs program more robust so that they will not crash
2263when opening a corrupt filesystem where s_inode_size is zero.
2264
2265Change e2fsck so it uses sscanf() instead of atoi() so it non-numeric
2266arguments are detected as such and the parse error is reported to the
2267user. (Addresses Debian Bug #435381.)
2268
2269Change e2fsck so it will not complain if a file has blocks reallocated
2270up to the next multiple of a system's page size.
2271
2272Fix bug in ext2fs_check_desc() which will cause e2fsck to complain
2273about (valid) filesystems where the inode table extends to the last
2274block of the block group. (Addresses Red Hat Bugzilla #214765.)
2275
2276Fix a bug in ext2fs_initialize() which causes mke2fs to fail while
2277allocating inode tables for some relatively rare odd disk sizes.
2278(Addresses Red Hat Bugzilla #241767.)
2279
2280Add Catalan translation and update Dutch and Swedish translations
2281from the Translation Project.
2282
2283Fix big-endian byte-swapping bug in ext2fs_swap_inode_full(). We
2284still had an issue when trying to figure out whether we need to
2285byte-swap fast symlinks that contained extended attributes.
2286
2287Fixed spelling mistakes, typos, and otherwise clarified man pages.
2288(Addresses SourceForge Bug #1821333.)
2289
2290
2291Programmer's Notes:
2292-------------------
2293
2294Fix mke2fs tests to avoid needing any significant ^M (CR) characters
2295
2296Add "make check" to the RPM spec file
2297
2298Fix "make install" and 'make unstall" in misc/Makefile.in so that it
2299works correctly when the prefix is not the root directory.
2300
2301Fix the resize2fs tests, r_move_itable and r_resize_inode, so they
2302clena up after themselves by deleting the test.img temporary file
2303after completing the test.
2304
2305Fixed a corner case bug ext2fs_unlink() when trying to delete the
2306first directory entry in a directory block and the last directory
2307entry in the previous directory block is not in use. Fortunately
2308ext2fs_unlink() is only used by debugfs and e2fsck, and in e2fsck in
2309places where it is extremely unlikely to run into this corner case.
2310
2311Fix missing dependency which would cuase parallel builds to fail.
2312(Addresses Sourceforge Bug #1842331.)
2313
2314Fix a build error on newer gcc caused by lib/ext2fs/ismounted.c
2315calling open(O_CREATE) with a missing mode parameter.
2316
2317Fix the test_ss.c in lib/ss so it can be used as an example
2318application program for the library as well as a regression test
2319suite.
2320
2321Fix ext2fs_dblist_dir_iterate() so that error codes and abort codes
2322are properly passed back up through the call stack.
2323
Theodore Ts'od2dc78a2007-07-14 09:03:17 -04002324E2fsprogs 1.40.2 (July 12, 2007)
2325================================
2326
2327A recent change to e2fsck_add_dir_info() to use tdb files to check
2328filesystems with a very large number of filesystems had a typo which
2329caused us to resize the wrong data structure. This would cause a
2330array overrun leading to malloc pointer corruptions and segfaults.
2331Since we normally can very accurately predict how big the the dirinfo
2332array needs to be, this bug only got triggered on very badly corrupted
2333filesystems.
2334
2335Fix a bug in e2fsck which caused it to incorrectly salvange
2336directories when the last entry's rec_len is bogusly too big. This
2337resulted in a nonsense filesystem corruption to be reported, and
2338required a second run of e2fsck to fully fix up the directory.
2339
2340Update tune2fs man page to include more discussion of reserved blocks
2341(Addresses Launchpad bug #47817)
2342
2343Update Turkish, Polish, Dutch, and Vietnamese PO files from the
2344Translation Project
2345
2346
Theodore Ts'o23edf9b2007-07-08 23:24:19 -04002347E2fsprogs 1.40.1 (July 7, 2007)
2348===============================
Theodore Ts'o58b3df72007-07-08 20:26:51 -04002349
2350Fix bug which could cause libblkid to loop forever. When revalidating
2351a partition where there is obsolete information in /etc/blkid.tab, we
2352end up freeing a the type tag without clearing dev->bid_type, causing
2353blkid_verify() to loop forever. (Addresses Debian Bug: #432052)
2354
2355The Turkish translation has a bug in it where it has the translation
2356of "E@e '%Dn' in %p (%i)" to "E@E". This causes @E to be expanded at
2357@E, recursively, forever, until the stack fills up and e2fsck core
2358dumps. We fix this by making e2fsck stop @-expansions after a
2359recursive depth of 10, which is far more than we need.
Theodore Ts'od2dc78a2007-07-14 09:03:17 -04002360(Addresses Sourceforge Bug: #1646081)
Theodore Ts'o58b3df72007-07-08 20:26:51 -04002361
2362Compile the default mke2fs.conf into mke2fs program. People are
2363getting surprised by mke2fs creating filesystems with different
2364defaults than earlier versions of mke2fs if mke2fs.conf is not
2365present. So we now create a built in version of mke2fs.conf file
2366which is used by mke2fs if the /etc/mke2fs.conf is not present.
2367(Addresses SourceforgeBug: #1745818)
2368
2369Improve the config/parse_types.sh helper script. Fix a potential
2370security problem if e2fsprogs is built as root (as Gentoo does!). In
2371addition fix the script and how it is called from the configure script
2372so that it does the right thing when cross-compiling. (Fixes Gentoo
2373bug: #146903)
2374
2375Update Vietnamese, French, and Dutch PO files from the Translation
2376Project. Also created a new e2fsprogs.pot file for translator.
2377
2378Fix bogus strip permission errors when building under Debian. When
2379building the e2fsprogs dpkg's, the dh_strip command emits a large
2380number of error messages caused by the permissions not being right.
2381So run dh_fixperms before running dh_strip.
Theodore Ts'o58b3df72007-07-08 20:26:51 -04002382
2383Programmer's Notes:
2384-------------------
2385
2386Add new function: profile_set_default(). This function sets the value
2387of the pseudo file "<default>". If the file "<default>" had
2388previously been passed to profile_init(), then def_string parameter
2389will be parsed and used as the profile information for the "<default>"
2390file.
2391
2392Fix mk_cmds's error reporting so that it is unambiguous that it is the
2393mk_cmds script which is generating the error. (Obviates Gentoo patch:
2394e2fsprogs-1.32-mk_cmds-cosmetic.patch)
2395
2396Fix the test suite to use LC_ALL instead of LANG. LC_ALL is the "high
2397priority" environment variable that overrides all others, where as
2398LANG is the lowest priorty environment variable. If LC_ALL is set, it
2399doesn't matter whether LANG, LANGUAGE, LC_COLLATE, LC_MESSAGES, and
2400the all the rest are set. This will assure that the locale when
2401running the test suites is the "C" locale. (Obviates Gentoo patch:
2402e2fsprogs-1.38-tests-locale.patch)
2403
2404
Theodore Ts'o57f48502007-06-29 23:09:16 -04002405E2fsprogs 1.40 (June 29, 2007)
2406==============================
2407
2408Fix divide by zero error in blkid's NTFS probing logic.
Theodore Ts'od7b64722007-06-24 17:32:47 -04002409
2410Add new blkid -g option which causes the blkid cache to be garbage
2411collected.
2412
2413Fix a bug in libblkid which could cause the internal field bid_type to
2414become corrupted. Fortunately bid_type isn't used much, and bid_label
2415and bid_uuid is only used by debugging code, so the impact of this bug
2416was very minor.
2417
2418Mke2fs will now store the RAID stride value when a filesystem is
2419created with a requested RAID stride, and then use it automatically in
2420resize2fs.
2421
2422Mke2fs has a sanity check added to make sure (inode_size * num_inodes)
2423isn't too big. In some cases Lustre users have tried specifying an
2424inode size of 4096 bytes, while keeping an inode ratio of one inode
2425per 4096 bytes.
2426
2427Improve sanity check in e2fsck's algorithm for finding a backup
2428superblock, so that it won't accidentally find a superblock that was
2429located in the journal, and then later reject it as being not a valid
2430backup superblock.
2431
2432Fix e2fsck get_size logic so that it will work with the Linux floppy
2433driver. The Linux floppy driver is a bit different from the other
2434block device drivers, in that if the device has been opened with
2435O_EXCL, it disallows another open(), even if the second open() does
2436not have the O_EXCL flag. (Addresses Debian Bug: #410569)
2437
2438Fix error checking of badblock's last-block and start-block arguments.
2439(Addresses Debian Bug: #416477)
2440
2441Fix e2fsck so that it doesn't overwrite the backup superblocks when
2442recovering a journal until the master superblock has been confirmed as
2443being sane.
2444
2445Change the blkid library to be much more paranoid about concluding
2446that a partition contains an NTFS filesystem, and fetch the UUID and
2447LABEL information from NTFS filesystems. (Addresses Launchpad Bug:
2448#110138)
2449
2450Factor out the code which sets the default journal size and move it
2451into libext2fs.
2452
2453Enhance e2fsck so it will recreate the ext3 journal if the original
2454journal inode was cleared to due it being corrupt after finishing the
2455filesystem check.
2456
2457Fix e2fsck so that it updates the journal inode if it is corrupted and
2458the backup journal information from the superblock was successfully
2459used to recover the filesystem.
2460
2461Fix e2fsck so that it checks all of the blocks in the journal inode
2462for validity. The original code only checked the direct blocks to
2463make sure the journal inode was sane. Unfortunately, if some or all
2464of the indirect or doubly indirect blocks were corrupted, this would
2465not be caught.
2466
2467Add support in blkid to detect LUKS encrypted partitions.
2468
2469Add extra sanity checks for extended attributes in the case where the
2470size is zero but the offset is very large.
2471
2472Fix byte-swapping issues for large inodes in ext2fs_read_inode_full()
2473and ext2fs_get_next_inode_full().
2474
2475Clarify the copyright licenses used by the various libraries in
2476the top-level COPYING file (Red Hat Bugzilla: 166058)
2477
2478Make mke2fs's defaults when /etc/mke2fs.conf doesn't exist more sane.
2479
2480Fix mke2fs and debugfs to support large (> 16 bit) uid's and gid's.
2481
2482Remove check in e2fsck which requires EA's in inodes to be sorted;
2483they don't need to be sorted, and e2fsck was previously wrongly
2484clearing unsorted EA's stored in the inode structure.
2485
2486Allow mke2fs or tune2fs to create a substantially larger journal (up
2487to 10,240,000 blocks).
2488
2489Fix MD superblock detection, and make sure the correct UUID is
2490reported from the MD superblock.
2491
2492Fix a signed vs. unsigned bug in debugfs.
2493
2494Enhance debugfs's date parser so that it accepts integer values.
2495
2496Fix e2fsck's pass1c accounting so it doesn't terminate too early if a
2497file with multiply claimed blocks is hard linked. or not at all if the
2498root directory contains shared blocks
2499
2500Enhance debugfs so it can modify the block group descriptors using the
2501command set_block_group_descriptor.
2502
2503Improve e2fsck's reporting of I/O errors so it's clearer what it was
2504trying to do when an error happens
2505
2506Fix a bug in in how e2fsprogs byte swaps inodes containing fast
2507symlinks that have extended attributes. (Addresses Red Hat Bugzilla:
2508#232663 and LTC Bugzilla: #27634)
2509
2510Fix potential file descriptor leak in ext2fs_get_device_size() in an
2511error case.
Theodore Ts'oa0d42542007-04-07 11:05:10 -04002512
2513Add libreadline.so.5 support to libss.
2514
2515Impove badblocks -n/-w exclusive usage message.
2516
2517Fix dump_unused segfault in debugfs when a filesystem is not open
2518
2519Fix memory leak in blkid library. (Addresses Debian Bug: #413661)
2520
2521Allow the debugfs lcd command to work w/o a filesystem being open.
2522(Addresses LTC Bugzilla #27513)
2523
2524Fix e2fsck to clear i_size for special devices with a bogus i_blocks
2525field on the first pass.
2526
2527Fix e2fsck to set the file type of the '..' entry when connecting
2528a directory to lost+found. (Addresses Lustre Bug: #11645)
2529
2530Enhance e2fsck to recover directories whose modes field were corrupted
2531to look like special files. This is probably only useful in
2532artificial test cases, but it will be useful if we ever do the "inodes
2533in directory" idea for ext4.
2534
2535Allow debugfs to dump (and rdump) > 2GB files. (Addresses Debian Bug:
2536#412614)
2537
2538Fix resize2fs parsing of size parameter (in sector units). This was
2539actually a bug in libe2p's parse_num_blocks() function. When handling
2540the 's' suffix, it was ignoring the blocksize information passed in
2541from the caller and always interpreting the number in terms of a 1k
2542blocksize. (Addresses Debian Bug: #408298)
2543
2544There was a floating point precision error which could cause e2fsck to
2545loop forever on really big filesystems with a large inode count.
2546(Addresses Debian Bug: #411838)
2547
2548Fix memory leak in ext2fs_write_new_inode()
2549
2550Add support for using a scratch files directory to reduce e2fsck's
2551emory utilization on really big filesystems. This uses the TDB
2552library. See the [scratch_files] section of the e2fsck.conf man page
2553for more details.
Theodore Ts'o7809bc52006-11-14 23:49:07 -05002554
2555Fixed type-punning bug which caused dumpe2fs to crash on the Arm
2556platform (Addresses Debian Bug: #397044)
2557
2558Add explanatory message to badblocks that -n and -w are mutually exclusive
2559(Addresses Debian Bug: #371869)
2560
2561Allow debugfs and dumpe2fs to support fs features under development.
2562
2563Add support for the new flag EXT2_FLAG_SOFTSUPP_FEATURES flag to
2564ext2fs_open() , which allows application to open filesystes with features
2565which are currently only partially supported by e2fsprogs.
2566
2567Allow unix_io to support offsets greater than 2G (Addresses
2568SourceForge Bug: #1547922)
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002569
2570Fixed overflow and signed/unsigned problems caused by the number of
Theodore Ts'o7809bc52006-11-14 23:49:07 -05002571blocks or inodes exceeding 2**31 or being close to 2**32-1.
2572
2573Add support for unsigned directory hash calculations with hints in the
2574superblock to fix cross-architectural portability for htree
2575directories with filenames where the high 8th bit is set. (Addresses
2576Debian: #389772)
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002577
2578Fix resize2fs so that it gives user-intelligible error messages if the
2579filesystem or the kernel does not support on-line resizing.
2580(Addresses Debian Bug: #380548)
2581
2582Require mke2fs -F -F for really dangerous operations, since -F is
2583needed for less dangerous operations such as creating filesystems
2584images in regular files, or creating filesystems on whole block
2585devices. These relatively innocuous usages should NOT be confused
2586with running mke2fs on an apparently-mounted or in-use filesystem.
2587
2588Allow the default inode size to be specified into the mke2fs.conf
2589file.
2590
2591Make the smallest default journal size is big enough so that on-line
2592resizing should always work.
2593
2594Fix silly spelling error in e2fsck. (Addresses SourceForge bug:
2595#1531372)
2596
2597Fix debugfs coredump when lsdel is run without an open filesystem
2598(Addresses Debian Bug: #378335)
2599
2600Fix debugfs display bug us that bytes that have the high bit set are
2601displayed as "ec" instead of "ffffffec".
2602
2603Add support in lsattr so it will display the EXT4_EXTENTS_FL flag.
2604
2605Device mapper scanning wasn't working in the blkid library because the
2606pathnames had an extra "/dev" when they were being probed.
2607
2608Add GFS/GFS2 support to the blkid library.
2609
2610Fix blkid support of empty FAT filesystem labels.
2611
2612Avoid recursing forever (or for a long time) when the blkid library
2613searches for a device and there are symlinks to directories in /dev.
2614
2615Avoid unaligned halfword access in blkid when accessing FAT
2616superblocks, as this will cause Sparc/Solaris systems to throw a
2617SIGBUS error.
2618
2619The latest devmapper libraries requires pthreads, add -lpthreads to
2620the static link libraries for e2fsck.static if devmapper is enabled.
2621(Addresses Debian bug: #388718)
2622
2623Improve the (non-installed, for experts only) findsuper program by
2624printing the uuid and label from the superblocks, as well as the
2625starting and ending offsets of the filesystem given the information in
2626the superblock. Omit by default printing superblocks that are likely
2627found in located in an ext3 journal unless an explicit -j option is
2628given.
2629
Theodore Ts'o80dda9b2007-12-03 18:33:39 -05002630Updated Spanish, French and Dutch translations and added Catalan
2631translation. (Addresses Debian bug: #411562)
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002632
2633Use FreeBSD's DIOCGMEDIASIZE and DIOCGDINFO ioctls if available when
2634determining a partition's size, since binary searching to determine
2635the device doesn't work on FreeBSD.
2636
Theodore Ts'od7b64722007-06-24 17:32:47 -04002637Documentation about UUID's is available in enough places, and it's
2638awkward to deal with debian-legal's insanities. So I'm caving in the
2639"more-lunatic-than-RMS" wing of Debian by removing RFC-4122 so we
2640don't have do the dfsg tarball. Also remove the rule that only tried
2641to install RFC-4122 on Ubuntu, since Ubuntu seems to want to fetch
2642e2fsprogs exclusively from Debian. (Addresses Debian Bug: #407107)
2643
2644Fix the info-dir line so that the menu name does not contain a .info
2645prefix. First of all, it's ugly, secondly, it causes the install-info
2646command to fail to remove the com_err info file from the
2647/usr/share/info/dir file when the comerr-dev package is removed and
2648purged. (Addresses Debian Bug: #401711)
2649
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002650Fixed spelling mistakes, typos, and otherwise clarified man pages.
Theodore Ts'oa0d42542007-04-07 11:05:10 -04002651(Addresses Debian Bug: #369761, #373004, #379695)
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002652
2653Fixed various Debian packaging issues --- see debian/changelog for
Theodore Ts'od7b64722007-06-24 17:32:47 -04002654details. (Addresses Debian Bugs #389554, #390664, #413208, #419605,
2655#408352, #415560, #399155)
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002656
2657
2658Programmer's notes:
2659-------------------
2660
Theodore Ts'oa0d42542007-04-07 11:05:10 -04002661E2fsck now supports the %It expansion when printing a problem report.
2662It will print the type of the inode in the problem context.
2663
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002664Fix misc/Makefile.in so that it builds even if e2fsck hasn't been built yet
2665(Addresses Sourceforge Bug: #1565561)
2666
2667Remove unused variables and other lint/gcc -Wall cleanups
2668
2669Add check to ext2fs_get_device_size() so it will return EFBIG for for
2670filesystems contained in regular files where the filesystem image size
2671is returned by stat64().
2672
Theodore Ts'o7809bc52006-11-14 23:49:07 -05002673Set local environment variables to C so mk_cmds and compile_et always
2674work. (Addresses SourceForge Bug: #1532177)
2675
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002676Added the 64-bit byte swapping function ext2fs_swab64().
2677
2678Added two new helper functions to prevent 2**31/2**32-1 overflow
2679problems: ext2fs_div_ceil() and e2p_percent().
2680
2681Create new ext2fs library inline functions ext2fs_group_first_block()
2682and ext2fs_group_last_block() in order to calculate the starting and
2683ending blocks in a block group.
2684
2685Create the generated files read-only to remind developers not to edit them.
2686
Theodore Ts'o7809bc52006-11-14 23:49:07 -05002687Add support for autoconf 2.60 (with backwards compatibility for older
2688versions of autoconf).
2689
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002690Added an "make rpm" target to top-level Makefile
2691
2692Added various FreeBSD portability fixes.
2693
2694Exclude mercurial files from the RPM build tree to speed up copy/build.
2695
2696Use root_sysconfdir to define the locations of mke2fs.conf and
2697e2fsck.conf instead of using a hard-coded /etc pathname.
2698
2699Prevent e2fsck.h and ext2_ext_attr.h from getting included multiple times.
2700
2701Fixed "make clean" in blkid's Makefile.in file from removing tst_*.c files.
2702
2703If diff -u is supported, use it to report test failures.
2704
2705Updates/improvements to RPM spec file
2706
Theodore Ts'o7809bc52006-11-14 23:49:07 -05002707Add on-disk format definitions for the following new features:
2708EXT4_FEATURE_RO_COMPAT_HUGE_FILE, EXT4_FEATURE_RO_COMPAT_GDT_CSUM,
2709EXT4_FEATURE_RO_COMPAT_DIR_NLINK, EXT4_FEATURE_INCOMPAT_64BIT,
2710EXT4_FEATURE_RO_COMPAT_EXTRA_ISIZE
2711
2712Add a new make target "checked-failed" in the tests directory which
2713reruns any failed tests
2714
2715Update draft-leach-uuids-guids-01.txt with rfc4122.txt
2716
Theodore Ts'oa0d42542007-04-07 11:05:10 -04002717Fix miscellaneous bugs reported by Coverity: Dead code, potential nul
2718pointer dereferences, memory leaks, etc. None were security-criticial
2719problems.
2720
2721Fix up usage and decrement error messages in the test_icount program
2722
2723Add debugging code to the com_err library; if the environment variable
2724COMERR_DEBUG is set to 1, print out debugging messages as error tables
2725are added and removed from the com_err library. If the
2726COMERR_DEBUG_FILE environment variable is set (and the process is not
2727setuid) the debugging messages may be redirected to a file.
2728
2729Change all of the e2fsprogs programs to use the newer add_error_table()
2730and remove_error_table() interfaces instead of the much older
2731initialize_*_error_table() function.
2732
2733Add TDB support into the ext2fs library. This allows us to have a
2734guaranteed library we can count on always being present so we can
2735store data in an on-disk database.
2736
2737Add support for using TDB to store the icount data, so we don't run out
2738of memory when checking really large filesystems.
2739
Theodore Ts'od7b64722007-06-24 17:32:47 -04002740Change the regression test suite so that it skips empty test directories.
2741
2742Define the l_i_iversion field in ext2_inode. The l_i_version field is
2743now defined from the old l_i_reserved1 field in the ext2 inode. This
2744field will be used to store high 32 bits of the 64-bit inode version
2745number.
2746
2747Add Makefile production rule for e2fsprogs.spec in case it gets
2748deleted.
2749
2750Add new function profile_get_uint() to allow for a clean way to fetch
2751unsigned integers from the context.
2752
2753Add test to make sure the ext2 superblock structure is 1024 bytes.
2754
2755Fix typo in name of f_dup4 regression test
2756
2757Add new function blkid_gc_cache() which performs a garbage collection
2758pass on the /etc/blkid.tab file.
2759
2760The ext2fs_open() function now sets EXT2_FLAG_MASTER_SB_ONLY. In
2761general, only e2fsck (after the filesystem is clean), tune2fs, and
2762resize2fs should change the backup superblocks by default. Most
2763callers of ext2fs_open() should not be touching any superblock fields
2764which require the backups to be touched.
2765
2766Add new function to libext2fs, ext2fs_default_journal_size(), which
2767returns the default journal size.
2768
Theodore Ts'o26bcc2c2006-10-02 13:34:48 -04002769
Theodore Ts'o6c094752006-05-29 11:47:25 -04002770E2fsprogs 1.39 (May 29, 2006)
2771=============================
Theodore Ts'o34a26112006-03-29 20:40:23 -05002772
Theodore Ts'o34a26112006-03-29 20:40:23 -05002773Fix 32-bit cleanliness in e2fsprogs so that we can support filesystems
2774between 2**31 and 2**32 blocks.
2775
Theodore Ts'o34a26112006-03-29 20:40:23 -05002776Change mke2fs to use /etc/mke2fs.conf as a configuration file to
2777configure the filesystem features, blocksize, and inode_ratio for
2778different filesystem types.
2779
Theodore Ts'o6c094752006-05-29 11:47:25 -04002780Mke2fs will now create filesystems hash trees and on-line resizing
2781enabled by default, based on the new /etc/mke2fs.conf file.
2782
Theodore Ts'o34a26112006-03-29 20:40:23 -05002783The e2fsprogs tools (resize2fs, e2fsck, mke2fs) will open the
2784filesystem device node in exclusive mode to prevent accidents by
2785system administrators. In the case of resize2fs and mke2fs, it will
2786only use exclusive mode if the filesystem is not mounted.
2787
2788Fixed a bug in mke2fs which caused it to to fail when creating the
2789resize inode for large filesystems. (Addresses Debian Bug #346580)
2790
Theodore Ts'obae55642006-05-14 17:31:48 -04002791When allocating space for the RAID filesystems with the stride
2792parameter, mke2fs will now place each portion of the group's inode
2793table right up after the superblock (if present) in order to minimize
2794fragmentation of the freespace.
2795
2796Speed up mke2fs and e2fsck by writing inode and block bitmaps more
2797efficiently by writing the inode and block bitmaps in one pass, thus
2798reducing the number of disk seeks required.
2799
Theodore Ts'o34a26112006-03-29 20:40:23 -05002800Add support for on-line resizing to resize2fs.
2801
2802Fix blkid library so that logic to determine whether or not a device's
2803cached information in /etc/blkid.tab needs to be verified or not
2804doesn't get confused by a system clock which is insane (for example,
2805if the battery is dead on a Macintosh running PPC Linux. (Addresses
2806Red Hat Bug: #182188)
2807
2808The blkid library will now store the UUID of the external journal used
2809by ext3 filesystems, so that in the future, the userspace mount binary
2810can use this to find the location of the external journal and pass
2811this information to the kernel.
Theodore Ts'of3227852005-12-31 16:45:29 -05002812
2813E2fsck will now consult a configuration file, /etc/e2fsck.conf to
Theodore Ts'o34a26112006-03-29 20:40:23 -05002814control how various options should be handled. See the e2fsck.conf
2815man page for more details. (Addresses Debian Bug: #150295)
Theodore Ts'of3227852005-12-31 16:45:29 -05002816
Theodore Ts'o34a26112006-03-29 20:40:23 -05002817E2fsck now prints an explanatory message when delaying a filesystem
2818check when the system is running on battery. (Addresses Debian Bug:
2819#350306)
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002820
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002821E2fsck will detect if the superblock's last mount field or last write
2822field is in the future, and offer to fix if so. (Addresses Debian Bug
Theodore Ts'of3227852005-12-31 16:45:29 -05002823#327580) These problems will be fixed automatically in preen mode
2824since Debian's boot sequence bogusly doesn't set the time correctly
2825until potentially very late in the bootup process, and this can cause
2826false positives which will cause users' systems to fail to boot.
2827(Addresses Debian Bugs #343662 and #343645)
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002828
Theodore Ts'o34a26112006-03-29 20:40:23 -05002829E2fsck now checks to see if the superblock hint for the location of
2830the external journal is incorrect, and if so, offer to update it.
2831(Addresses Debian Bug: #355644)
2832
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002833Fix e2fsck from segfaulting on disconnected inodes that contain one or
2834more extended attributes. (Addresses Debian Bug: #316736, #318463)
2835
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002836E2fsck will stop and print a warning if the user tries running a
2837read/write badblocks test on a read-only mounted root filesystem.
2838
Theodore Ts'obae55642006-05-14 17:31:48 -04002839Fix a memory leak in e2fsck's error paths. (Thanks to Michael
2840C. Thompson for pointing these out; they were originally found using
2841Coverity.)
2842
Theodore Ts'of3227852005-12-31 16:45:29 -05002843When resizing a file containing a filesystem, resize2fs will expand or
2844truncate a file as necessary. (Addresses Debian Bug: #271607)
2845
Theodore Ts'obae55642006-05-14 17:31:48 -04002846Resize2fs will now automatically determine the RAID stride parameter that
2847had been used to create the filesystem, and use that for newly created
2848block groups. The RAID stride parameter may also be manually specified
2849on the command line using the new -S option to resize2fs.
2850
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002851Fix mke2fs so that it correctly creates external journals on
2852big-endian machines (such as a S/390).
2853
Theodore Ts'obae55642006-05-14 17:31:48 -04002854Fix a bug in the e2p library which could cause dumpe2fs to (rarely)
2855fail to print out the journal or hash seed UUID. (Thanks to Guillaume
2856Chambraud for pointing this out.)
2857
2858Dumpe2fs will now print the size of the journal (if present).
2859
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002860Fix debugfs's set_inode_field command so it can properly set the frag,
2861fsize, uid_high, gid_high, and author fields in the inode instead of
2862silently failing, and so that setting the i_size actually sets i_size
2863correctly.
2864
2865Add a new debugfs command, set_current_time, which sets fs->now so
2866that regression test suites can repeatedly modify the filesystem's
2867last_write fields.
2868
Theodore Ts'o34a26112006-03-29 20:40:23 -05002869Fix a bug in debugfs's icheck which would incorrectly report the owner
2870of an extended attribute block.
2871
Theodore Ts'obae55642006-05-14 17:31:48 -04002872Fix the debugfs commands htree_dump, dx_hash, and list_dir so they print a
2873print a usage message when an illegal option character is given.
2874
Theodore Ts'o6c094752006-05-29 11:47:25 -04002875Fix debugfs's dump_unsued command on filesystems with a 64k blocksize
2876so it won't core dump. (Addresses SourceForge bug #1424311)
2877
Theodore Ts'obae55642006-05-14 17:31:48 -04002878Fix mklost+found so that it creates a full-sized directory on
2879filesystems with larger block sizes.
2880
2881Fix a file descriptor leak in blkid library.
2882
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002883Fix a display bug in "badblocks -sv" so that the done message properly
2884clears the block number at the end of the test. (Addresses Debian Bug
2885#322231)
2886
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002887Allow fractional percentages to the -m option in mke2fs and tune2fs
2888(Addresses Debian Bug: #80205)
2889
2890Use fstat/fstat64 in getsize.c if the the target is a regular file,
2891instead of attempting to do a binary search. Fix some fd leaks in
2892error cases.
2893
Theodore Ts'o34a26112006-03-29 20:40:23 -05002894Add support for device mapper library to the blkid library to ensure
2895that the "best" (i.e., leaf) device is probed by the blkid library.
2896
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002897Fix the blkid library so that it notices when an ext2 filesystem is
2898upgraded to ext3.
2899
2900Improve the blkid's library VFAT/FAT detection; it now understands
2901labels stored in the root directory, and is more paranoid about
2902checking the FAT superblock values.
2903
Theodore Ts'o34a26112006-03-29 20:40:23 -05002904Fixed a fd leak in the uuid library which was causing problems for the
2905LVM tools. (Addresses Debian Bug: #345832)
2906
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002907Add support for the reiser4 and software suspend partitions to the
2908blkid library. Also add support for extract the label from iso9660
2909filesystems.
2910
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002911Fix a compile_et bug which miscount the number of error messages if
2912continuations are used in the .et file.
2913
2914Add extra sanity checks to protect users from unusual cirucmstances
2915where /etc/mtab may not be sane, by checking to see if the device is
2916reported busy (works on Linux 2.6) kernels. (Addresses Debian Bug
2917#319002)
2918
Theodore Ts'o34a26112006-03-29 20:40:23 -05002919Updated French, Dutch, Polish, and Swedish translations. (Addresses Debian
2920Bug: #343149, #341911, #300871, #316604, #316782, #330789)
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002921
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002922Fix use-after-free bug in e2fsck when finishing up the use of the
2923e2fsck context structure.
2924
Theodore Ts'o34a26112006-03-29 20:40:23 -05002925Fixed spelling mistakes, typos, and otherwise clarified man pages and
2926documentation. (Addresses Debian Bugs: #329859, #322188, #316811,
Theodore Ts'o6c094752006-05-29 11:47:25 -04002927#312515, #351268, #357951, #347295, #316040, #368392, #368393, #368394,
2928#368179)
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002929
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002930Fixed various Debian packaging issues --- see debian/changelog for
Theodore Ts'o3285a9c2005-12-10 23:05:30 -05002931details. (Addresses Debian Bugs #317862, #320389, #290429, #310950,
Theodore Ts'o6c094752006-05-29 11:47:25 -04002932#310428, #330737, #330736, #329074, #356293, #360046, #366017, #364516,
2933#362544, #362970)
Theodore Ts'obae55642006-05-14 17:31:48 -04002934
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002935
2936Programmer's notes:
2937-------------------
2938
Theodore Ts'o7e2ec012006-04-22 04:29:16 -04002939Update config.guess and config.sub to latest version (2006-02-23) from
2940FSF.
2941
2942Fix asm_types.h type conflicts on AMD 64 platforms. (Addresses Debian
2943Bugs: #360661, #360317)
2944
Theodore Ts'o34a26112006-03-29 20:40:23 -05002945Fixed the Makefile so that they work correctly on newer versions of
2946GNU make (i.e., 3.81).
2947
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002948Add valgrind support to the regression test suites, and eliminate
2949false positives from valgrind.
2950
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002951Add a regression test suite for the blkid library.
2952
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04002953Fix a fencepost error in resize2fs caught by valgrind.
2954
Theodore Ts'o4c02c412005-12-09 19:20:01 -05002955Fix compiler warnings about missing memcpy prototypes.
2956
2957We no longer have the sparc assembly code in the header file any more,
2958so we shouldn't set _EXT2_HAVE_HAS_BITOPS_ for the sparc. This would
2959break compiles on the sparc architectures when using gcc.
2960
2961In the libext2fs library, add the new field fs->now which if non-zero
2962is used instead of the system time when setting various filesystem
2963fields (last modified time, last write time, etc.)
2964
2965Fix gcc 4.01 complaints by adding a missing #include <string.h> to
2966ext2fs.h which is needed since the inline functions use memcpy().
2967(Addresses Sourceforge Bug #1251062)
2968
2969Use BUILD_CFLAGS and BUILD_LDFLAGS instead of CFLAGS and LDFLAGS in
2970the build system when building files in the util directory which are
2971needed during the build process. This avoids potential problems when
2972cross-compiling and some of the options specified in CFLAGS or LDFLAGS
2973are not recognized as valid by the host compiler. (Addresses
2974Sourceforge Bug #1261547)
2975
2976Clean up the blkid library by making the superblock and generic i/o
2977functions to be more generic. Clean up interface to the probe
2978function, and fix memory leak. Finallly, remove an unneeded reference
2979to probe.h in the lib/blkid/resolve.c
2980
Theodore Ts'o3285a9c2005-12-10 23:05:30 -05002981Add an ext2fs_read_bb_FILE regression test to confirm proper detection
2982of invalid block #'s.
2983
Theodore Ts'o34a26112006-03-29 20:40:23 -05002984The x86 asm constraints for ext2fs_{set/clear}_bit have been fixed to
2985indicate that the the function read/writes the memory location.
2986
Theodore Ts'o3285a9c2005-12-10 23:05:30 -05002987Fix various gcc -Wall complaints.
2988
2989Add a dependency to make sure that the subdirectories are created
2990before creating all of the object files, in order to address parallel
2991build problem in the library Makefiles. (Addresses Sourceforge Bug:
2992#1261553)
2993
2994Add $(LDFLAGS) to the command line argument when generating an ELF or
2995Solaris shared library, to allow cross-compile and other builds that
2996might need to specify -L paths to needed libraries. (Addresses
2997Sourceforge Bug #1261549)
2998
Theodore Ts'obae55642006-05-14 17:31:48 -04002999Add a new feature, EXT2_FEATURE_COMPAT_LAZY_BG, which is initially
3000intended for testing purposes. It allows an ext2/ext3 developer to
3001create very large filesystems using sparse files where most of the
3002block groups are not initialized and so do not require much disk
3003space. Eventually it could be used as a way of speeding up mke2fs and
3004e2fsck for large filesystem, but that would be best done by adding an
3005RO_COMPAT extension to the filesystem to allow the inode table to be
3006lazily initialized on a per-block basis, instead of being entirely
3007initialized or entirely unused on a per-blockgroup basis.
3008
Theodore Ts'o6c094752006-05-29 11:47:25 -04003009Fix backwards compatibility so e2fsprogs will better compile on Linux
30102.0.35 systems.
3011
3012Make test scripts more robust against locale-related environment variables
3013
3014Fix type warning problem with sizeof() in ext2fs_open2().
3015
3016Fix type warning problem with time_t in debugfs.
3017
Theodore Ts'of2b74cd2005-08-22 01:20:23 -04003018
Theodore Ts'ofea95ff2005-07-01 17:31:55 -05003019E2fsprogs 1.38 (June 30, 2005)
Theodore Ts'o1f965c82005-06-30 20:06:45 -04003020==============================
3021
3022Fix blkid's test programs (built with "make check") compile correctly
3023even without "configure --enable-blkid-debug".
3024
3025Fix ia64 core dump bug caused by e2fsprogs running afoul of C99 strict
3026type aliasing rules on newer gcc compilers. (Addresses Red Hat
3027Bugzilla ##161183.)
3028
3029Fix com_err library to make it more compatible with recent changes
3030made to the com_err library in MIT Kerberos V5 version 1.4.
3031(Addresses Sourcefroge Bug #1150146)
3032
3033General cleanup of messages printed by e2fsprogs programs for grammar,
3034consistency, and to make life easier for translators. Fixed a few
3035strings containing English that had not been marked as needing
3036translations. Removed strings that do not need to be translated, to
3037make life easier for translators.
3038
3039Mke2fs and badblocks will take advantage of a feature in Linux 2.6 to
3040test to see if a device appears to be in use instead of just relying
3041on /proc/mounts and /etc/mtab. (Addresses Debian Bug #308594).
3042
3043Fix portability problem in the filefrag program affecting platforms
3044where the size of an integer is smaller than the size of a long.
3045(Addresses Debian Bug #309655)
3046
3047Mke2fs will now use a larger journal by default for filesystems
3048greater than 4GB. (128 MB instead of 32MB).
3049
3050Mke2fs will refuse to create filesystems greater than 2**31-1 blocks,
3051unless forced. This is to avoid signed vs. unsigned kernel bugs in
3052block numbers that still need to be fixed.
3053
3054The blkid program has a new option which will more efficiently search
3055for device when it is known (or expected) that only one matching
3056device will be found in the system, such as when doing a lookup by
3057UUID.
3058
3059Debian's e2fsprogs-specific initrd fragment will avoid including
3060unnecessary libraries into the initrd ramdisk by unsetting LD_PRELOAD
3061and LD_LIBRARY_PATH, and filtering out libraries found in
3062/etc/ld.so.preload. (Addresses Debian Bug: #304003)
3063
3064Fixed a potential portability issue in the blkid programs for
3065architectures where the char type is unsigned. (Addresses Sourceforge
3066Bug: #1180585)
3067
3068Fix a bug in filefrag so that it doesn't falsely count an extra
3069discontinuity when the first block found is an indirect block.
3070(Addresses Debian Bug #307607).
3071
3072Fix blkid's recognition of cramfs filesystems, and enhance it to be
3073able to handle cramfs labels.
3074
3075Fix debugfs's stat command to not core dump when a filesystem is not
3076open.
3077
3078Fix e2fsck's handling of error conditions caused by the resize inode
3079claiming blocks that are also used by other inodes, a filesystem
3080corruption which was commonly caused by a bug in Fedora Core 3's
3081resize2fs program.
3082
3083Fixed bug in filefrag which caused it to fail on non-ext2/3
3084filesystems. (Addresses Debian Bug: #303509)
3085
3086If the superblock last mount time indicates that the system clock may
3087not be accurate, then e2fsck will omit checking inodes' deletion time
3088field for indications of a potential corrupted orphaned inode list.
3089(Previously e2fsck only ommited these LOW_DTIME checks when the
3090superblock's last write time looked insane.)
3091
3092Fixed a IA64 core dump bug in the e2p library which affected dumpe2fs.
3093(Addresses Debian bug #302200)
3094
3095Make the blkid library more paranoid about being run from setgid
3096programs, and to use __secure_getenv() from libc if it is available.
3097
3098Fixed spelling mistakes, typos, and otherwise clarified man pages.
3099(Addresses Debian Bugs: #304591, #304592, #304594, #304597, #304593
3100and Sourceforge Bug: #1189803)
3101
3102Updated and fixed translations.
3103
3104Fixed various Debian packaging issues --- see debian/changelog for
3105details.
3106
3107Programmer's notes:
3108-------------------
3109
3110Ext2fs_set_bit(), ext2fs_clear_bit(), and ext2fs_test_bit( have been
3111changed to take an unsigned int for the bit number. Negative bit
3112numbers were never allowed (and didn't make any sense), so this should
3113be a safe change. This is needed to allow safe use of block numbers
3114greater than or equal to 2**31.
3115
3116The compile_et program will avoid recreating generated foo_err.c and
3117foo_err.h files if no changes are necessary. The compile_et program
3118will also atomically replace these files to avoid a potential parallel
3119build race problem on SMP systems. (Addresses Sourceforge Bug:
3120#1157933)
3121
3122Added a new function to the blkid library, blkid_probe_all_new(),
3123which only probes newly added disk devices, and change
3124blkid_find_dev_with_tag() to use this function so that when a
3125requested tag is not found, devices that were previously not checked
3126are searched before searching all devices in the system.
3127
3128Added new functions to the blkid library, blkid_dev_set_search() and
3129blkid_dev_has_tag().
3130
3131E2fsck's problem strings can now use @m and @n as abbrevations for
3132"multiply-claimed" and "invalid", respectively.
3133
3134The e2fsprog.pot file now has an explanation of how the @-expansion
3135and %-expansion works, and strings in e2fsck/problem.c which contain @
3136characters now have comments in e2fsprogs.pot with the @-expansion to
3137make life easier for translators.
3138
3139Fixed missing return values in the ext2fs library which could cause it
3140to return random garbage in certain error conditions.
3141
3142Allow the current time to be overriden via the E2FSCK_TIME environment
3143variable for use in regression tests.
3144
3145The test scrpit driver program now exits with a non-zero status if
3146there any of its test that it ran failed.
3147
3148Fixed problems with parabuilds on SMP systems. (Addresses Sourceforge
3149Bug: #1157933)
3150
3151Fixed "make check" so that it compiles correctly even when e2fsprogs'
3152header files have not be installed in the system include directories.
3153(Addresses Sourceforge Bug: #1180572)
3154
3155Fixed gcc -Wall nits.
3156
3157
Theodore Ts'ofd4b28e2005-03-21 22:37:03 -05003158E2fsprogs 1.37 (March 21, 2005)
3159===============================
3160
3161Add support for checking the validity of Extended Attributes stored in
3162inodes to e2fsck.
3163
3164Add support for dumping the contents of large inodes to debugfs,
3165including the extended attributes stored in inodes.
3166
3167Fix mke2fs, e2fsck, debugfs, and the ext2fs_mkdir function so that
3168when we create a new inode we make sure that the extra information in
3169the inode (any extra fields in a large inode and any ea-in-inode
3170information) is initialized correctly. This can take place when
3171mke2fs creates the root and lost+found directory, when e2fsck creates
3172a new root inode or a new lost+found directory, and when the user uses
3173the debugfs write, mknod, or mkdir commands. Otherwise, the newly
3174create inode could inherit garbage (or old EA information) from a
3175previously deleted inode.
3176
3177Fixed a bug in e2fsck so it would notice if a file with an extended
3178attribute block was exactly 2**32 blocks, such that i_blocks wrapped
3179to zero.
3180
3181Added support to filefrag to detect files which are using the new
3182experimental file extents format, and use the non-ext2 algorithm in
3183that case. Fixed a bug to avoid reporting a false discontinuity if
3184there is one or more unallocated blocks at the beginning of a file.
3185
3186Duplicated a check for noticing whether or not the number of blocks
3187(given a certain blocksize) is greater than 2**32 when the
3188BLKGETSIZE64 ioctl is not available to ext2fs_get_device_size(). This
3189allows mke2fs to automatically use a larger blocksize when creating a
3190filesystem on a very large device when run on systems that do not
3191support BLKGETSIZE64.
3192
3193Fix the I18N build which was broken in e2fsprogs 1.36 because the
3194build system had been switched to treat the .gmo files as shipped
3195files (for backwards compatibility with systems that have older GNU
3196I18N tools installed), but the gen_tarball.in script was still
3197removing the .gmo files from the official source distribution.
3198
3199Fixed various Debian packaging issues --- see debian/changelog for
3200details. (Addresses Debian Bugs ##296769, #299341)
3201
3202Programmer's notes:
3203-------------------
3204
3205Added new functions to the e2p library which convert between a string
3206and os_type: e2p_os2string() and e2p_string2os(), and used them to
3207make the generated binaries more compact.
3208
3209Fixed a compile-time error on Darwin systems.
3210
3211Cleaned up the lib/ext2fs Makefile slightly.
3212
3213
Theodore Ts'o3eee5e92005-02-05 18:26:03 -05003214E2fsprogs 1.36 (February 4, 2005)
3215=================================
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003216
3217All of the patches that were applied to Fedore Core 3's
3218e2fsprogs-1.35-11.2 have been integrated, although sometimes with a
3219lot of bug fixes first. Users of Fedora Core 3 are strongly
3220encouraged to upgrade to e2fsprogs 1.36 as soon as possible.
3221
3222Add support for filesystem with the online resizing via resize inode
3223feature. Fixed numerous bugs from the Fedora patches. The Fedora
3224patches also didn't bother to do any consistency checking on the
3225resize inode, or add any tests to the regression test suite. The "-R
3226resize=4g" option to mke2fs was a no-op in the Fedora patches, despite
3227being listed in mke2fs's usage message. All of these shortcomings
3228have been corrected.
3229
3230E2fsck can also also fix filesystems trashed by Fedora's resize2fs
3231program. In order to do this, the user must run the commands:
3232
Theodore Ts'od0a3b462005-05-05 22:57:44 -04003233 debugfs -w /dev/hdXXX -R "features ^resize_inode"
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003234 e2fsck -f /dev/hdXXX
3235
3236Optionally, the ext2prepare command can be used to re-enable online
3237resizing after the filesystem has been fixed.
3238
3239The fsck program will now accept an optional filedescriptor argument
3240to the -C option. (The Fedora version of this patch would sometimes
3241cause fsck to ignore a parameter on fsck's command line in some rare
3242cases, sigh.)
3243
Theodore Ts'odc256972005-01-26 13:20:12 -05003244Make sure e2fsprogs doesn't write garbage into the reserved portion of
3245large inodes.
3246
3247Make sure resize2fs releases the blocks belonging to the old inode
3248table blocks when moving the inode table. (Addresses Debian Bug:
3249#290894)
3250
3251Skip the r_resize_inode test if resize2fs is not compiled (due to
3252configure --disable-resizer)
3253
3254E2fsck now checks the summary filesystem accounting information, and
3255if any of the information is obviously wrong, it will force a full
3256filesystem check. (Addresses Debian Bug #291571)
3257
3258Fix e2fsck to not complain when the resize_inode feature is enabled,
3259s_reserved_gdt_blocks is zero, and there is no DIND block allocated in
3260the resize inode.
3261
Theodore Ts'o8ceb55f2005-01-28 12:33:01 -05003262Fix e2fsck to note delete symlinks that contain an extended attribute
3263after the ext_attr feature flag has been cleared. (Addresses Red Hat
3264Bugzilla #146284).
3265
Theodore Ts'odc256972005-01-26 13:20:12 -05003266Add new utility program, copy_sparse.c, which is very useful
3267for dealing with large sparse files (such as e2image files).
3268
3269Add support for jnl_blocks[] for debugfs's set_super_value.
3270
3271Fix filefrag so that it works correctly with sparse files.
3272
Theodore Ts'o3eee5e92005-02-05 18:26:03 -05003273Filefrag -v will print first and last blocks.
3274
Theodore Ts'odc256972005-01-26 13:20:12 -05003275Add interpretation of OS Creator values for FreeBSD and Lites in mke2fs
3276and dumpe2fs.
3277
Theodore Ts'o8ceb55f2005-01-28 12:33:01 -05003278Add mke2fs support so that it can support filesystems larger than 4TB
3279automatically, by retrying with a 4k blocksize if the device size is
3280too big to be expressed using a 1k blocksize. (Addresses Sourceforge
3281bug #1106631)
3282
Theodore Ts'odc256972005-01-26 13:20:12 -05003283Change blkid to test for NTFS first because Windows sometimes doesn't
3284clear enough of the parition to confuse the probing routines into
3285thinking the old filesystem type is still valid. (Addresses Debian
3286Bug #291990)
3287
Theodore Ts'o66fa0de2005-01-11 14:39:55 -05003288Add support for swap partition label and uuid's in the blkid library.
3289
Theodore Ts'odc256972005-01-26 13:20:12 -05003290Add support to the blkid library to recognize Oracle ASM volumes.
3291
3292Make blkid -t display all devices that match the specified criteria,
Theodore Ts'o8ceb55f2005-01-28 12:33:01 -05003293not just the first one, and work more consistently when the blkid
3294cache file is not available or set to /dev/null. (Addresses Debian
3295Bug #290530 and #292425)
Theodore Ts'odc256972005-01-26 13:20:12 -05003296
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003297Badblocks will now correctly display block numbers greater than
3298999,999,999 in its progress display.
3299
3300The tune2fs program will not allow the user from setting a ridiculous
3301number of reserved blocks which would cause e2fsck to assume the
3302superblock was corrupt. E2fsck's standards for what is a ridiculous
3303number of reserved block has also been relaxed to 50% of the blocks in
3304the filesystem.
3305
3306The blkid library will return vfat in preference to msdos, and ext3 in
3307preference to ext2 (if the journalling flag is set) so that mount will
3308do the right thing. (Addresses Debian bug #287455)
3309
3310Mke2fs will now use the -E option for extended options; the old -R
3311(raid options) option is still accepted for backwards compatibility.
3312Fix a double-free problem in resize2fs. (Red Hat Bugzilla #132707)
3313
3314Mke2fs will now accept a size in megabytes, gigabytes, and other units
3315(via "32m" or "4g" on the command line) if the user finds this more
3316convenient than specifying a block count.
3317
3318Fix an obscure, hard-to find bug in "e2fsck -S" caused by an inode
3319cache conherency problem.
3320
3321Debugfs now supports a new command, set_inode_field, which allows a
3322user to manually set a specific inode field more conveniently, as well
3323as set entries in the indirect block map.
3324
3325Debugfs's set_super_value command has been enhanced so that the user
3326can set most superblock fields, including the date/time fields and
3327some of the more newsly added superblock fields.
3328
3329E2fsprogs programs now accept an offset to be passed to the file
3330specifiers, via the syntax: "/tmp/test.img?offset=1024".
3331
3332E2fsprogs programs will now accept blocksizes up to 65536; kernel
3333support on the x86 doesn't exist for now, but it can be useful on
Theodore Ts'o8ceb55f2005-01-28 12:33:01 -05003334other architectures with page sizes greater than 4k. There are 2.6
3335kernel patches out there which enable this, but they are of this
3336writing still experimental.
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003337
Theodore Ts'o4ee558f2005-01-19 02:20:04 -05003338The e2image command now takes the -s option which will scramble
3339directory entries for raw image files.
3340
3341Fix a file descriptor leak in the filefrag program.
3342
3343Make sure e2fsck doesn't crash when /proc/acpi/ac_adapter is not
3344present.
3345
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003346Fix bug in debugfs where kill_file would lead to errors when deleting
3347devices and symlinks. (Sourceforge Bugs #954741 and #957244)
3348
3349Fix bug in the blkid library when detecting the ocfs1 filesystem
3350
3351Remove obsolete EVMS 1.x and a.out DLL support.
3352
3353E2fsck will attempt to recover from a journal containing illegal blocks.
Theodore Ts'o48301122004-09-19 08:23:41 -04003354
3355Fixed two potential ordering constraint problems in e2fsck which might
3356cause the filesystem to be corrupted if e2fsck is interrupted during a
3357(extremely narrow) race window. Thanks to Junfeng Yang from the
3358Stanford Metacompilation group for pointing this out.
3359
3360Fixed bug in e2fsck where it would not accurately detect whether or
3361not the system is running on adaptor if the ACPI device representing
3362the AC adapter didn't correspond to the what was used on IBM
3363Thinkpads.
3364
3365Change e2fsck to accept directories greater than 32MB.
3366
3367Fix e2fsck so that a checkinterval of zero disables a time-based check
3368of the filesystem.
3369
3370Debugfs will check the DEBUGFS_PAGER enviroment variable in preference
3371to the PAGER environment variable. (Addresses Debian Bug #239547)
3372
3373Tune2fs will not mark rewrite the superblock if the feature bitmasks
3374are not modified.
3375
3376The debugfs program will set the filetype information when creating a
3377link.
3378
3379Add debugfs -d option to use a separate source of data blocks when
3380reading from an e2image file.
3381
3382Add e2image -I option which allows the e2image metadata to be
3383installed into a filesystem.
3384
3385Fixed bug in the badblocks program which caused "done" to always
3386appear in english even when a translation was available. (Addresses
3387Debian Bug #252836)
3388
3389The blkid program has a new option -o which controls the output format
3390of the blkid program; this is makes blkid more convenient to use in
3391shell scripts.
3392
3393Fix a minor bug in uuid library, which was not using the full 14 bits
3394of clock sequence when generating UUID's.
3395
3396Fix a Y8.8888K problem in the uuid library.
3397
3398Logsave now creates a new session id for itself to avoid getting
3399killed by init whan transitioning between init levels.
3400
3401Change the licensing of the UUID library to be the 3-clause BSD-style
3402license; this allows Apple to use the uuid library in Darwin.
3403
3404Add ocfs and ocfs2 probe support into the blkid library.
3405
3406Fix a memory and file descriptor leak in the blkid library.
3407
3408The blkid library will revalidate the device if the system time is
3409earlier than last verification time of the device, since that
3410indicates that the system time is probably nottrustworthy.
3411
3412The blkid library will override the default location of the blkid.tab
3413file by the BLKID_FILE environment variable, if it is available.
3414
3415Change the getsize functions to use the BLKGETSIZE64 ioctl on Linux 2.6.
3416
3417Add various portability fixes for lame new versions of glibc, Darwin
3418and GNU/KFreeBSD, as well as removing XSI:ism's. (Addresses Debian
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003419Bugs #239934, #264630, #269044, #255589, #289133)
3420
3421Add support for Windows 9x/NT under Cygwin.
Theodore Ts'o48301122004-09-19 08:23:41 -04003422
3423Updated and clarified various man pages. (Addresses Debian Bugs #236383,
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003424 #241940, #238741, #242995, #256669, #268148, #256760, #273679)
Theodore Ts'o48301122004-09-19 08:23:41 -04003425
3426Updated and fixed translations. (Addresses Debian bugs #244105, #262836)
3427
3428Update the rpm spec files so that it works better with Fedora core 2
3429and RH9.
3430
3431Fixed various Debian packaging issues (see debian/changelog). In
3432particular, fixed the Debian initrd scripts. (#241183, #248050,
3433#253595, #247775)
3434
3435
3436Programmer's notes:
3437-------------------
3438
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003439Fixed various gcc -Wall warnings.
Theodore Ts'o48301122004-09-19 08:23:41 -04003440
3441The uuid library now has new functions uuid_unparse_upper() and
3442uuid_unparse_lower() which forces the case of the hex digits to be
3443upper case, or lower case.
3444
3445The build process has been speeded up by enhancing the subst program
3446to update the modtime on the generated files even when the generated
3447file hasn't changed.
3448
3449The uuid library now uses C99 stdint.h types instead of custom types.
3450
3451Updated config.guess and config.sub with newer versions from the FSF.
3452
3453Removed out of date .cvsignore files from the source distribution.
3454
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003455The ext2fs_unlink() function will return an error if both the name and
3456inode number are unspecified, to avoid doing something surprising
3457(such as unconditionally deleting the first directory entry).
3458Directory entries are now deleted by coalescing them with the previous
3459directory entry if possible, to avoid directory fragmentation. This
3460is not an issue with the e2fsprogs suite, but may be a problem for
3461some of the users of libext2fs, such as e2tools.
3462
3463Add support for version numbers of the form "1.36-rc1".
3464
Theodore Ts'o48301122004-09-19 08:23:41 -04003465Fix build of mke2fs.static.
3466
Theodore Ts'odc256972005-01-26 13:20:12 -05003467Add basic ext2fs library support for large (EA in inode) inodes.
3468
Theodore Ts'o48301122004-09-19 08:23:41 -04003469The test_io mechanism can now abort after n reads or writes to a
3470particular block. The block is specified by TEST_IO_BLOCK environment
3471variable, and the read/write count by the TEST_IO_READ_ABORT and
3472TEST_IO_WRITE_ABORT environment variables. The block data is now only
3473dumped if the 0x10 bit is set in TEST_IO_FLAGS.
3474
3475UUID_DEFINE() in the uuid library now creates a static variable, with
3476__attribute__ ((unused)) if we are using GCC, so that UUID_DEFINE can
3477be used in header files.
3478
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003479Add support for the install-strip and install-shlibs-strip targets, as
3480suggested by the GNU coding guielines. "make install" no longer
3481strips the binaries which are installed.
3482
Theodore Ts'o3eee5e92005-02-05 18:26:03 -05003483Remove support for the --enable-old-bitops configure option which was
3484only for very old sparc systems.
3485
3486Remove support for --enable-clear-htree; this was only needed during
3487the early development of the htree patch.
3488
Theodore Ts'o2b0dc0a2005-01-09 15:53:09 -05003489Use Linux-kernel-style makefile output so it is easier to see compiler
3490warnings.
3491
3492Update gettext files to version 0.14.1.
3493
3494Update to use autoconf 2.5x.
3495
3496Improved support for compiling e2fsprogs under dietlibc.
3497
Theodore Ts'o4ee558f2005-01-19 02:20:04 -05003498Make e2fsprogs portable to Solaris and FreeBSD systems.
3499
Theodore Ts'o8ceb55f2005-01-28 12:33:01 -05003500Add blkid_verify(), blkid_get_library_version(), and
3501blkid_parse_version_string() functions to the blkid library.
Theodore Ts'odc256972005-01-26 13:20:12 -05003502
3503Add pkg-config files for e2fsprogs's libraries.
3504
3505Fix "make uninstall" to so that it removes everything that is installed.
3506
Theodore Ts'o3eee5e92005-02-05 18:26:03 -05003507Add a configure --enable-maintainer-mode option which enables the
3508makefile rules to rebuild the configure script from configure.in, and
3509to reubuild the .gmo files in po directory.
3510
3511Drop the sparc assembly bitwise operations; it's less efficient
3512than the GCC 3.4 compile code and triggers compiler warnings on
3513sparc64. Thanks to Matthias Andree for his analysis and suggestions.
3514(Addresses Debian Bug #232326)
3515
Theodore Ts'o48301122004-09-19 08:23:41 -04003516
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003517E2fsprogs 1.35 (February 28, 2004)
3518==================================
3519
Theodore Ts'o48301122004-09-19 08:23:41 -04003520E2fsck has a new -k option, which in conjunction with the -c options,
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003521preserves the existing badblocks list.
3522
Theodore Ts'o48301122004-09-19 08:23:41 -04003523Cleaned up e2fsck's preen-mode messages during the passes 1b, 1c, and 1d.
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003524
3525E2fsprogs will now deal correctly with symlinks that contain
3526extended attribute information, which can be created using SE Linux.
3527(Addresses Debian Bug #232328)
3528
3529Remove a double longjump into an invalid stack frame bug in e2fsck.
3530(This was during an abort sequence, which normally worked on Linux and
3531caused a core dump on other operating systems.)
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003532
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003533Fix NLS bug in e2fsck, by avoiding trying to expand an empty string
3534(the NLS library will replace "" with the .po header information).
3535
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003536Fix a bug in mke2fs which caused -T largefile or -T largefile4 to core
3537dump due to a division by zero error. (Addresses Debian bug #207082)
3538
Theodore Ts'o151a7162003-12-26 14:04:33 -05003539Fixed a bug in e2fsck which caused it to incorrectly fix a filesystem
3540when reconnecting a directory requires creating a lost+found
3541directory. (Addresses Debian bug #219640).
3542
3543Fixed a bug where e2fsck would bomb out if a journal needed to be
3544replayed when using an alternate superblock.
3545
Theodore Ts'o48301122004-09-19 08:23:41 -04003546E2fsck will give an extra grace period before actually forcing a check
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003547if the laptop is running on battery. The next time fsck runs while
3548the system is on the AC mains, or after the grace period is exceeded,
3549the filesystem will be checked. (Addresses Debian bug #205177)
3550
3551E2fsck will inform the user when there are 5 or fewer mounts before a
3552filesystem check will be forced. (Addresses Debian bug #157194)
3553
3554Fix e2fsck's handling of corrupted indirect blocks in the bad block.
3555We now correctly handle the case where there is an overlap between a
3556block group descriptor or a superblock and a bad block indirect block.
3557In the case where the indirect block is corrupted, we now suggest
3558"e2fsck -c".
3559
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003560Fix byte swap bugs in e2fsck that caused the journal backup location
3561in the superblock and symlinks created by SE Linux to be cleared
3562by e2fsck on big-endian machines. (Addresses Debian bug #228723)
3563
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003564E2fsck -c now replaces the current list of bad blocks with the ones
3565found by badblocks.
3566
3567Fix bugs in e2fsck and tune2fs which could cause a core dump if a
3568non-existent LABEL or UUID specifier is to e2fsck or tune2fs.
3569
3570Fix a potential bug in e2fsck which could cause it to core dump when
3571trying to print the location of the backup superblock.
3572
3573Protect against a potential core dump in e2fsck when printing a
3574message about backup superblocks.
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003575
Theodore Ts'o6826bde2003-08-21 02:14:44 -04003576Add support for backing up the journal inode location in the
3577superblock. E2fsck will automatically save the journal information in
3578the superblock if it is not there already, and will use it if the
3579journal inode appears to be corrupted. ext2fs_add_journal_inode()
3580will also save the backup information, so that new filesystems created
3581by mke2fs and filesystems that have journals added via tune2fs will
3582also have journal location written to the superblock as well.
3583Debugfs's logdump command has been enhanced so that it can use the
3584journal information in the superblock.
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003585
3586E2fsck will now update all superblocks when moving the journal inode.
Theodore Ts'o6826bde2003-08-21 02:14:44 -04003587
3588Shrink the size of the e2fsck executable by moving some initialized
3589variables to the BSS segment.
3590
3591E2fsck will avoid printing the ^A and ^B characters which bracket the
3592progress bar when stdout and stdin are a tty device instead of a pipe
3593to another program. (Addresses Debian bug #204137)
3594
Theodore Ts'o151a7162003-12-26 14:04:33 -05003595Debugfs's mkdir command will automatically expand the directory if
3596necessary. (Addresses Debian Bug: #217892)
3597
3598Fixed a bug in debugfs so that copying a file from /dev/null uses the
3599correct mode bits. (Addresses Debian Bug: #217456)
3600
3601If the environment variables DEBUFS_PAGER and PAGER are not set,
3602debugfs now searches for the appropriate pager to use, beginning with
Theodore Ts'o2b5ddd72004-01-24 18:54:41 -05003603/usr/bin/pager, and then falling back to 'more' and 'less'.
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003604(Addresses Debian bug #221977)
3605
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003606Debugfs will now support 2.6 device numbers where the major or minor
3607number may be larger than 255. (Addresses Sourceforge bug #865289)
3608
Theodore Ts'o48301122004-09-19 08:23:41 -04003609Fix debugging printf in resize2fs. (Addresses Debian Bug #271605)
3610
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003611Chattr now stops processing options when it sees '--'. (Addresses
3612Debian bug #225188)
Theodore Ts'o151a7162003-12-26 14:04:33 -05003613
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003614Fix regression tests so they work correctly when e2fsprogs is compiled
3615with configure --disable-htree.
3616
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003617Fix bug in uuid library when there is no network card and the library
3618is generating a time-based uuid. The random MAC address was not
3619correctly generated to be a multicast address.
3620
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003621Add compile_et extensions from Heimdall that were missed the first time
Theodore Ts'o48301122004-09-19 08:23:41 -04003622around.
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003623
3624Fix bug in badblocks when using O_DIRECT; we need to make sure that
3625we're reading from an offset which is page aligned. For read-only and
3626read-write tests, we try to recover after an error so that we can
3627continue reading on page-aligned boundaries. (Addresses Debian Bug
3628#203713)
3629
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003630Badblocks now checks 64 blocks at a time instead of 16. (Addresses
3631Debian bug #232240)
3632
Theodore Ts'o151a7162003-12-26 14:04:33 -05003633Updated and clarified various man pages. (Addresses Debian Bug
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003634#206845, #222606, #214920, #232406)
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003635
Theodore Ts'o151a7162003-12-26 14:04:33 -05003636Updated and fixed translations. (Addresses Debian bugs #200086, #214633)
Theodore Ts'o6826bde2003-08-21 02:14:44 -04003637
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003638Fixed various Debian packaging issues (see debian/changelog).
3639
3640Programmer's notes:
3641-------------------
3642
Theodore Ts'ob70b1162004-02-28 10:52:35 -05003643Fixed a build problem so that e2fsprogs would compile with the
3644--enable-profile option to configure selected. (Addresses Sourceforge
3645bug #811408)
3646
3647Fixed C++ problems with the ext2fs.h header. (Addresses Red Hat
3648Bugzilla Bug #112448)
3649
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003650Centralize code which calculates the location of the superblock
3651and block group descriptors so that it is in a single library routine.
3652
Theodore Ts'o6826bde2003-08-21 02:14:44 -04003653Added two new functions, ext2fs_file_open2() and
3654ext2fs_inode_io_intern2() which take a pointer to an inode structure.
3655
3656Fix compile_et to output the correct prototype for
3657initialize_xxx_err_table_r() in the header file. (Addresses Debian
3658bug #204332)
3659
3660In the lib/et makefile, make sure com_err.info is deleted on "make clean".
3661
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003662Fix 64-bit warnings in e2fsprogs pass1b by using inttypes.h if
3663present. This is for when we try stuffing an int into void * pointer.
3664
3665Fix type-punning which can cause gcc 3.x to miscompile code by getting
3666confused about pointer aliasing. ext2fs_getmem(), ext2fs_free_mem(),
3667and ext2fs_resize_mem() all now take a 'void *' instead of a 'void
3668**'. The EVMS code uses an ugly union approach since we don't want to
3669modify the EVMS interfaces.
3670
3671Make sure all Makefiles use $(MAKE) rather than hardcoded "make", to
3672aid build process on systems can use invoke GNU make as "gmake".
3673
Theodore Ts'oc4c30b22003-12-07 02:16:43 -05003674Added regression testing for mke2fs.
3675
3676Fixed gcc -Wall nitpicks.
3677
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003678Fixed various compiler warnings.
3679
3680Add portability fixes for FreeBSD and for using fsctl under Darwin to
3681support ext2 ioctl's.
3682
Theodore Ts'o858dd7b2003-08-02 20:48:35 -04003683
Theodore Ts'o9c7ec172003-07-26 01:03:34 -04003684E2fsprogs 1.34 (July 25, 2003)
3685===============================
3686
3687Fixed a bug introduced in E2fsprogs 1.30 which caused fsck to spin in
3688a tight loop while waiting for a child fsck to exit in some cases.
3689This burns CPU times which slows down the low-level filesystem check.
3690
3691Added code to mke2fs to assure that the default block size for a
3692filesystem is at least as big as the sector size of the device, if it
3693can be determined.
3694
3695Changed mke2fs and resize2fs to round the default size of a filesystem
3696to be an even multiple of the VM pagesize in order to avoid a Linux
3697kernel bug introduced when the storage of the buffer cache was moved
3698into the page cache.
3699
3700Mke2fs will warn the user when creating a filesystem with journaling
3701and a blocksize greater than 4096. (Addresses Debian bug #193773)
3702
3703Fixed a bug in resize2fs which caused it to fail on filesystems with a
3704non-empty bad block list. Resize2fs now discards any blocks on the
3705badblock list which are no longer part of the filesystem as the result
3706of a filesystem shrink. (Note: this means that shrinking and then
3707enlarging a filesystem is no longer a reversible operation;
3708information about bad blocks in the part of the filesystem which is to
3709be chopped off will be lost.)
3710
3711Changed resize2fs so the user can use prefixes to specify the units of
3712the new filesystem size (sectors, kilobytes, megabytes, or gigabytes),
3713and to make the error and informational messages explicitly display
3714the blocksize used by the filesystem, in order to avoid confusion.
3715(Addresses Debian bug: #189814)
3716
3717Added a new debugfs command, dump_unused, which dumps the contents of
3718all unused blocks to stdout. (Useful as an emergency try-to-find
3719deleted data command.)
3720
3721Added a new debugfs command, imap, which prints the location of a
3722specified inode in the inode table.
3723
3724Fixed a bug in the badblocks program which caused it to use one bit of
3725randomness in its non-destructive read/write test, instead of using a
3726full 8 bits of randomness.
3727
3728Added a new option (-t) to badblocks, which allows the user to control
3729the test pattern(s) used when checking a disk.
3730
3731The blkid probe function now more correctly detects UDF filesystems.
3732
3733Fixed a bug in the blkid library which caused it to not update its
3734cache if a filesystem changes from having a label to not having a
3735label.
3736
3737Fixed a bug in the blkid library wihch could avoid an infinite loop
3738in blkid_find_dev_with_tag() if /proc is not mounted and there the
3739/etc/blkid.tab file has not yet been created.
3740
3741Fixed the badblocks program so that the destructive read/write test
3742honors the -c option, and to use O_DIRECT when possible to avoid
3743thrashing the system block buffer cache.
3744
3745Fixed various NLS issues.
Theodore Ts'oc8a40402005-06-05 16:42:20 -04003746 - Added Czech and Swedish translations
Theodore Ts'o9c7ec172003-07-26 01:03:34 -04003747 - Removed testing NYC translation
3748 - Fixed NLS support for message abbrevations in e2fsck
3749 - Remove de-utf.po, since we shouldn't have two versions using different
3750 charset encodings.
3751 - Used ngettext() (abbreivated with the macro P_(str1, str2, n)) to
3752 simplify the statistics reporting in e2fsck.
3753
3754Changed configure.in so that its defaults for *BSD systems no longer
3755build an fsck wrapper, and not to install in /usr/local by default.
3756
3757Fixed some minor spelling errors/typo's in e2fsck and the configure
3758script.
3759
3760Fixed various Debian packaging issues (see debian/changelog).
3761
3762Updated and clarified man pages. (Addresses Debian Bug #195616)
3763
3764Programmer's notes:
3765-------------------
3766
3767Fix gcc -Wall nitpicks.
3768
3769Updated gettext implementation used by e2fsprogs to 0.11.5, and enable
3770NLS support by default. (Added partial workaround for gettext/Darwin
3771incompatibility problems.)
3772
3773Added full MIT KRB5 and Himdall compaibility support to the com_err
3774library and the compile_et program. (Addresses Debian bug #191900)
3775
3776Added the blkid_known_fstype() function to the blkid library, which
3777returns true if it is passed a filesystem type which is recognized by
3778the blkid probing functions.
3779
3780Improved the documentation for the blkid library.
3781
3782Added the ext2fs_get_device_sectsize() function the the ext2fs library, which
3783returns the hardware sector size of a device, if it is available.
3784
3785Added a dependency in the blkid library's .so file to the uuid
3786library, since the former uses the latter. (Addresses Debian bug
3787#194094)
3788
3789Added --with-diet-libc and --disable-evms to the configure script.
3790
3791Fixed a minor memory leak in the badblocks program.
3792
3793Fixed a portability problem in tune2fs --- not all systems have strptime().
3794
3795Fixed a portability problem in debugfs with the use of getopt() more
3796than once. Old-style BSD, new-style BSD, and Linux C libraries all do
3797things differently.
3798
3799Add support Windows support to ext2fs_get_device_size().
3800
3801Added (normally disabled) debugging code to the Unix I/O manager which
3802causes it to disable all userspace caching if the NO_IO_CACHE is
3803defined.
3804
3805Changed the test I/O manager so it can always be linked into e2fsck,
3806mke2fs, and tune2fs if enabled via --enable-test-io-debug to the
3807configure script. The test I/O manager will only print any debugging
3808information if the TEST_IO_FLAGS or TEST_IO_BLOCK environment
3809variables are set, which specifies which I/O operations are logged and
3810a block number to watch, respectively. The log messages are sent to
3811stderr by default, unless a filename is specified via the
3812TEST_IO_LOGFILE environment variable.
3813
3814
Theodore Ts'o71df0dc2003-04-21 16:17:09 -04003815E2fsprogs 1.33 (April 21, 2003)
Theodore Ts'o9c7ec172003-07-26 01:03:34 -04003816===============================
Theodore Ts'o508d7f32003-03-16 20:41:04 -05003817
Theodore Ts'oba142c12003-04-16 00:59:59 -04003818Added a new utility program, logsave, which captures the output of a
3819command in a log file, even if the containing directory hasn't been
3820mounted yet (in which case the it saves the output in memory until it
3821can write out the logfile). This is useful for capturing the
3822output of fsck during the boot sequence.
3823
3824Fixed some portability problems that were causing problems under
3825the Cygwin32 environment.
3826
3827Mke2fs now interprets a negative number to the -b option as a minimum
3828block size.
3829
3830Fixed a bug in mke2fs which was incorrectly checking the argument to
3831the -g option if the default block size was used. (Addresses Debian
3832bug #188319)
3833
3834Fsck now explicitly ignores tmpfs and devpts, and it will complain if
3835it can not find filesystem checkers for jfs, reseirfs, and xfs.
3836
3837E2fsck now updates the global free block and inode counters from the
3838block group specific counters quietly. This is needed for an
3839experimental patch which eliminates locking the entire filesystem when
3840allocating blocks or inodes; if the filesystem is not unmounted
3841cleanly, the global counts may not be accurate.
3842
3843Imported bug fixes to the EVMS plugin from the EVMS 2.0 tree. (EVMS
38442.0 is not yet supported; this only pulled in the bug fixes: fixed
3845possible hangs caused by bugs in calling waitpid, and not setting the
3846pipe to non-blocking mode; also fixed a file descriptor leak; made
3847sure all functions call log entry/exit functions.)
3848
3849Badblocks now flushes its output file as bad blocks are discovered.
3850
3851The uuid library is now more paranoid about assuming the correctness
3852of the /dev/random device; it mixes in a stream of bytes from
3853random/srandom, just in case.
3854
Theodore Ts'o39d38b02003-03-30 23:45:02 -05003855Update Debian files to reflect the fact that I am now the Debian
Theodore Ts'oba142c12003-04-16 00:59:59 -04003856maintainer of e2fsprogs. Other various Debian-specific packaging
3857cleanups.
Theodore Ts'o39d38b02003-03-30 23:45:02 -05003858
3859Move the source tarball generation functions from the top-level
3860makefile to the util/gen-tarball script.
3861
3862Updated the Turkish .po translation file.
3863
Theodore Ts'o1daf7582004-01-31 22:33:16 -05003864Added Heimdal and MIT krb5 extensions to the com_err library to make
Theodore Ts'o39d38b02003-03-30 23:45:02 -05003865it more compatible with com_err libraries from those distributions.
3866
3867Changed dumpe2fs to always display the superblock fields relating to
3868the journalling and/or directory indexing feature even if those
3869features are not enabled.
3870
Theodore Ts'o508d7f32003-03-16 20:41:04 -05003871Updated and clarify copyright statement vis-a-vis alpha releases of
3872e2fsprogs.
3873
3874The ss library will now try to dynamically link to the readline
3875library and use it if it is present in the system. This means that
Theodore Ts'oba142c12003-04-16 00:59:59 -04003876the debugfs program now has line editing and history features. The
3877SS_READLINE_PATH environment variable is used to find a readline or
3878readline-compatible library.
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003879
Theodore Ts'oe5dced72003-03-15 04:28:17 -05003880E2fsck now finds most duplicate filenames (all when rebuilding all
3881directories via the -D option) and offers to delete or rename
3882duplicate filenames/directory entries. (Addresses Debian Bug #176814).
3883
3884Fix bug in e2image. When writing out a raw image file, include data
3885blocks from symlinks that do not store the symlink within the inode.
3886
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003887Fix bug in resize2fs which incorrectly moved the block and inode
3888bitmaps for sparse superblock filesystems and incorrectly marked
3889blocks as in use. (Addresses Debian bug #174766)
3890
3891Added a new shared library, the blkid library, which efficiently
3892allows fsck, mke2fs, e2fsck, and tune2fs to be able to look up LABEL
3893and UUID filesystem specifiers without needing to search all of the
3894devices in the system. Instead, the device is looked up in a cache
3895file, and then verified to make sure the blkid cache is correct.
3896
3897Tune2fs and e2label will accept LABEL=xxx and UID=yyy specifiers for
3898the device name, using the blkid library. (Addresses Debian bugs
3899#166048, #179671)
3900
3901Fsck now supports backslash escapes in /etc/fstab so that \040 can be
3902used for spaces in device labels.
3903
3904Removed 32-bit limitations for debugfs's dump command.
3905
3906If the user specifies a large number of inodes, Mke2fs will
3907automatically adjust the number of blocks per group to find a valid
3908set of filesystem parameters.
3909
3910Add workaround to detect broken MD devices where when some of the
3911underlying devices are marked read-only, writes to the MD device are
3912silently dropped. E2fsck will detect if there is an attempt to run
3913the journal twice, and abort with an error if this is the case.
3914(Addresses IBM Bugzilla bug #1226)
3915
3916E2fsck will print an error if more than one of the -p/-a, -n or -y
3917options are specified.
3918
3919E2fsck will fix HTREE corruptions in preen mode, without stopping the
3920boot process. This is needed because the 2.4 ext2 filesystem
3921accidentally had the INDEX_FL backwards compatibility code removed.
3922
3923Mke2fs no longer creates filesystems with the dir_index flag set by
3924default; the user has to specifically request it.
3925
3926Update and clarified various man pages. (Addresses Debian bugs
Theodore Ts'oba142c12003-04-16 00:59:59 -04003927#173612, #175233, #175113, and #170497, #185945, #188318)
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003928
Theodore Ts'o508d7f32003-03-16 20:41:04 -05003929Created man page for the mk_cmds program (from the libss library).
3930
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003931Programmer's notes:
3932-------------------
3933
3934Fix various gcc -Wall nits.
3935
3936Fixed a lot of portability problems that caused e2fsprogs not to build
Theodore Ts'oe5dced72003-03-15 04:28:17 -05003937successfully under Solaris and Apple/Darwin.
3938
3939Fixed a Makefile dependency to allow building e2fsprogs using parallel
3940make jobs.
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003941
3942Changes to create a subset distribution which consists only of the
3943et, ss, uuid, and blkid libraries. The configure script and top-level
3944makefile were changed to support working with a subset distribution.
3945
Theodore Ts'oba142c12003-04-16 00:59:59 -04003946Removed EXT2_FEATURE_RO_COMPAT_BTREE_DIR mention of since it's not
3947actually used, and might people who are looking for
3948EXT2_FEATURE_COMPAT_DIR_INDEX, which is in use.
3949
Theodore Ts'o508d7f32003-03-16 20:41:04 -05003950Updated debian files to fix a number of Lintian warnings.
3951
3952Updated config.guess and config.sub with newer versions from the FSF.
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003953
Theodore Ts'o71df0dc2003-04-21 16:17:09 -04003954Removed unnecessary libraries from being linked into the fsck, lsattr,
3955chattr, and blkid executables.
3956
Theodore Ts'o38513012002-11-09 15:00:56 -05003957E2fsprogs 1.32 (Nomvember 9, 2002)
3958==================================
3959
3960Fixed a bug in the Unix I/O routines which caused needless writebacks
3961of clean blocks from the unix_io cache (they were erroneously marked
3962as being dirty, so they were getting written back to disk before
3963getting evicted from the disk cache). This was harmless, but it
3964significantly slowed down e2fsck.
3965
3966Made some other minor optimizations to the Unix I/O routines to save a
3967small amount of CPU time.
3968
3969Updated internationalization files.
3970
Theodore Ts'o3809bf12003-03-07 01:09:57 -05003971
Theodore Ts'oae65b292002-11-08 20:08:48 -05003972E2fsprogs 1.31 (Nomvember 8, 2002)
3973==================================
3974
3975Update EVMS ext2fsim plugin with EVMS 1.2. (We still support
3976compiling the fsim plugin with EVMS 1.0 and 1.1.) Add better error
3977handling for child process that die unexpectly. Add a hack to force
3978mkfs to create filesystems that won't cause problems with hardware
3979that has 2k or 4k minimum blocksize requirements. Read from child
3980processes in non-blocking mode, so that the GUI continues to update.
3981
3982Fix e2fsck so that it returns the appropriate exit code when the root
3983filesystem has been changed, so that system's rc scripts will be told that
3984the system needs to be rebooted.
3985
3986Fix a bug in ext2fs_flush/ext2fs_close; when the MASTER_SB_ONLY flag
3987was set, some of the descriptor blocks that should have been written
3988out were getting skipped.
3989
3990Changed e2fsck to force out changes to the backup copies of the
3991superblock and block group descriptors when important changes are made
3992to those data structures.
3993
3994Fix a bug where e2fsck could erroneously mark a filesystem as being
3995clean if a check of dirty filesystem is interrupted with a ^C. (Bug
3996introduced in e2fsprogs 1.28.)
3997
3998If journal debuging is enabled using --enable-jbd-debug, the debugging
3999level is now set via the E2FSCK_JBD_DEBUG environment variable.
4000
4001If byteswapping support is disabled using configure --disable-swapfs,
4002skip the tests which depend on byte-swapping, so that "make check"
4003won't bomb out.
4004
4005Lshattr will now display the indexed directory flag. Also, some of
4006the more esoteric compression flags are supressed unless compression
4007support has been enabled.
4008
4009Update man pages.
4010
4011
Theodore Ts'o5d823a42002-11-01 02:13:53 -05004012E2fsprogs 1.30 (October 31, 2002)
4013=================================
4014
4015When resizing a filesystem, and inodes need to moved, resize2fs will
4016update the inode's ctime field, and the mtime field of the containing
4017directories, so that incremental backups using dump/restore will work
4018correctly.
4019
4020In order to avoid spurious errors, e2fsck wil check the last
4021superblock write time to determine whether or not it can safely use
4022the LOW_DTIME checks to determine if there are inodes on the orphan
4023inode linked list that had somehow gotten disconnected. (Addresses
4024Sourceforge bug #620980)
4025
4026Partition in /proc/partitions that being with the string "lvm" are
4027considered real partitions even if they do not end with a number.
4028
4029Fixed a bug in the the uuid generation function, where if /dev/urandom
4030is not present, but /dev/random is, and there isn't sufficient
4031entropy, the get_random_byte function could spin a loop forever.
4032
4033E2fsck, mke2fs, etc. will now reliably notice when image files are
4034mounted using the loopback interface. (Addresses Sourceforge bug
4035#619119)
4036
4037When flushing buffers (as is done by badblocks, for example) check to
4038see if the BLKFLSBUF ioctl succeeds, and if so, avoid using the
4039FDFLUSH ioctl which causes the MD device driver which causes confusing
4040syslog messages about obselete ioctl messages. (Addresses Sourceforge
4041bug #545832).
4042
4043Debugfs's write command now checks to see if the destination filename
4044exists before creating it. (Addresses Sourceforge bug #478195.)
4045
4046When installing man pages, search for compressed man pages using all
4047commonly used compression extensions (i.e., .Z, .gz, .bz2, etc.)
4048
4049Fixed a bug in fsck where multiple filesystems specified on the
4050command were not being checked in parallel due to a logic bug
4051introduced to support the FSCK_MAX_INST environment variable.
4052
4053We have added a new superblock field, s_mkfs_time, which indicates
4054when a filesystem was created. It is set via mke2fs, and printed out
4055by dumpe2fs, but is not actually touched by the kernel.
4056
4057Dumpe2fs has been made more robust by not aborting if there is an
4058error reading the block/inode bitmaps; instead it will still print out
4059the location of the block/inode bitmaps and inode table.
4060
4061Add support for the an alternative block group descriptor layout which
4062allows for on-line resizing without needing to prepare the filesystem
4063in advance. (This is the incomat feature flag meta_bg.)
4064
4065Add support for storing default mount options in the superblock, so
4066that the filesystem can be mounted with specific mount options without
4067needing to specify them on the mount command line or in the /etc/fstab
4068file.
4069
4070Add support for a new inode flag, which is to be used for indicating
4071the top of directory hierarchies for the Orlov block allocator.
4072
4073Fix e2fsck so that if it creates the lost+found directory, it does so
4074with the more apporpriate permissions of 0700. Also change
4075mklost+found so that it also creates the directory 0700.
4076
4077Fixed format bug in e2fsck if NLS is in use.
4078
4079Add a German translation for e2fsprogs's NLS support.
4080
4081Fixed e2fsck so that it more handles BAD_BLOCK_IN_INODE_TABLE even at
4082the beginning of the inode table. This won't matter much, since if
4083there is a bad block at the beginning of the inode table, the root
4084directory won't be available. But at least e2fsck won't crash in this
4085case.
4086
4087Fixed endian problems in the htree code for e2fsck and debugfs.
4088
4089When byte-swapping a filesystem on a PPC architecture, byte-swap the
4090bitmaps since the historical big-endian ext2 variant had byte-swapped
4091bitmaps, and the ext2fs library assumes this. This fixes the
4092regression test suite on PPC machines.
4093
4094Fix e2image so that it handles a bad block in the inode table
4095appropriately.
Theodore Ts'od5e78102002-09-30 11:33:36 -04004096
4097E2fsck now uses a more sophisticated algorithm to salvage corrupted
4098directories that recovers more information in the corrupted directory
4099block.
4100
4101E2fsck now performs additional consistency checks on indexed (HTREE)
4102directories.
4103
4104Fix bug where efsck might get confused about whether a completely
4105empty directory block is an empty leaf block or an interior htree
4106node. This could cause e2fsck to get confused into think that a valid
4107indexed directory was corrupted.
4108
4109E2fsck no longer creates an empty directory entry at the end of a
4110directory block when optimizing a directory. This would cause some
4111earlier versions of the dxdir kernel code to corrupt the directory
4112when attempting to split a node containing an empty directory entry.
4113
4114E2fsck could sometimes in rare circumstances leave the indexed flag
4115set after a small directory was optimized by compressing it instead of
4116indexing it. (This should never happen in real life, since
4117directories that small wouldn't have been indexed, but better safe
4118than sorry.)
4119
4120E2fsck now only updates the master superblock in all cases. This
4121slightly shortens its run time.
4122
4123Ext2ed can deal with directory entries of length 0; previously it
4124would get stuck in an infinite loop.
4125
4126Fsck now has support for reiserfs volumes when parsing LABEL= and UUID=
4127specifiers. (Sourceforge patch #613447)
4128
4129Badblocks will now work correctly on read-only devices such as
4130CD-ROM's. (Sourceforge patch #600451)
4131
Theodore Ts'o5d823a42002-11-01 02:13:53 -05004132Updated and clarified man pages. (Addresses Debian bug #167108)
Theodore Ts'od5e78102002-09-30 11:33:36 -04004133
4134
Theodore Ts'oc6633052002-09-24 01:26:50 -04004135E2fsprogs 1.29 (September 24, 2002)
4136===================================
4137
4138Fixed a bug in e2fsck which could corrupt a directory when optimizing
4139it (via the -D option) or rebuiliding the hash tree index with a 1 in
4140512 probability, due to a fence post error.
4141
4142Fixed a bug in the LVM support code which caused LABEL='xxx' not to
4143work correctly.
4144
4145Mke2fs now enables the directory indexing flag by default. (Since
4146this is a compatible feature flag, it's safe to do so.)
4147
4148Tune2fs will support setting the directory indexing feature flag. It
4149will automatically set up the default hash algorithm and hash seed
4150fields in the superblock.
4151
4152If the bone-headed user enters the root filesystem twice in
4153/etc/fstab, the -R option which skips the root filesystem will skip
4154all of them. (Addresses Debian bug #159423). Note! This is not a
4155precedent for dealing intelligently with any other kind of doubled
4156entry in /etc/fstab!
4157
4158
4159Programmer's notes:
4160-------------------
4161
4162Removed perror declaration in lib/et/internal.h. All modern systems
4163can be expected to define perror() these days. Besides, the lib/et
4164code wasn't using perror at all anyway. :-)
4165
4166
Theodore Ts'ob7bad612002-08-31 03:00:33 -04004167E2fsprogs 1.28 (August 31, 2002)
4168================================
4169
4170Add support for the Hashed-Tree Directory Indexing to e2fsck. Support
4171for setting the htree flag is not included yet, although it can be
4172manually turned on via the debugfs program.
4173
4174Clarified e2fsck error message which is printed when it cannot find
4175sufficient contiguous block when relcating filesystem metadata.
4176
4177Added support for building an EVMS plugin module for ext2/3. This
4178module is substantially the same as the EVMS module shipping with EVMS
41791.1, with one or two bugfixes. E2fsprogs can also build this plugin
4180for use with EVMS 1.0 (which did not include the ext2 plugin module),
4181if the configure --enable-old-evms flag is given.
4182
4183Fsck will search through EVMS volumes when trying to resolve
4184filesystem specifications such as LABEL=xxx or UUID=xxx.
4185
4186Added a new utility program, /sbin/findfs, which will return
4187filesystem specifications such as LABEL=xxx or UUID=xxx, and prints
4188the device name.
4189
4190Update and clarified various man pages. (addresses Debian Bug #145044,
4191#146437, #131350, #151990, #144621, #141938)
4192
4193If there are no filesystems specified on fsck's command line, fsck now
4194treat that as if the -As options were given. Previously it would
4195simply do nothing. (Addresses Debian Bug #153102)
4196
4197Mke2fs no longer treats a failure to be able to clear the MD signature
4198at the end of the filesystem as a fatal error. (Addresses Debian Bug
4199#155007)
4200
4201The e2p library functions (which are used by lsattr and chattr) now
4202double check to make sure the file is a regular file or directory
4203before attempting to use the ext2 ioctls. Some device drivers
4204unfortunately respond to the ext2 ioctl's with unknown behaviour.
4205(Addresses Debian Bug #152029).
4206
4207The extended attribute handling has been updated to correspond with
4208the latest V2 bestbits ACL code.
4209
4210Fixed bug in e2fsck which caused it to not clear the dtime field when
4211processing truncated inodes on the orphan list. This could cause data
4212loss(!) if a filesystem is rebooted before a truncate has been
4213committed.
4214
4215E2fsck now uses red/black trees in pass1b, which removes some O(n**2)
4216algorithms. This makes e2fsck much faster in the case of severely
4217corrupted filesystems where a large number of blocks are claimed by a
4218large number of inodes. (Thanks to the 2.5 IDE device driver for
4219inspiring this work.)
4220
4221Resize2fs has been significantly sped up when shrinking and expanding
4222a filesystem by a very small number of blocks (for example, when EVMS
4223is converting a partition to be an EVMS legacy volume).
4224
4225Added a new option to e2fsck, -D, which will optimize or compress all
4226of the directories in the filesystem.
4227
4228E2fsck now catches SIGINT and SIGTERM to make sure it will can
4229properly clean up and only exit at safe points. Fsck will pass
4230SIGINT/SIGTERM to its child processes, and wait until they have all
4231exited before it exits.
4232
4233The uuid parsing code in the uuid library now properly complains when
4234an illegally formated uuid is presented to it. (Addresses Debian bug
4235#152891)
4236
4237Restrict use of the 2.4 setrlimit ABI f*ckup to kernels between 2.4.10
4238and 2.4.17, since the workaround can cause problems when using a 2.4
4239kernel with an old version of glibc built with the 2.2 headers.
4240
4241Fixed a bug in mke2fs where it wasn't properly clearing the initial
4242superblock used by other filesystems. (Addresses Debian bug #147256.)
4243
4244Added support for the synchronous directory feature written by Andrew
4245Morton.
4246
4247The debugfs program can delete directories using the rmdir command.
4248
4249Add support for 8k and 16k filesystems (for systems with page sizes
4250that are greater or equal to 8k or 16k, respectively). Note that
4251these filesystems can not be mounted on x86 systems, or other systems
4252with only 4k page sizes, due to limitations in the current Linux VM
4253code.
4254
4255Resize2fs requires that the filesystem state be valid and have no
4256errors; otherwise, e2fsck -f must be run first. (Previously it simply
4257required that the last fsck time be greater than the last mount time.)
4258
4259Configure now defaults the man pages directory to /usr/share/man on
4260Linux systems.
4261
4262E2fsck now offers to truncate inodes which contain too many blocks (so
4263that i_blocks would overflow. Also fixed handling of large sparse
4264files.
4265
4266E2fsck now more completely checks for symlink validity, including
4267requiring NULL termination and length checks.
4268
4269E2fsck will offer to try forcing a disk write to remap a bad block
4270after finding a read error when reading a filesystem metadata block.
4271
4272Fixed a bug in debugfs which caused the -b and -s options to crash
4273debugfs, as well as breaking the testb, setb, and clearb functions.
4274
4275Added a bmap command to debugfs which calculates the logical to
4276physical block mapping for a particular inode.
4277
4278Fixed a bug in code which checked to see if a device was mounted which
4279sometimes (rarely) failed in the case of a plain file.
4280
4281Fixed a bug in resize2fs where when it reported an error, it would
4282print a message erroneously indicating that the filesystem had been
4283resized before it aborted.
4284
4285When resizing a plain file which is smaller than the requested size,
4286resize2fs will attempt to extended the file so that programs like
4287e2fsck will not complain that the file is too small.
4288
4289Resize2fs will print the actual new size of the filesystem when it is
4290finished resizing.
4291
4292Fixed a bug in debugfs where "ls -l" would report incorrectl file type
4293information on big-endian systems.
4294
4295
4296Programmer's notes:
4297-------------------
4298
4299Fixed collisions with C++ reserved words.
4300
4301Added portability fixes for building e2fsprogs on the HURD and AIX.
4302
4303Added the ext2ed program for creation of test cases. (ext2ed has many
4304limitations and bugs which make it unsuitable for production use.)
4305
4306The ext2fs_read_dir_block2 and ext2fs_write_dir_block now take a new
4307flag, EXT2_DIRBLOCK_V2_STRUCT, which will will reverse when the
4308name_len field is byte swampped on big-endian machines, since in the
4309V2 structure, name_len is a char field which is doesn't need to be
4310byte swapped --- except if an old-style kernel had byte-swapped the
4311name_len field as part of the V1 structure.
4312
4313
Theodore Ts'oa8e77242002-03-08 03:12:14 -05004314E2fsprogs 1.27 (March 8, 2002)
4315==============================
4316
4317The warning messages for mke2fs now go to standard error.
4318
4319Fixed to make sure "make check" runs all of the test programs with
4320LD_LIBRARY_PATH set, so that we test the libraries in the build tree.
4321
4322The mke2fs program checks the boot sector for the BSD disk label, and
4323avoids erasing it if it is there.
4324
4325Fixed a bug in e2fsck which caused it to core dump if the journal
4326inode was missing when it was supposed to be there.
4327
4328E2fsck now prints ranges in pass 5 when printing deltas for the block
4329and inode bitmaps.
Theodore Ts'oafa14ba2002-03-05 03:31:06 -05004330
4331Debugfs's "ls -l" command now will print out the file type information
4332in the directory entry.
4333
4334Create man pages and hard links for fsck.ext3 and mkfs.ext3. If
4335mke2fs is invoked as mkfs.ext3, create the filesystem with a journal.
4336
4337Debugfs can now examine the experimental directory indexing
4338information.
4339
Theodore Ts'oa471ac52002-03-05 03:37:06 -05004340Fixed bug in debugfs which caused it to core dump if modify_inode is
4341called without an open filesystem.
4342
4343The debugfs lsdel command now runs its output through a pager first.
4344
Theodore Ts'oafa14ba2002-03-05 03:31:06 -05004345When installing manual pages, remove the compressed manual pages first.
4346
4347Synchronized with Debian's packaging information for e2fsprogs-1.26-1.
4348
4349Fix the 2.4 resource limitation workaround introduced in 1.26 which
4350actually broke things on mips32, sparc32, and Alpha platforms.
4351
Theodore Ts'oa471ac52002-03-05 03:37:06 -05004352Updated the I18N code so that calls to setlocate(LC_CTYPE, 0) are made
4353(which is required by the newer libintl libraries).
4354
Theodore Ts'oafa14ba2002-03-05 03:31:06 -05004355Programmer's notes:
4356-------------------
4357
Theodore Ts'oa8e77242002-03-08 03:12:14 -05004358Fixed various gcc -Wall complaints.
4359
Theodore Ts'oafa14ba2002-03-05 03:31:06 -05004360Fixed a few memory leaks in the e2fsck journaling code, and in the
4361ismounted code checking for a swap device.
4362
4363Add new inode I/O abstraction interface which exports an inode as
4364an I/O object.
4365
4366Exported ext2_file_flush as a public interface.
4367
4368In ext2_file_write, we now mark the buffer void * argument as a const, since ext2_file_write doesn't modify the buffer.
4369
4370Lots of small random portability fixes to make e2fsprogs build under
4371AIX --- even without the 5L compatibility toolkit, and even using the
4372uber-crippled AIX native C compiler.
4373
4374
Theodore Ts'o06987392002-02-03 01:36:54 -05004375E2fsprogs 1.26 (February 3, 2002)
Theodore Ts'oa5f3f5c2002-02-03 01:00:22 -05004376=================================
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004377
Theodore Ts'o446314f2001-12-24 15:22:27 -05004378Dumpe2fs will keep going now if the bad block inode can't be read.
4379(Previously it stopped with a fatal error.)
4380
4381E2fsck will now give an opportunity to run the journal even if the
4382recovery flag is not set. This is the default behaviour if e2fsck is
4383using a backup superblock, since the needs_recovery flag will never be
4384set in the backup superblock copies.
4385
4386E2fsck now automatically finds the backup superblock/group descriptors
4387even when the primary superblock is completely destroyed for 2k and 4k
4388filesystems. (Previously it just guessed/assumed that we were dealing
4389with a 1k filesystem in that case, and users had to manually specify
4390the backup superblock number.)
4391
4392Fixed a bug in e2fsck where it dereferences a null pointer when there
4393is a problem opening a filesystem in preen mode.
4394
4395E2fsck now handles external journals correctly; previously it trashed
4396the external journal device if the journal needed to be replayed.
4397
4398Work around ulimit incompatibility problem caused by recent 2.4
4399kernels; the unix IO module will automatically try to set any resource
4400limits to be infinite on startup.
4401
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004402Fixed a bug in e2fsck where it wasn't allocating a new block or inode
4403bitmap if it wasn't present and the blocksize was 2k or 4k.
Theodore Ts'o9c7ec172003-07-26 01:03:34 -04004404 (Addresses Debian Bug #116975)
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004405
4406E2fsck will check and fix botched ext3 V1 to V2 superblock updates by
4407clearing the new V2 fields if they do not make sense or if the ext3
4408superblock is version 1 superblock.
4409
4410E2fsck will automatically relocate the ext3 journal from a visible
4411file (i.e., /.journal) to an hidden inode if the filesystem has been
4412opened read/write. This allows the users to add a journal while the
4413filesystem is mounted, but the next time the system is rebooted, the
4414journal file will disappear. This avoids problems with backups,
4415stupid operators with superuser bits, etc.
4416
4417Fix a bug in fsck where it would not support a filesystem type of
4418"auto" if the device was specified in terms of LABEL=xxx or UUID=xxx.
4419
Theodore Ts'oa5f3f5c2002-02-03 01:00:22 -05004420Fsck now supports fstab entries of the form "ext3,ext2". It will also
4421automatically identify reiserfs filesystems.
4422
4423The number of processes spawned by fsck can now be limited using the
4424FSCK_MAX_INST environment variable.
4425
Theodore Ts'o446314f2001-12-24 15:22:27 -05004426Fsck now searchs the LVM proc hierarchy to find logical volumes which
4427should be searched for UUID and label information.
4428
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004429Work around a bug in 2.4.10+ kernels by trying to unset the filesize
4430limit if at all possible, when opening a block device. (The filesize
4431limit shouldn't be applied against writes to a block device.)
4432
Theodore Ts'o446314f2001-12-24 15:22:27 -05004433In mke2fs and e2fsck, specifying the -c option twice will now do
4434a read/write test on the disk. Update the man pages to encourage
4435using the -c option, and to discouraging running badblocks separately,
4436since users tend to forget to set the blocksize when running
4437badblocks.
4438
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004439Mke2fs now automatically clears the immutable attribute on a
4440pre-existing .journal file left over from a previous failed attempt to
4441add a journal to an alreadyy-mounted filesystem.
4442
4443Fixed mke2fs's exit codes to consistently indicate when the mke2fs
4444operation failed.
4445
Theodore Ts'o446314f2001-12-24 15:22:27 -05004446Mke2fs now creates the lost+found directory with permissions of 0700,
4447so that files that had previously lived in protected directory are
4448safe if they get dropped in lost+found and the system administrator
4449doesn't deal with immediately. (Addresses Debian #bug 118443)
4450
4451Mke2fs and e2fsck (and all programs that use the
4452ext2fs_check_if_mounted function) will now properly identify that a
4453device is mounted, even in cases where devfs has confused things with
4454multiple devices names with the same identity, or if a dim-witted
4455system administrator has done something stupid like creating device
4456file aliases in their home directory. Also now checks for swap devices
4457by using /proc/swaps. (Addresses Debian bug #106622)
4458
Theodore Ts'oa5f3f5c2002-02-03 01:00:22 -05004459Added a new option (-T) to tune2fs which sets the time a filesystem
4460was last checked.
4461
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004462Speed up e2image when creating sparse raw image files by optimizing
4463away excess lseek() system calls.
4464
4465Fix support of large (> 2GB) files when used as a filesystem in
4466mke2fs, tune2fs, debugfs, and findsuper.
4467
4468Debugfs's stat and icheck commands now properly deals with large (>
44692GB) files.
4470
4471Debugfs's set_super_value command now prints out the list of valid
4472superblock fields which can be set using the command.
4473
Theodore Ts'o446314f2001-12-24 15:22:27 -05004474Debugfs's rm and kill_file command now updates the superblock free block
4475and inode counts, thus keeping the filesystem consistent.
4476
Theodore Ts'oa5f3f5c2002-02-03 01:00:22 -05004477Debugfs's lsdel command now takes an optional argument which allows
4478the user to only see the most recently deleted files.
4479
4480A new command (undel) was added to debugfs which automates
4481undeleting a deleted inode and linking it back to a directory.
4482
4483Debugfs's ls command now takes a new option, -d, which lists
4484deleted directory entries.
4485
4486Debugfs's testb, freeb, setb, and find_free_block commands now take an
4487optional count argument.
4488
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004489Add support for a new ext2 file attribute, EXT2_NOTAIL_FL, which will
4490be used to signal that a particular inode should not be eligible for
4491tail-merging --- this is needed for programs like LILO.
4492
4493The findsuper (an unreleased, uninstalled utility program) has been
4494improved to add extra validity checks and to add a progress meter.
4495(It is still an unsupported program; the officially supported way to
4496recover from a trashed partition table is to use gpart; findsuper is
4497for wizards only. :-)
4498
4499Debugfs was fixed to compile with "configure --disable-swapfs".
4500
Theodore Ts'o446314f2001-12-24 15:22:27 -05004501Cleaned up various manual pages. (Addresses Debian bug #119624, #120171)
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004502
4503Added new translation file for Turkish.
4504
Theodore Ts'o446314f2001-12-24 15:22:27 -05004505Programmer's notes:
4506-------------------
4507
4508Fix general gcc -Wall complaints.
4509
4510E2fsprogs (mostly) works with the dietlibc.
4511
4512The programming texinfo file has been expanded to include description
4513of additional libext2fs functions. (Still not compeltely done, but a
4514lot of the more important functions have been documented.)
4515
4516Added a umask structure to struct_ext2_filsys, which currently only
4517modifies the behaviour of ext2fs_mkdir(), but if we add any file
4518creation functions to libext2fs, we should also make sure they respect
4519the umask setting.
4520
Theodore Ts'oa5f3f5c2002-02-03 01:00:22 -05004521The build-rpm script was fixed to be a bit more safe.
4522
4523The tests' Makefile now has a way of automating test case creation
4524for e2fsck, using "make testnew".
4525
4526Created a new function, ext2fs_dir_iterate2 which passes more
4527information to the callback function (identical to the one used by
4528ext2fs_dblist_dir_iterate). The directory iterator functions take a
4529new flag, DIRENT_FLAG_INCLUDE_REMOVED, which will return deleted
4530directory entries. If the directory entry is deleted, the callback
4531function will be called with the entry paraemter set to
4532DIRENT_DELETED_FILE.
4533
4534Added new functions, ext2fs_inode_alloc_stats and
4535ext2fs_block_alloc_stats, which takes updates block/inode allocation
4536statistics in the bitmaps, block group descriptors, and superblock
4537when inodes or blocks are allocated or deallocated.
4538
Theodore Ts'ocd1a79a2001-11-27 03:36:42 -05004539
Theodore Ts'od08a4ce2001-09-20 09:47:42 -04004540E2fsprogs 1.25 (September 20, 2001)
4541===================================
4542
4543This is primarily a bug-fix release; no new features were added, but
4544there are a number of embarassing bug fixes and cleanups applied.
4545
4546Fix a bug mke2fs which causes stack garbage to be written to disk when
4547zapping disk sectors. (This bug could cause mke2fs to core dump for
4548some kernels, I suspect with security enhancement patches.)
4549
4550Remove unneeded #include of <linux/config.h> which was breaking
4551building e2fsprogs on the Hurd. (Addresses Debian bug #112414.)
4552
4553Updated tune2fs man page to reflect the fact that adding or removing a
4554journal doesn't require running e2fsck.
4555
4556Remove use of AC_REQUIRE from autoconf which had been used to prevent
4557AC_CANONICAL_HOST from being called twice; unfortunately this causes
4558recent autoconf to bomb out since they don't allow AC_REQUIRE to be
4559used outside of autoconf macros. Fortunately, it doesn't seem to be
4560necessary any more, anyway.
4561
4562E2fsck will now not fall back to an alternate superblock if the user
4563specifies the superblock location explicitly on the command-line.
4564This allows easier recovery from a situation where the primary
4565superblock and block groups are slightly corrupted, but the backup
4566superblocks are completely broken.
4567
4568Fix problem which caused compile_et and mk_cmds to blow up if
4569e2fsprogs was in a directory with a pathname that contained spaces.
4570
4571We are now more paranoid about checking the entry in /etc/mtab to make
4572sure the filesystem is really mounted, since some broken distributions
4573(read: Slackware) don't initialize /etc/mtab before checking non-root
4574filesystems. (Slackware also doesn't check the root filesystem
4575separately, and reboot if the root filesystem had changes applied to
4576it, which is dangerous and broken, but there's nothing I can do about
4577that.)
4578
4579Make UUID library C++ friendly by adding appropriate extern "C"
4580declarations and using const in the function declarations.
4581
4582Fix up the com_err texinfo file so that it can product a valid info
4583file (previously, it could only be used to generate paper
4584documentation using texinfo.tex).
4585
4586
Theodore Ts'ofb707752001-09-04 15:00:37 -04004587E2fsprogs 1.24a (September 2, 2001)
4588===================================
4589
4590Fix brown-paper bug in mke2fs which caused it to segfault when
4591printing the version string.
4592
4593
Theodore Ts'o109624a2001-08-31 00:59:55 -04004594E2fsprogs 1.24 (August 30, 2001)
4595================================
4596
4597Revert the BLKGETSIZE64 support, since for some distributions, this
4598ioctl has been used by an unofficial kernel patch to update the last
4599sector on the disk, and this was causing disk corruption problems as a
4600result.
4601
4602Mke2fs is now more careful about zapping swap space signatures and
4603other filesystem/raid superblock magic values so that programs like
4604mount who try to use hueristics to determine the filesystem type of a
4605partition are less likely to be confused.
4606
4607E2fsck will no longer complain if the the mode of EXT2_RESIZE_INO is a
4608regular file (since Andreas Dilger's on-line resizing tools will set
4609its mode bits).
4610
4611Fixed some minor texinfo, man pages nits for spelling errors,
4612texinfo warnings, etc. (Addresses Debian bug #110621.)
4613
4614E2fsprogs program no longer print the filesystem version number
4615(i.e. 0.5b), since it only confuses people and doesn't serve any real
4616purpose.
4617
4618E2fsck will once again compile under libc5, since it will supply its
4619own version of strnlen if necesssary.
4620
4621mke2fs and tune2fs will allow the use of UUID= or LABEL= specifiers
4622when specifying the external journal device. tune2fs will also search
4623devices looking for the externla journal debice when removing.
4624
4625E2fsprogs 1.23 (August 15, 2001)
4626================================
Theodore Ts'od1ef5c32001-07-20 12:35:11 -04004627
4628Add initial support for extended attributes (EA); e2fsck will
Theodore Ts'o6c0a0412001-07-23 00:23:52 -04004629correctly handle a filesystem with EA's and check the EA blocks for
4630corruptions.
4631
Theodore Ts'od494bba2001-08-09 06:14:42 -04004632E2fsck's symlink sanity checking has been cleaned up. It now checks
4633the i_size value of fast symlinks, and checks for immutable flags
4634being set of symlinks, etc.
4635
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004636E2fsck now offers to clear inodes which are special files that have a
4637non-zero i_blocks or i_size field. (The i_size field check was in the
4638previous version of the code, but due to a bug it didn't offer to
4639clear the inode unless i_size and i_size_high were both non-zero.)
4640
Theodore Ts'od494bba2001-08-09 06:14:42 -04004641E2image can now create "raw" image files, which only contain the
4642filesystem metadata placed in a spare file so that e2fsck, dumpe2fs,
4643debugfs, etc., can be run directly on the raw image file.
Theodore Ts'obf16d102001-07-27 22:20:06 -04004644
4645Add support for the 64-bit block device patches.
4646
4647Fixed bugs in creating external journals with a 1k blocksize.
4648
Theodore Ts'od494bba2001-08-09 06:14:42 -04004649Add initial support for external journals (so long as the external
4650journal only supports a single filesystem) in e2fsck.
4651
4652Remove requirement for needing to run fsck on a filesystem after
4653removing a journal (either internal or external).
4654
Theodore Ts'obf16d102001-07-27 22:20:06 -04004655The man pages now document how to create and manage external journals.
Theodore Ts'od1ef5c32001-07-20 12:35:11 -04004656
4657Speed up the check of an ext3 filesystems by avoiding a needless flush
4658of all of the superblock and block group descriptors.
4659
Theodore Ts'od494bba2001-08-09 06:14:42 -04004660Speed up creating an internal journal using tune2fs in the case where
4661the filesystem has a lot blocks already allocated.
4662
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004663Tune2fs has been fixed to make sure that only error messages go to
4664stderr, and normal message go to stdout. (Addresses Debian bug #108555)
4665
Theodore Ts'od494bba2001-08-09 06:14:42 -04004666Fixed a minor bug in mke2fs; if -O none is passed to mke2fs, it will
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004667now not set the sparse_super feature. (Addresses Debian bug #108165)
Theodore Ts'od494bba2001-08-09 06:14:42 -04004668
Theodore Ts'od1ef5c32001-07-20 12:35:11 -04004669Add support in fsck for the filesystem type "auto".
4670
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004671Fsck -A will not try to interpret device names for filesystems which
4672have a pass number is 0. (Addresses Debian bug #106696).
4673
4674Fsck prints a warning message if now valid filesystems are passed to
4675it. (Addresses Debian Bug #107458.)
4676
Theodore Ts'o9249d982001-07-20 18:14:10 -04004677E2fsck now gives an explicit warning if there filesystem still has
4678errors at the end of the run. (Addresses Debian bug #104502)
4679
Theodore Ts'od494bba2001-08-09 06:14:42 -04004680E2fsck will set the EXT2_ERROR_FS flag if the journal superblock
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004681reflects an error. E2fsck will also not run the orphan list if the
4682filesystem contains errors, since the orphan list might be corrupted.
Theodore Ts'od494bba2001-08-09 06:14:42 -04004683
4684E2fsck now prints the number of large files when given the -v option.
4685
4686Fixed minor memory leaks in e2fsck.
Theodore Ts'obf16d102001-07-27 22:20:06 -04004687
Theodore Ts'oc4ac9e12001-08-15 21:02:23 -04004688Some minor man pages updates. (Addresses Debian bug #30833, #108174)
Theodore Ts'o9249d982001-07-20 18:14:10 -04004689
Theodore Ts'od1ef5c32001-07-20 12:35:11 -04004690
Theodore Ts'o19d6b542001-06-23 00:13:09 -04004691E2fsprogs 1.22 (June 22, 2001)
4692==============================
4693
4694Fixed a bug in e2fsck's handling of orphan inodes which are special
4695files (i.e., block/character device files, named FIFO's, etc.).
4696
4697Fixed a bug accidentally introduced in e2fsprogs 1.21 which caused
4698tune2fs to fail at adding a journal to a mounted filesystem.
4699
4700Fixed a few big-endian bugs in e2fsprogs
4701 * The directory block functions were accidentally reporting
4702 some directories as corrupted when they weren't.
4703 * If e2fsprogs is compiled --disable-swapfs, the C language
4704 equivalents weren't being included for big-endian platforms.
4705 (Fixes Debian bug #101686).
4706
4707Fixed a Hurd compilation problem. (Addresses Debian bug #101361)
4708
4709Programmer's notes:
4710-------------------
4711
4712Use platform independent method of defining the BLKFLSBUF and FDFLUSH
4713ioctls, and allow them to be defined for non-i386 platforms.
4714
4715The uuid.h header file is now protected against multiple inclusions.
4716
4717E2fsprogs is now being developed using BitKeeper. Changed the test
4718scripts to deal with BK's stripping CR characgters from text files,
4719and changed the top-level Makefile.in to avoid including BitKeeper
4720files when generating the source tarball.
4721
4722
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004723E2fsprogs 1.21 (June 15, 2001)
4724==============================
Theodore Ts'o767de092001-06-02 01:20:18 +00004725
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004726Added new configure flags which allow a subset e2fsprogs to be built;
4727this is most useful for boot floopies, since the resulting shared
4728libraries and programs are slimmed down by removing features that
4729aren't necessary for a boot floppy. The new flags that were added
4730are: --disable-swapfs, which removes support for byte swapping old
4731legacy PPC/68k filesystems, --disable-debugfs, which removes support
4732for debugfs from the libext2fs library, --disable-imager, which
4733removes support for the e2image program, and --disable-resizer, which
4734removes support for resize2fs.
4735
4736E2fsck now prints the number of mounts or days elapsed since the last
4737check when e2fsck is forced to check an otherwise clean filesystem.
4738
4739Tune2fs now prints an informative message about how often a filesystem
4740will be checked when adding a journal to the filesystem, to remind the
4741user that he/she may want to adjust those parameters using tune2fs
4742-c/-i.
4743
4744Worked around hurd brain-damage which causes e2fsck to sometimes
4745believe a filesystem is the root filesystem based on device numbers
4746(since Hurd doesn't have dev_t's, which is arguably a POSIX.1
4747violation).
4748
4749Fixed a bug introduced in 1.20 which caused e2fsck to abort with an
4750erroneous error with the -F option was specified.
4751
4752Fixed a ext3 recovery bug in the revoke handling; synchronized with
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004753ext3 0.7a.
4754
Theodore Ts'o767de092001-06-02 01:20:18 +00004755Fixed two bugs in e2fsck's handling of dup block handling, dealing
4756with relatively uncommon edge cases: a directory with an indirect
4757block which is claimed by another file, and when the last inode in the
4758filesystem has blocks claimed by another file.
4759
Theodore Ts'o5a9c0362001-06-02 04:55:57 +00004760E2fsck now checks to see if the i_size field of a fast symlink is too
4761big, and offers to clear the symlink if so.
4762
4763E2fsck now checks to see if i_size_high of special files is non-zero,
4764and offers to clear i_size_high.
4765
Theodore Ts'o767de092001-06-02 01:20:18 +00004766Fix e2fsck's handling of incompatible journal flags so that the user
4767has chance to abort, and then has the option to clear out the journal
Theodore Ts'oe3338452001-06-14 07:11:33 +00004768entirely. (Addresses Debian bug #98527.)
Theodore Ts'o767de092001-06-02 01:20:18 +00004769
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004770Fixed a bug in fsck which could cause it to core dump if a mix of
4771standard and non-standard device names are used in /etc/fstab.
4772(Debian bug #100559)
4773
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004774Fixed a bug in debugfs which caused read errors when copying a file to
4775not be noticed.
4776
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004777The debugfs set_super_value command can now modify the s_lastcheck field.
4778
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004779Fixed a bug in lsattr and chattr which was accidentally introduced in
47801.20 to support > 2GB files; both lsattr and chattr wasn't reading
4781directories correctly because the change modified the layout of struct
4782dirent to be incompatible with the libe2p shared library.
4783
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004784Cleaned up the mke2fs manual page and included a discussion about why
4785it's good to periodically check the filesystem even when journaling is
4786enabled.
4787
Theodore Ts'o767de092001-06-02 01:20:18 +00004788Programmer's notes:
4789-------------------
4790
4791Fix general gcc -Wall complaints.
4792
4793The types needed by the ext2 header files are now provided by
4794lib/ext2fs/ext2_types.h, instead of include/asm/types.h.
4795
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004796Integers are now preferred to longs when trying to find a 32-bit type
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004797in ext2_types.h. Also, if linux/types.h has already been defined,
4798don't try to redefine the types.
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004799
Theodore Ts'o767de092001-06-02 01:20:18 +00004800Fixed make depend script so that it automatically corrects the
4801pathname cleanups performed by make -M, so I don't have to fix them up
4802by hand.
4803
4804Fixed the d_loaddump test case to be more robust, and not depend on
4805bash'isms.
4806
4807Removed debugfs's dependence on pread(), which was accidentally
4808intrudced in e2fsprogs 1.20
4809
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004810Fixed a performance bug in the libext2fs's icount routine; the size
4811estimate of the icount array was incorrectly being calculated.
4812
Theodore Ts'ob90b8262001-06-15 22:54:34 +00004813Removed use of the badblocks compatibility functions in the e2fsprogs
4814programs.
4815
4816Added paranoia code which protects against strange cases where /etc
4817isn't on the root filesystem, or if /etc/mtab doesn't exist.
4818
4819The header file ext2_types.h is now installed.
4820
4821Autoconf is used to determine when we are on big-endian machines,
4822instead of doing run-time tests, to save a few bytes of code.
4823
4824The ext2fs_mark_generic_bitmap and ext2fs_unmark_generic_bitmap
4825functions are no longer inline functions, which saves space and
4826doesn't really cost any real performance.
4827
4828The ext2fs library no longer depends on the e2p library. (What need
4829there was of it --- namely, fsetflags, was coded in-line).
4830
4831Fixed the makefile so that lib/ext2fs/ext2_types.h is generated even
4832when the user is stupid and tries compiling the package using "make
4833install" as root.
4834
4835Miscellaneous code cleanups:
4836 * Added missing files from Makefile.in's SRCS file, so that
4837 their dependencies would be properly calculated.
4838 * Removed redundant code
4839 * Fixed comments in code
4840 * Removed no-longer unneeded argsused #pragma.
Theodore Ts'oc05b5522001-06-08 12:03:36 +00004841
Theodore Ts'o767de092001-06-02 01:20:18 +00004842
Theodore Ts'o5a009bb2001-05-21 05:27:45 +00004843E2fsprogs 1.20 (May 20, 2001)
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004844=============================
Theodore Ts'o5570a652000-08-21 01:23:39 +00004845
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004846Add support for replaying the ext3 journal purely in user mode,
4847including handling the orphaned inode list. Used code contributed by
4848Andreas Dilger, with bug fixes and the orphaned inode handling done
4849by Theodore Ts'o.
4850
4851The mke2fs and tune2fs programs can create or modify a filesystem to
4852include an ext3 journal. Tune2fs also can be used to remove an ext3
4853journal from a filesystem.
Theodore Ts'o5570a652000-08-21 01:23:39 +00004854
4855E2fsck will now check for the existence of a linked list of orphan
4856inodes in the superblock, and clear those inodes before starting the
4857rest of the filesystem check (but after the journal playback).
4858
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004859E2fsck now validates the file descriptor passed to the -C option,
4860which saves against the completion bar getting written to an
4861unexpected location, such as the disk being checked. (Debian
4862bug/wishlist #55220)
4863
4864E2fsck will now bump the filesystem revision number from zero to one
4865if any of the compatibility bits are set.
4866
4867Fixed a bug where a badly corrupted directory on a big endian system
4868could cause e2fsck to die with a bus error. The
4869ext2fs_read_dir_block() and ext2fs_process_dir_block() functions in
4870the ext2 library now does alignment sanity checks on the rec_len field
4871of the directory entry before using it.
4872
4873The ext2 library has been enhanced to make tune2fs safe to run on
4874mounted filesystems. (Users could usually get away with using tune2fs
4875on mounted filesystems before, but with the advent of ext3 and
4876journaling, it became important to make tune2fs was *really* safe for
4877use even when the filesystem being modified is mounted.) E2label is
4878now implemented by tune2fs using an argv[0] dispatch, so that e2label
4879is also now safe for use on mounted filesystems.
4880
4881Added a new program, e2image, which creates a backup of critical ext2
4882filesystem data structures. The generated image file can be examined
4883using dumpe2fs and debugfs. In the future, e2fsck will be able to use
4884the image file to help recover very badly damaged filesystems.
4885
4886Fixed a number of LFS bugs in e2fsck; very, very large (> 2**42) files
4887no longer cause e2fsck to bomb out. Also treat files > 2GB as being
4888large file when deciding whether or not the filesystem has large files.
4889
4890Fixed lsattr and chattr so that they work correctly on large files.
4891(Fixes Debian bug #72690.)
4892
4893Removed limitation in get_device_size() which imposed a one terrabyte
4894filesystem limitation. (Most 2.2 kernels still have a signed int
4895problem which cause 1 TB block device limitation. Fortunately, the
4896kernel patches to fix this are much easier than fixing the 2TB
4897limitation in the kernel. :-)
4898
4899A max_mount_count of zero is now treated as if no mount count were
4900set. (Previously, no mount count was indicated by using -1, and a
4901mount count of zero caused e2fsck to always be run.)
4902
Theodore Ts'o77648562001-05-14 13:04:44 +00004903Mke2fs supports two new filesystem types largefile and largefile4.
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004904
4905Mke2fs now adds some randomness in s_max_mount_count so that multiple
4906filesystems won't be all checked at the same time under normal
4907operations.
4908
Theodore Ts'o5570a652000-08-21 01:23:39 +00004909Fixed bug in the progress bar printing code which could cause e2fsck
4910to core dump on an illegal filesystem.
4911
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004912Fixed bug in fsck which could allow more than one instance of e2fsck
4913to be printing a progress bar. (Debian bug #65267)
4914
Theodore Ts'o5570a652000-08-21 01:23:39 +00004915Fsck using a UUID or a LABEL specifier will work even if devfs is
4916compiled into the kernel and not mounted. If the pathnames in
4917/proc/partitions are incorrect, fsck will search /dev for the correct
4918device (using the new ext2fs_find_block_device library function).
4919Fsck now also checks the RAID devices first so that they are properly
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004920found when they are in use. Support has also been added to support
4921additional IDE disks and the DAC 960 device names. (Debian bug #94159)
4922
4923Fixed a bug in fsck which caused it not deal properly with 16
4924byte long filesystem labels.
Theodore Ts'o5570a652000-08-21 01:23:39 +00004925
Theodore Ts'o5a009bb2001-05-21 05:27:45 +00004926Fsck's -t option has been made a lot more flexible. The semantics for
4927what happens if a comma-separated list to fsck has been regularized,
4928and it is now possible to filter what filesystems will get checked
4929based what is in the filesystem's fstab entry's option field. (Debian
4930bug #89483.)
4931
Theodore Ts'o5570a652000-08-21 01:23:39 +00004932The dumpe2fs program can now print out the group description
4933information in hex, and also prints the location of the superblock and
4934block group descriptor for those block groups that have them.
4935
4936Mke2fs now clears the ext2 superblock before it starts creating a
4937filesystem, so that the superblock magic number is only written if the
4938filesystem creation process successfully completes.
4939
4940The debugfs program's stat command now pretty-prints the blocks used
4941by an inode so that it's more compact and informative.
4942
4943The debugfs stats command now uses the same libe2p code (which is used
4944by dumpe2fs) to print the superblock header information. This is more
4945complete, and it avoids a bit of code duplication.
4946
4947Added a new debugfs command, set_super_value (ssv) which allows the
4948user to set arbitrary superblock fields.
4949
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004950Debugfs was extended to support inode numbers in hex (by prefixing
4951them with 0x), and so that modify_inode can set the inode generation
4952number. Also, there is now a new function command called logdump
4953which will dump an ext3 journal.
4954
4955Fixed a bug in debugfs so that quitting out of the pager doesn't kill
4956debugfs.
4957
4958Debugfs's dump command now stops immediately upon reporting a disk
4959read error. (Fixed a bug in ext2fs_file_read library routine which
4960caused debugfs not to stop.) (Debian bug #79163)
4961
4962On systems with /proc/mounts (mainly Linux systems), /proc/mounts is
4963checked before /etc/mtab is used, since /proc/mounts is more likely to
4964be accurate.
4965
4966Added portability fixes for Solaris and Linux/ia64.
4967
4968Various manual pages were clarified and cleaned up. (Fixed debian
4969bugs #63442, #67446, and #87216)
4970
Theodore Ts'o5570a652000-08-21 01:23:39 +00004971
4972Programmer's notes:
4973-------------------
4974
4975The e2fsck message printer now supports %Iu and %Ig, which will print
4976out the inode's user and group owners, respectively.
4977
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004978E2fsprogs now includes its own version of include/linux/ext2_fs.h, so
4979that no longer dependent on the system having the correct version of
4980the kernel header files.
4981
Theodore Ts'o5570a652000-08-21 01:23:39 +00004982Added a new function to libext2, ext2fs_find_block_device(), which
4983searches the system (i.e., /dev, /devfs, /devices) for a pathname to a
4984device given its device number.
4985
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004986Added a new function to libext2, ext2fs_sync_device, which centralizes
4987all of the places which might try to use the BLKFLSBUF or FDFLUSH
4988ioctls (and usually failing to define them since the system header
4989files don't usually do this for us, and we're trying to avoid usage of
4990kernel include files now).
4991
Theodore Ts'o5570a652000-08-21 01:23:39 +00004992Added new utility programs in tests/progs: random_exercise and
4993hold_inode. They aren't built by default; they're useful for
4994exercising ext3 filesystem code.
4995
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00004996Added a new ext2 filesystem flag, EXT2_FLAG_SUPER_ONLY, which causes
4997the filesystem close functions to only update the superblock, and to
4998not touch the block group descriptors. Needed by tune2fs when
4999modifying a mounted filesystem.
5000
5001Got rid of struct ext2fs_sb and replaced it with the standard struct
5002ext2_super_block from include/linux/ext2_fs.h. Note: this may break
5003source (but not binary) compatibility of some users of the ext2
5004library. Those applications should just simply do a global search and
Theodore Ts'o7d614e32001-06-13 23:49:05 +00005005replace of struct ext2fs_sb with struct ext2_super_block, and include
5006the new header file <ext2fs/ext2_fs.h> which defines it.
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00005007
5008The ino_t type has been renamed ext2_ino_t to protect applications
5009that attempt to compile -D_FILE_OFFSET_BITS=64, since this
5010inexplicably changes ino_t(!?). So we use ext2_ino_t to avoid an
5011unexpected ABI change.
5012
5013The Makefiles have been reworked so that "make check" can be run from
5014the top-level Makefile.
5015
5016Fix general gcc -Wall complaints and removed dead code.
5017
5018Remove use of NOARGS, because we assume everyone does ANSI C these
5019days.
5020
5021Added build-rpm script from sct.
5022
5023New functions ext2fs_image_{inode,super,bitmap}_{read,write} added
5024to support e2image.
5025
5026New function ext2fs_flush_icache which must be called if the
5027application program modifies the inode table blocks without going
5028through ext2fs_write_inode() interface.
5029
5030New ext2fs_check_mount_point() function, which will return the mount
5031point of a device if mounted.
5032
5033The io_channel abstraction now has an optional interface,
5034io_channel_write_range, which allows specific byte ranges to be
5035written.
5036
5037The unix_io IO channel now supports write-through caching, so that
5038journal creation is more efficient.
5039
5040Added x86 assembly language routines to support byte swapping, to
5041reduce executable size.
5042
5043Fixed bug in the utility program subst so that it's possible to
5044replace a substitution variable with a zero-length string.
5045
5046Fixed numbering e2fsck pass1 problem numbers; an extra zero had
5047slipped into some of the problem number.
Theodore Ts'o5570a652000-08-21 01:23:39 +00005048
Theodore Ts'ob777e262000-07-27 01:39:23 +00005049E2fsprogs 1.19 (July 13, 2000)
5050==============================
Theodore Ts'oab146762000-07-07 04:37:35 +00005051
5052Release the resize2fs program since the timeout before it could
Theodore Ts'o006ea712000-08-21 03:39:49 +00005053be released under the GPL has finally expired.
Theodore Ts'oab146762000-07-07 04:37:35 +00005054
5055Add experimental support needed for the ext2 compression patches.
5056This requires compiling e2fsprogs with the --enable-compression flag
5057to the configure script.
5058
5059Added ext3 journalling support. E2fsck will run the journal (if
5060necessary) by temporarily mounting the filesystem. /sbin/fsck.ext3 is
5061installed as a symlink to e2fsck. Fsck has been taught about ext3,
5062and treats it the same as ext2 in terms of the progress bar logic.
5063Dumpe2fs will display the superblock journaling information if the
5064filesystem has a journal. The ext2 library will now permit opening an
5065ext3 filesystem with the recovery flag set. This is necessary for
5066on-line dump's to work correctly, but there may be issues with this
5067working well since ext3 is much less agressive about syncing blocks to
5068the filesystem, since they're safe on the journal.
5069
5070Tune2fs and e2fsck have been changed to allow the mount_count check to
5071be disabled by setting max_mount_count to -1. (This was already
5072supported by the kernel.)
5073
5074Create a symbolic link for fsck.ext3, since the e2fsprogs utilities
5075are used for ext3 as well.
5076
5077Added internationalization support for e2fsprogs; must be enabled
5078by passing --enable-nls to configure.
5079
5080Always use the provided ext2fs header files to insulate ourselves from
5081kernel version changes. Which include files are used by e2fsprogs
5082have also been cleaned up to improve portability.
5083
5084Limit the number of times that e2fsck updates the progress bar so that
5085people who are booting using a 9600 baud console don't get swampped by
5086too many updates.
5087
5088Improved the loop detection algorithm in e2sck's pass #3 so that it is
5089much, much faster for large filesystems with a large number of
5090directories.
5091
5092The memory footprint for e2fsck is now slightly smaller than before.
5093
5094E2fsck now checks if special devices have a non-zero size, and offers
5095to clear the size field if it finds such an inode.
5096
5097E2fsck now checks if special devices have the append-only flag set,
5098and offers to clear the inode.
5099
5100E2fsck now properly handles some "should never fail" cases during a
5101bitmap copy in pass5.
5102
5103E2fsck now properly prints control characters in filenames as ^A .. ^Z.
5104
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00005105E2fsck now calculates the correct location of the backup superblock in
5106the case of filesystem blocksizes > 1k.
5107
5108Fixed a bug in e2fsck's calculation of the number of inodes_per_block
5109which normally didn't cause problems under most filesystem parameters,
5110but could cause a valid superblock to be rejected in extreme cases.
5111Other checks for validating superblock values were made more
5112stringent.
5113
Theodore Ts'oab146762000-07-07 04:37:35 +00005114Added non-destructive write testing to the badblocks program, courtesy
5115of David Beattie. The badblocks also now has an option to input the
5116current set of bad blocks, so that known bad blocks are skipped to
5117speed up the badblocks test. There is also a persistent rescan
Theodore Ts'o006ea712000-08-21 03:39:49 +00005118feature which causes badblocks to run until it has completed some
5119number of passes without discovering any new bad blocks.
Theodore Ts'oab146762000-07-07 04:37:35 +00005120
5121Badblocks now checks to see if the device is mounted and refuses to do
5122the tests involving writing to the device if it is mounted. Also,
5123badblocks now allows the number of blocks to be checked to be
5124defaulted to the size of the partition.
5125
5126Fixed a bug in fsck which didn't allow non-root users to be able to
5127check filesystems if there were any LABEL= or UUID= entries in
5128/etc/fstab.
5129
5130The Hurd doesn't support the filetype filesystem feature. The mke2fs
5131program now makes sure that for the Hurd, the filestype feature is
5132turned off. E2fsck will check to see if the filetype feature is
5133turned on for Hurd filesystems, and offer to turn off the feature.
5134
5135Mke2fs now has a safety check to make sure the number of blocks do not
5136exceed 32 bits even on a 64 bit platform.
5137
5138Really fixed a bug in fsck to allow "fsck -As" to run interactive
5139fsck's. (For those people who like to do interactive fsck's in the
5140/etc/rc scripts!?!)
5141
5142Debugfs has a few new features: the rdump command, which will do a
5143recursive dump of a directory and all of its contents, and the lcd
5144command which does a local chdir (much like the ftp command of the
5145same name). In addition, the debugfs program and the open_filesystem
5146command now takes three new options: -b and -s, which allows the
5147blocksize and superblock location to be specified, and the -c option
5148which is used in catastrophic situations where the block group
5149descriptors are corrupt. If the -c option is specified, debugfs will
5150skip trying to read in the block and inode bitmaps.
5151
5152Debufs's lsdel command was fixed to handle bad blocks in the inode
5153table.
5154
5155A Y2K bug in debugfs's "ls -l" handling was fixed by switching to use
51564 digit years.
5157
5158General improvements in error messages
5159
5160 - Mke2fs prints a sane error message if the partition size is zero
5161 (usually because the partition table wasn't reread by the
5162 kernel due to the partition being busy), instead of "invalid
5163 argument passed to ext2 library while initializing superblock".
5164
5165 - Fsck now prints more self-explanatory message if an invalid UUID=
5166 or LABEL= specification is passed to it.
5167
5168UUID library changed to use the LGPL.
5169
5170Fixed a bug in the UUID library where very rapid calls to the
5171time-based UUID generator could cause duplicate UUID's to be returned.
5172This was not a problem for e2fsprogs, but it could be a problem for
5173other users of the library.
5174
5175Make the UUID library more robust in the face of missing or an
5176improper /dev/urandom or /dev/random files.
5177
5178Added some random portability fixes for Solaris.
5179
5180Some minor man page updates.
5181
5182Fixed a memory leak in the ss library.
5183
5184
5185Programmer's notes:
5186-------------------
5187
5188We now try to use lseek64 and open64 from the LFS if possible.
5189
5190The 3rd parameter in e2p's print_flags is now a flags word, instead of
5191a boolean option.
5192
5193The mark and unmark bitmap functions now return the previous state of
5194the bit that was being changed, which is useful for some speed
5195optimizations.
5196
5197The following functions have been added to enhance the badblocks list
5198handling in libext2fs: ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and
5199ext2fs_badblocks_equal.
5200
5201The ext2 header files now have the latest journalling fields to the
5202superblock.
5203
5204The ext2fs_mkdir function in libext2fs now properly backs out of error
5205conditions robustly.
5206
5207Cleaned up makefiles:
5208 - to cleanly compile with the -j flag.
5209 - so distclean removes all generated files.
5210 - so in case of an error while installing header files, the make aborts.
5211
5212Fix test_script so that it works correctly when compiling in the
5213source directory.
5214
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +00005215The random UUID generation routine has been made slightly better in
5216the case where /dev/random doesn't exist. (Use of randomly-based UUID
5217is still not recommended if /dev/random doesn't exist, however; it's
5218better to use the time/ethernet MAC address UUID in this case.)
Theodore Ts'oab146762000-07-07 04:37:35 +00005219
5220Clean up the build process so it's more friendly in case of missing
5221directories.
5222
5223The ext2fs header file can now be #include'd into C++ programs.
5224
5225The e2p.h header file is now installed.
5226
5227Added workaround to a gawk 3.0.5 bug in lib/ss/mk_cmds.
5228
5229
5230
Theodore Ts'o24ded091999-11-10 15:56:16 +00005231E2fsprogs 1.18 (November 10, 1999)
5232==================================
5233
5234Fix a core dumping bug in e2fsck if an imagic inode is present or
5235(more rarely) if the filesystem is badly corrupted enough that e2fsck
5236has to restart pass 1 processing. E2fsck now closes the filesystem
5237before freeing a large number of its data structures, so in the case
5238of future memory faults, at least the fixed filesystem will be fully
5239written out.
5240
5241If a filesystem doesn't support imagic inodes, and e2fsck discovers an
5242imagic inode, it will offer to clear the imagic flag.
5243
5244E2fsck will now offer to clear the immutable flag on special files
5245(device/socket/fifos) when running it in non-preen mode.
5246
5247E2fsck will now set the filetype when creating /lost+found, and when
5248connected orphaned inodes to /lost+found.
5249
5250Debugfs's ncheck and icheck commands now handles the case where there
5251are bad blocks in the inode table without bombing out.
5252
5253The badblocks list processing code has been made more efficiently for
5254appending a large number of (ordered) badblocks to the badblocks list.
5255
5256Some minor man page updates.
5257
5258Fsck now allows interactive e2fsck's when using fsck -As (not a common
5259mode, but some people like to do this in boot scripts for silly reasons).
5260
5261Programmer's notes:
5262-------------------
5263
5264The internal e2fsck problem code for PR_2_SPLIT_DOT was fixed to meet
5265with the problem code convention.
5266
5267The badblocks list regression test program has been updated to work
5268with previously made API name changes.
5269
5270The ext2fs_free() command now uses the new badblocks API to avoid
5271using the compatibility layer.
5272
5273Added new regression test cases; the run_e2fsck test script now
5274supports the ability for a test case to run a prepratory command
5275before running e2fsck.
5276
Theodore Ts'o28e11941999-10-26 18:17:20 +00005277E2fsprogs 1.17 (October 26, 1999)
5278=================================
5279
5280Fixed nasty typo in fsck which caused parallelized fsck's to go into an
5281infinite loop.
5282
5283Fixed a bug in fsck where it used strncmp to compare a binary UUID,
5284thus potentially causing problems if a binary UUID contained a NULL
5285character.
5286
5287E2fsck now uses stricter checks for directory entries in pass 2:
5288zero-length filenames are not allowed; neither are 8 byte long
5289directory entries.
5290
5291The debugfs "dirty" command now clears the filesystem valid bit.
5292(Previously this just set the dirty-as-in-needs-writing-out-to-disk
5293bit in the in-core superblock image. The new functionality is more
5294what the user expects, and is more useful.)
5295
5296Added a debugging hook to test parallel fsck; if the environment
5297variable FSCK_FORCE_ALL_PARALLEL, then filesystems on the same drive
5298will be checked in parallel when they normally would not be.
5299
5300Programmer's notes:
5301-------------------
5302
5303Fixed some #ifdef's for compilation under the Hurd OS.
5304
5305Fixed minor W2K compatibility problems.
5306
5307Fixed some miscellaneous GCC warnings.
5308
5309
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00005310E2fsprogs 1.16 (October 22, 1999)
5311=================================
5312
5313Fixed a race condition bug in fsck; when printing a progress bar, if
5314checking multiple filesystems in parallel, it was possible for fsck to
5315send e2fsck a SIGUSR1 signal before e2fsck had installed its signal
5316handler, which would cause it to terminate with a signal 10.
5317
5318E2fsck now properly handles filesystems that have the
5319INCOMPAT_FILETYPE feature turned on. It can be used to convert a
5320filesystem into using or not using FILETYPE feature.
5321
5322E2fsck now properly handles filesystems that have the IMAGIC feature
5323turned on (this is used on Linux AFS servers).
5324
5325The mke2fs program now creates filesystems that have the filetype and
5326sparse_superblock features enabled by default, unless it is run on a
5327pre-2.2 kernel. These features are not supported by a pre-2.2 kernel,
5328so there is now a new flag -O which allows the user to specify with
5329which features she would like to create the filesystem; "mke2fs -O
5330none" will create a filesystsem compatible with 2.0 kernels.
5331
5332The tune2fs program now has a -O option which allows the user to set
5333and reset "safe" filesystem features. Currently, the only ones which
5334allows to be modified are the filetype and sparse_superblock features.
5335Note setting or clearing either feature will require running e2fsck on
5336the filesystem afterwards. (n.b. Clearing the sparse_superblock feature
5337requires that there is enough free space on the filesystem for the
5338extra superblocks which will be created by e2fsck.)
5339
5340Debugfs can now set and print filesystem features in the superblock
5341using the "features" command. Dumpe2fs will print out the complete
5342set of features when listing the superblock.
5343
5344Dumpe2fs has new options -f (force) and -h (header-only).
5345
5346Fixed a bug in e2fsck which could cause the PROGRAMMING ERROR/bonehead
5347message to come up. This could happen when decrementing or
5348incrementing a link count could result in an overflow.
5349
5350Fixed a bug in e2fsck where the block count on the lost+found
5351directory would not be properly incremented when the directory was
5352expanded to the point where an indirect block needed to be allocated.
5353
5354E2fsck now makes some additional sanity checks on the superblock to
5355avoid crashing or giving a memory allocation error if some of the
5356values in the superblock are unresonable (but the superblock otherwise
5357looks valid).
5358
5359Fixed a bug in e2fsck where a very badly corrupted filesystem might
5360require two passes to completely fix the filesystem. This happened if
5361an inode claimed blocks that was part of the filesystem metadata
5362(typically, when garbage was written into an inode table or indirect
5363block, since this kind of filesystem corruption normally doesn't
5364happen otherwise).
5365
5366On the Alpha, glibc declares st_flags although it isn't actually used;
5367the configure script was improved to detect this case so that
5368e2fsprogs can avoid using the non-functional stat field.
5369
5370The manual pages were updated to use a more consistent formatting
5371style consistent with standard Unix man pages. Mke2fs's man page
5372added documentation for a few previously undocumented options.
5373
5374Fixed minor display bugs in tune2fs and mke2fs.
5375
5376Programmer's notes:
5377-------------------
5378
5379Improved portability of e2fsprogs to non-Unix systems (in particular, NT).
5380
5381Added features to parse and print feature strings into the e2p library.
5382(e2p_feature2string, e2p_string2feature, e2p_edit_feature).
5383
5384ext2fs_mkdir() and ext2fs_new_dir_block() now creates directories
5385whose directory entries contain proper filetype information if the
5386filesystem supports it.
5387
5388ext2fs_link() now uses the low 3 bits of its flags parameter to pass
5389the directory entry filetype information. This is used to set the
5390directory entry filetype information if the filesystem supports it.
5391
5392Fixed a bug in ext2fs_expand_dir() where the block count in a
5393directory's inode would not be properly incremented when the directory
5394was expanded to the point where an indirect block needed to be
5395allocated.
5396
5397
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +00005398E2fsprogs 1.15 (July 18, 1999)
Theodore Ts'oe2a99be1999-07-19 15:48:08 +00005399==============================
Theodore Ts'o6d53db31999-07-03 20:52:21 +00005400
5401Add configuration checks so that e2fsprogs will compile cleanly on
5402Linux 2.3 kernels that have renamed i_version to i_generation.
5403
Theodore Ts'oe2a99be1999-07-19 15:48:08 +00005404E2fsck now prints a progress/completion bar (and not just a simple
5405spinner) if the -C0 option is requested or if it receives a SIGUSR1
5406signal. Fsck will automatically manage the (potentially muliple)
5407e2fsck processes to print completion bars if it is given a -C option,
5408with the right thing happening if multiple filesystems are being
5409checked in parallel.
5410
5411Mke2fs now has better automatic hueristics to determine the filesystem
5412parameters to be used for a particular filesystem. Added a new option
5413-T which allows the user to specify how the filesystem is to be used,
5414which helps mke2fs do a better job selecting the filesystem parameters.
5415
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +00005416Mke2fs now creates revision 1 filesystems by default, and with the
5417sparse superblock feature enabled. The sparse superblock feature is
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +00005418not understood by Linux 2.0 kernels, so they will only allow read-only
5419mounts of filesystems with this sparse superblocks.
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +00005420
Theodore Ts'o6d53db31999-07-03 20:52:21 +00005421Fix bug where if /dev/null couldn't be opened (should never happen),
5422e2fsck would hang in a tight loop.
5423
5424Make e2fsck handle the case where /lost+found isn't a directory.
5425
5426E2fsck now uses mallinfo if it exists to get accurate statistics about
5427its memory usage.
5428
5429Fix bug in e2fsck where it wouldn't check to see if a disconnected
5430inode had any problems before connecting it to /lost+found.
5431
5432Add check to e2fsck so it makes sure that total number of inodes in
5433the filesystem is a sane number.
5434
5435Fix fencepost error when clearing an the end of the block bitmap which
5436caused the last block in the bitmap not to get cleared.
5437
5438Cleaned up a number of messages in e2fsck:
5439 * The message "Group's #'s copy of the group descriptor..."
5440 was fixed so that the correct number would be displayed.
5441 * Added missing space in the "disk write-protected" error messsage
5442 * Cleaned up the error message printed when a non-interactive
5443 e2fsck needs to abort a check because the filesystem
5444 appears to be mounted.
5445
5446Added a new command-line utility, uuidgen, which will create and print
5447a UUID.
5448
5449Make debugfs's icheck command more robust by checking to make sure an
5450inode has valid blocks before interarting over the inode's blocks.
5451
5452UUID generation now uses a random-based scheme whenever possible to
5453prevent potential privacy problems.
5454
5455Man pages for all of the UUID functions in the lirbary were added.
5456
5457Fixed bug in fsck so it won't coredump if a filesystem not in
5458/etc/fstab is given to it.
5459
5460Fsck now understands the UUID=xxxx and LABEL=yyyy forms in /etc/fstab
5461that most of the other mount utilities understands.
5462
5463Mke2fs will make a filesystem even if it appears mounted if the force
5464option is given.
5465
5466Dumpe2fs has new command-line options which allow a filesystem expert
5467to specify the superblock and blocksize when opening a filesystem.
5468This is mainly useful when examining the remains of a toasted
5469filesystem.
5470
5471The badblocks program has been updated to display correctly on disks
5472with large block numbers.
5473
Theodore Ts'oe2a99be1999-07-19 15:48:08 +00005474The badblocks program no longer gives spurious errors when errors
5475occur on non-block boundaries, which is common if the blocksize is
5476larger than 1k.
5477
Theodore Ts'o6d53db31999-07-03 20:52:21 +00005478Mke2fs will sync the disk device every MKE2FS_SYNC block groups if the
5479MKE2FS_SYNC environment variable is set. This is to work around a VM
5480bug in the 2.0 kernel. I've heard a report that a RAID user was able
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +00005481to trigger it even using a 2.2 kernel, but hopefully it will not be
5482needed for most Linux 2.2 users.
Theodore Ts'o6d53db31999-07-03 20:52:21 +00005483
5484Fixed miscellaneous documentation and man pages.
5485
5486Programmer's notes:
5487-------------------
5488
5489Cleaned up functions such as pass1_get_blocks, pass1_read_inode which
5490in e2fsck's pass1.c really should have been static.
5491
5492The return value of the uuid_compare() function was changed to make it
5493match with the convetions used by strcmp, memcmp, and Paul Leach's
5494UUID sample document.
5495
5496The "make depend" process has now been made more automated; it now
5497automatically word-wraps the dependencies, and only replaces source
5498Makefile.in if there has been a change in the dependencies. Also, a
5499top-level "make depend" now recurses through all the subdirectories
5500automatically.
5501
5502The Makefile in .../util has been changed so that subst is built using
5503the native C compiler during a cross-compilation, since the subst
5504program is only used during the build process. Also add an explicit
5505rule to build util/subst by cd'ing to the correct directory and
5506running Makefile.
5507
5508The man directories are defined in terms mandir, so that the configure
5509script can override the location of the manual pages.
5510
5511The config files have been updated to recognize new machine types for
5512both the i386 and alpha families.
5513
5514Fsck has been modified so that it will accurately create an
5515fsck_instance even when the noexecute flag is set. This allows for
5516accurate debugging of the fsck pass structure. Also, when the verbose
5517flag is given twice, fsck will print debugging information about when
5518fsck is waiting for jobs to finish.
5519
5520
Theodore Ts'o14790ed1999-01-12 23:32:52 +00005521E2fsprogs 1.14 (January 9, 1999)
5522================================
5523
5524Fix the fstab parsing code so that it can handle blank lines and
5525comment characters. Also, missing pass numbers need to be treated as
5526zero.
5527
5528Fixed a bug in e2fsck where under some circumstances (when e2fsck
5529needs to restart processing after fixing an egregious inconsistency)
5530it would try to access already freed memory.
5531
5532E2fsck now prints non-printable characters in directory entries and
5533pathnames using '^' and 'M-' notation.
5534
5535Fixed chattr so that it will ignore symbolic links when doing
5536recursive descent traversals. For both chattr and lsattr, no longer
5537print the version string unless the -V option is given.
5538
5539Allow the system administrator to directly specify the number of
5540inodes desired in the filesystem, for some special cases where this is
5541necessary.
5542
5543Fix portability problems so that e2fsprogs can be compiled under Linux
55441.2 systems and Solaris systems.
5545
5546Update the config.guess file with a more recent version that will
5547identify newer Linux platforms.
5548
5549Programmer's notes
5550------------------
5551
5552Ext2fs_read_inode and ext2fs_write_inode will now return an error if
5553an inode number of zero is passed to them.
5554
Theodore Ts'o556ad131998-12-19 08:10:58 +00005555E2fsprogs 1.13 (December 15, 1998)
5556==================================
5557
5558Fixed a bug in debugfs where an error messages weren't getting printed
5559when the ext2 library routines to read inodes returned errors in the
5560stat, cmri and rm commands.
5561
5562Fixed a bug in mke2fs so that if a ridiculous inode ratio parameter is
5563provided, it won't create an inode table smaller than the minimum
5564number of inodes required for a proper ext2 filesystem.
5565
5566Fsck now parses the /etc/fstab file directly (instead of using
5567getmntent()), so that it can distinguish between a missing pass number
5568field and pass number field of zero. This caused problems for
5569diskless workstations where all of the filesystems in /etc/fstab have
5570an explicit pass number of zero, and fsck could not distinguish this
5571from a /etc/fstab file with missing pass numbers.
5572
5573E2fsck will create a /lost+found directory if there isn't one in the
5574filesystem, since it's safer to create the lost+found directory before
5575it's needed.
5576
5577Fixed e2fsck so that it would detect bogus immutable inodes which
5578happen to be sockets and FIFO files, and offer to clear them.
5579
5580If a filesystem has multiple reasons why it needs to be checked, and
5581one of the reasons is that it is uncleanly mounted, e2fsck will print
5582that as the reason why the filesystem is being checked.
5583
5584Cleaned up the output routines of mke2fs so that it doesn't overflow
5585an 80 column display when formating really big filesystems.
5586
5587Added a sanity check to e2fsck to make sure that file descriptors 0,
55881, 2 are open before opening the hard disk. This avoids a problem
5589where a broken program might exec e2fsck with those file descriptors
5590closed, which would cause disastrous results if the kernel returns a
5591file descriptor for the block device which is also used by FILE *
5592stdout.
5593
5594Fixed up the e2fsck progress reporting functions so that the values
5595reliably reach 100% at the completion of all of the e2fsck passes.
5596
5597Fixed minor documentation bugs in man pages and usage messages.
5598
5599Programmer's notes:
5600-------------------
5601
5602Fixed a number of lint warnings in the ext2fs library and potential
5603portability problems from other OS's header files that might define
5604CPP macros for names like "max" and "min".
5605
5606ext2fs_badblocks_list_add() has been made more efficient when it needs
5607to grow the bad blocks list.
5608
5609Fixed a bug in e2fsck which caused it to dereference a freed pointer
5610just before exiting.
5611
5612Fixed the substition process for generating the mk_cmds and compile_et
5613scripts so that they will work outside of the build tree.
5614
5615Add sanity check to e2fsck so that if an internal routine
5616(ext2fs_get_dir_info) returns NULL, avoid dereferencing the pointer
5617and causing a core dump. This should never happen, but...
5618
Theodore Ts'oa5696711998-07-09 05:38:07 +00005619E2fsprogs 1.12 (July 9, 1998)
Theodore Ts'o21d53851998-02-21 03:14:50 +00005620==================================
5621
5622E2fsprogs now works with glibc (at least with the version shipped wtih
5623RedHat 5.0). The ext2fs_llseek() function should now work even with
5624i386 ELF shared libraries and if llseek() is not present. We also
5625explicitly do a configure test to see if (a) llseek is in libc, and
5626(b) if llseek is declared in the system header files. (See standard
5627complaints about libc developers don't understand the concept of
5628compatibility with previous versions of libc.)
5629
Theodore Ts'oc9833a61998-07-05 19:37:53 +00005630The ext2fs library now writes out the block group number in each of
5631the superblock copies. This makes it easier to automatically
5632determine the starting block group of the filesystem when the block
5633group information is trashed.
5634
5635Added support for the EXT2_FEATURE_INCOMPAT_FILETYPE feature,
Theodore Ts'o101c84f1998-03-24 16:27:11 +00005636which means that e2fsprogs will ignore the high 8 bits of the
5637directory entry's name_len field, so that it can be used for other
5638purposes.
5639
5640Added support for the EXT2_FEATURE_RO_COMPAT_LARGE_FILE feature.
5641E2fsprogs will now support filesystems with 64-bit sized files.
5642
5643Added support for the EXT2_FEATURE_COMPAT_DIR_PREALLOC feature.
5644
Theodore Ts'o21d53851998-02-21 03:14:50 +00005645Added new program "e2label", contributed by Andries Brouwer. E2label
5646provides an easy-to-use interface to modify the filesystem label.
5647
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005648Fixed bug so that lsattr -v works instead of producing a core dump.
5649
Theodore Ts'o21d53851998-02-21 03:14:50 +00005650Fixed a minor bug in mke2fs so that all groups with bad superblock
5651backup blocks are printed (not just the first one).
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00005652
5653Mke2fs will check the size of the device, and if the user specifies a
5654filesystem size larger than the apparent size of the device it will
5655print a warning message and ask if the user wants to proceed.
5656
Theodore Ts'oc9833a61998-07-05 19:37:53 +00005657E2fsck has a new option -C, which sends completion information to the
5658specified file descriptor. For the most part, this is intended for
5659programs to use, although -C 0 will print a spinning character to the
5660stdout device, which may be useful for users who want to see something
5661happening while e2fsck goes about its business.
5662
Theodore Ts'o21d53851998-02-21 03:14:50 +00005663Fixed a bug in e2fsck which could cause a core dump when it needs to
5664expand the /lost+found directory, and sometimes the bitmaps haven't
5665been merged in. Also fixed a related bug where ext2fs_write_dir_block
5666was used to write out a non-directory block. (Which would be bad on a
5667non-Intel platform with byte swapping going on.)
5668
5669Fixed bug in e2fsck where it would print a "programming error" message
5670instead of correctly identifying where a bad block was in used when
5671the bad block was in a non-primary superblock or block group
5672descriptor. Also fixed a related bug when sparse superblocks are in
5673use and there is a bad block where a superblock or block group
5674descriptor would have been in a group that doesn't include a
5675superblock.
5676
5677Fixed a bug in e2fsck (really in libext2fs's dblist function) where if
5678the block group descriptor table is corrupt, it was possible to try to
5679allocate a huge array, fail, and then abort e2fsck.
5680ext2fs_get_num_dirs() now sanity checks the block group descriptor,
5681and subsitutes reasonable values if the descriptors are obviously bogus.
5682
5683If e2fsck finds a device file which has the immutable flag set and the
5684i_blocks beyond the normal device number are non-zero, e2fsck will
5685offer to remove it, since it's probably caused by garbage in the inode
5686table.
5687
5688When opening a filesystem, e2fsck specially checks for the EROFS error
5689code, and prints a specific error message to the user which is more
5690user friendly.
5691
5692If the filesystem revision is too high, change the e2fsck to print
5693that this is either because e2fsck is out of date, or because the
5694superblock is corrupt.
5695
5696E2fsck now checks for directories that have duplicate '.' and '..'
5697entries, and fixes this corruption.
5698
5699E2fsck no longer forces a sync of the filesystem (with attendant sleep
5700calls) at all times. The ext2fs_flush() function now performs a sync
5701only if it needed to write data blocks to disk.
5702
5703Fixed a minor bug in e2fsck's pass1b's file cloning function, where
5704certain errors would not be properly reported.
5705
5706Updated and expanded a few points in the man pages which users
5707complained wheren't explicit enough.
5708
5709Added special case byte-swapping code if compiling on the PowerPC, to
5710accomodate the strange big-endian variant of the ext2 filesystem that
5711was previously used on the PowerPC port.
5712
5713
5714Programmer's notes:
5715-------------------
5716
5717Removed C++ keywords from the ext2fs libraries so that it could be
5718compiled with C++.
5719
5720E2fsck's internal organization has now been massively reorganized so
5721that pass*.c don't have any printf statements. Instead, all problems
5722are reported through the fix_problem() abstraction interface. E2fsck
5723has also been revamped so that it can be called as a library from a
5724application.
5725
5726Added new fileio primitives in libext2fs for reading and writing
5727files on an unmounted ext2 filesystem. This interface is now used by
5728debugfs.
5729
5730Added a new libext2fs function for mapping logical block numbers of
5731a file to a physical block number.
5732
5733Added a new libext2fs function, ext2fs_alloc_block(), which allocates
5734a block, zeros it, and updates the filesystem accounting records
5735appropriately.
5736
5737Added a new libext2fs function, ext2fs_set_bitmap_padding(), which
5738sets the padding of the bitmap to be all one's. Used by e2fsck pass 5.
5739
5740The libext2fs functions now use a set of memory allocation wrapper
5741functions: ext2fs_get_mem, ext2fs_free_mem, and ext2fs_resize_mem,
5742instead of malloc, free, and resize. This makes it easier for us to
5743be ported to strange environments where malloc, et. al. aren't
5744necessarily available.
5745
5746Change the libext2fs fucntion to return ext2-specific error codes
5747(EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND, for example) instead of using
5748and depending on the existence of system error codes (such as EEXIST
5749and ENOENT).
5750
5751Renamed io.h to ext2_io.h to avoid collision with other OS's header
5752files.
5753
5754Add protection against ext2_io.h and ext2fs.h being included multiple
5755times.
5756
5757The types used for memory lengths, etc. have been made more portable.
5758In generla, the code has been made 16-bit safe. Added Mark
5759Habersack's contributed DOS disk i/o routines.
5760
5761Miscellaneous portability fixes, including not depending on char's
5762being signed.
5763
5764The io_channel structure has a new element, app_data, which is
5765initialized by the ext2fs routines to contain a copy of the filesystem
5766handle.
5767
5768ext2fs_check_directory()'s callback function may now return the error
5769EXT2_ET_CALLBACK_NOTHANDLED if it wishes ext2fs_check_directory() to
5770really do the checking, despite the presence of the callback function.
5771
5772
Theodore Ts'obc210071997-06-17 05:41:36 +00005773E2fsprosg 1.11 (June 17, 1997)
5774==============================
5775
5776Fixed e2fsck to detect (previously ignored) conflicts between the
5777superblock or block group descriptors and block bitmaps, inode
5778bitmaps, and inode tables.
5779
5780Fixed bug in e2fsck so that when the message printed out when a block
5781or inode bitmap conflicts with other data, it has the correct group
5782number.
5783
5784Fixed bug in e2fsck and mke2fs where the blocksize wasn't being passed
5785to badblocks. This meant that not all of the filesystem was being
5786tested for bad blocks!
5787
5788Fixed an array boundary overrun case which cropped up in
5789ext2fs_badblocks_list_test when a user tried running "mke2fs -c
5790-b 4096".
5791
5792Adjusted the number of columns printed by mke2fs when displaying the
5793superblock backups to avoid running over 80 columns when making a
Theodore Ts'o21d53851998-02-21 03:14:50 +00005794really big filesystem.
Theodore Ts'obc210071997-06-17 05:41:36 +00005795
5796Fixed up the man pages for e2fsck, debugfs, badblocks, chattr,
5797dumpe2fs, fsck, mke2fs, and tune2fs (typos and other minor grammar
5798fixes), thanks to some suggestions from Bill Hawes (whawes@star.net).
5799
5800Programmer's notes:
5801-------------------
5802
5803Fixed install rule in lib/ss so that ss_err.h is actually getting
5804installed.
5805
5806Fixed bug in ext2fs_copy_bitmap; the destination bitmap wasn't getting
5807bassed back to the caller.
5808
5809Fixed bug in ext2fs_inode_scan_goto_blockgroup; it had not been
5810setting the current inode number (which meant this function wasn't
5811working at all).
5812
5813Fixed bug in ext2fs_resize_generic_bitmap; it had not be zeroing all
5814blocks in the bitmap when increasing the size of the bitmap.
5815
5816Changed the initial number of blocks allocated by ext2fs_init_dblist()
5817to be more realistic.
5818
5819Added a new function ext2fs_allocate_group_table, which sets up the
5820group descriptor information (and allocates inode and block bitmaps,
5821and inode tables for a particular group). The function was created by
5822factoring out code form ext2fs_allocate_tables().
5823
5824Added a new function ext2fs_move_blocks which takes a bitmap of the
5825blocks to be moved, and moves them to another location on the
5826boardboard.
5827
5828Make the unix_io channel's io_channel_flush implementation calls sync()
5829to to flush the kernel buffers to disk.
5830
5831Added a new function ext2fs_dblist_count returns the number of
5832directory blocks in dblist.
5833
5834
Theodore Ts'oae851481997-04-29 18:13:24 +00005835E2fsprogs 1.10 (April 24, 1997)
5836===============================
5837
5838Mke2fs once again defaults to creating revision #0 filesystems, since
5839people were complaining about breaking compatibility with 1.2 kernels.
5840Warning messages were added to the mke2fs and tune2fs man pages that
5841the sparse superblock option isn't supported by most kernels yet (1.2
5842and 2.0 both don't support parse superblocks.)
5843
5844Added new flag to mke2fs, -R <raid options>, which allows the user to
5845tell mke2fs about the RAID configuration of the filesystem. Currently
5846the only supported raid option is "stride" which specifies the width
5847of the RAID stripe.
5848
5849Fixed bug in e2fsck where pass1b would bomb out if there were any
5850blocks marked bad in the inode table.
5851
5852Fixed rare bug in mke2fs where if the user had a very unlucky number
5853of blocks in a filesystem (probability less than .002) the resulting
5854filesystem would be corrupt in the last block group.
5855
5856Fixed bug where if e2fsck tried to allocate a block to fix a
5857filesystem corruption problem and the filesystem had no free blocks,
5858ext2fs_new_block() would loop forever.
5859
5860The configure script now checks explicitly to see if "-static" works,
5861since that can't be assumed to be true --- RedHat doesn't install
5862libc-static by default.
5863
5864Fixed bug in libext2's block iterator functions where under some
5865cirmcustances, file with holes would cause the bcount parameter to the
5866callback function to be incorrect. This bug didn't affect any of
5867e2fsprogs programs, but it was discovered by Paul Mackerras, the
5868author of the PPC boot loader.
5869
5870Removed use of static variables to store the inode cache in libext2fs.
5871This caused problems if more than one filesystem was accessed via
5872libext2fs (static variables in libraries are generally a bad idea).
5873Again, this didn't affect e2fsprogs programs, but it was discovered by
5874Paul Mackerras.
5875
5876Fixed minor bugs and version code drift to assure that e2fsprogs 1.10
5877will compile cleanly with 1.2.13 kernels (even with a.out shared
5878libraries!)
5879
5880Programmer's notes:
5881-------------------
5882
5883Added new functions to duplicate an ext2 filesystem handle, and its
5884associated substructure. New functions: ext2fs_dup_handle(),
5885ext2fs_copy_dblist(), ext2fs_badblocks_copy(), ext2fs_copy_bitmap().
5886Other structures, such as the io_channel and the inode_cache, now have
5887a ref count so that they only get freed when they are no longer used
5888by any filesystem handle. (These functions were added as part of the
5889development effort for an ext2 resizer).
5890
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +00005891E2fsprogs 1.09 (April 14, 1997)
5892===============================
5893
5894Fixed bug in mke2fs (really in lib/ext2fs/initialize.c) which was
5895accidentally introduced in the 1.08 release. The overhead calculation
5896was accidentally removed, which caused ext2fs_initialize() to not
5897notice when the filesystem size needed to be adjusted down because
5898there wasn't enough space in the last block group.
5899
5900Fixed bug in version parsing library routine; it was always parsing
5901the library version string, instead of using the passed-in string.
5902
5903Clarified chattr man page.
5904
Theodore Ts'o24757fa1997-04-29 17:39:27 +00005905E2fsprogs 1.08 (April 10, 1997)
5906===============================
5907
5908E2fsck 1.07 was very slow when checking very large filesystems with a
5909lot of files that had hard links (i.e., news spools). This was fixed
5910by seriously revamping the icount abstraction. Added a formal test
5911suite for the icount abstraction.
5912
5913Debugfs now has a "-l" option to the "ls" command, which lists the
5914inode number, permissions, owner, group, size, and name of the files
5915in the directory.
5916
5917Fix a bug in e2fsck where when a directory had its blocks moved to
5918another location during the pass 1b processing, the directory block
5919list wasn't updated, so pass 2 wouldn't check (and correct) the
5920correct directory block.
5921
5922E2fsck will now treat inodes which contain blocks which are claimed by
5923the filesystem metadata by treating them as multiply claimed blocks.
5924This way, the data in those blocks can be copied to a new block during
5925the pass 1b--1d processing.
5926
5927E2fsck will attempt to determine the correct superblock number and
5928display it in the diagnostic and warning messages if possible.
5929
5930Add support for a new (incompatible) feature, "sparse_super". This
5931feature reduces the number of blocks which contain copies of backup
5932superblocks and block group descriptors. (It is only an incompatible
5933feature because of a bug in ext2_free_blocks.) mke2fs and tune2fs now
5934support a new -s option; e2fsck will recognize filesystems built with
5935this feature turned on.
5936
5937E2fsck now checks the library to make sure is the correct version,
5938using new library functions. (This helps to diagnose incorrectly
5939installed e2fsprogs distributions.)
5940
5941Dumpe2fs now prints more information; its now prints the the
5942filesystem revision number, the filesystem sparse_super feature (if
5943present), the block ranges for each block group, and the offset from
5944the beginning of the block group.
5945
5946Mke2fs now distributes the inode and block bitmap blok so that the
5947won't be concentrated in one or two disks in RAID/striping setups.
5948Also, if the user chooses a 2k or 4k block group, mke2fs will try to
5949choose the largest blocks per group that be chosen. (For 2k blocks,
5950you can have up to 16384 blocks/group; for 4k blocks, you can have up
5951to 32768 blocks/group.) Previously mke2fs would not allow
5952specification of more than 8192 blocks per group, even if you were
5953using a 2k or 4k block group.
5954
5955Programmer's notes:
5956-------------------
5957
5958Added a new function ext2fs_create_icount2() which takes a "hint"
5959argument. This hint argument presets the icount array with the list
5960of inodes which actually need to be in the icount array. This really
5961helps to speed up e2fsck.
5962
5963Added a new function ext2fs_icount_validate() which checks the rep
5964invariant for the icount structure. This is used mostly for testing.
5965
5966The error mesasage given when a bad inode number is passed to
5967test_generic_bitmap to reflect EXT2FS_TEST_ERROR (instead of
5968EXT2FS_UNMARK_ERROR).
5969
5970Added a new function ext2fs_set_dir_block which sets the block of a
5971dblist entry, given the directory inode and blockcnt.
5972
5973Added a new function ext2fs_get_library_version() which returns the
5974current library version, and ext2fs_parse_version_string() which
5975returns a version number based on a e2fsprogs version string.
5976
5977The icount functions will return EINVAL if the passed in inode number
5978is out of bounds.
5979
Theodore Ts'o21c84b71997-04-29 16:15:03 +00005980E2fsprogs 1.07 (March 9, 1997)
5981==============================
5982
5983E2fsck is now uses much less memory when checking really large
5984filesystems (or rather, filesystems with a large number of inodes).
5985Previously a filesystem with 1 million inodes required 4 megabytes of
5986memory to store inode count statistics; that storage requirement has
5987now been reduced to roughly half a megabyte.
5988
5989E2fsck can now properly deal with bad blocks appearing inside the
5990inode table. Instead of trying to relocate the inode table (which
5991often failed because there wasn't enough space), the inodes in the bad
5992block are marked as in use.
5993
5994E2fsck will automatically try to use the backup superblocks if the
5995primary superblocks have a bad magic number or have missing meta-data
5996blocks (or meta-data blocks which are out of range).
5997
5998E2fsck's pass 3 has been made more efficient; most noticeable on
5999filesystems with a very large number of directories.
6000
6001Completely revamped e2fsck's system of printing problem reports. It
6002is now table driven, to make them more easily customizeable and
6003extendable. Error messages which can be printed out during preen mode
6004are now one line long.
6005
6006Fixed e2fsck's filesystem swapping code so that it won't try to swap
6007fast symbolic links or deleted files.
6008
6009Fixed e2fsck core dumping when fixing a filesystem which has no
6010directories (not even a root directory).
6011
6012Added a check to e2fsck to make sure that the length of every
6013directory entry is a multiple of 4 (since the kernel complains if it
6014isn't).
6015
6016Added a check to e2fsck to make sure that a directory entry isn't a
6017link to the root directory, since that isn't allowed.
6018
6019Added a check to e2fsk to now make sure the '.' and '..' directory
6020entries are null terminated, since the 2.0 kernel requires it.
6021
6022Added check to write_bitmaps() to make sure the superblock doesn't get
6023trashed if the inode or block bitmap is marked as being block zero.
6024
6025Added checking of the new feature set fields in the superblock, to
6026avoid dealing with new filesystem features that this package wasn't
6027set up to handle.
6028
6029Fixed a fencepost error in ext2fs_new_block() which would occasionally
6030try to allocate a block beyond the end of a filesystem.
6031
6032When the UUID library picks a random IEEE 802 address (because it
6033can't find one from a network card), it sets the multicast bit, to
6034avoid conflicting with a legitimate IEEE 802 address.
6035
6036Mke2fs now sets the root directory's owner to be the real uid of the
6037user running mke2fs. If the real uid is non-zero, it also sets
6038the group ownership of the root directory to be the real group-id of
6039the user running mke2fs.
6040
6041Mke2fs now has more intelligent error checking when it is given a
6042non-existent device.
6043
6044When badblocks is given the -vv option, it now updates the block that
6045it is currently testing on every block.
6046
6047Fixed a bug in fsck where it wouldn't modify the PATH envirnoment
6048currently correctly if PATH wasn't already set.
6049
6050Shared libraries now built with dependencies. This allows the shared
6051library files to be used with dlopen(); it also makes the transition
6052to libc 6 easier, since ld.so can tell which libc a particular shared
6053library expects to use.
6054
6055Programmer's notes:
6056-------------------
6057
6058Added new abstraction (defined in dblist.c) for maintaining a list of
6059blocks which belongs to directories. This is used in e2fsck and other
6060programs which need to iterate over all directories.
6061
6062Added new functions which test to see if a contiguous range of blocks
6063(or inodes) are available. (ext2fs_*_bitmap_range).
6064
6065Added new function (ext2_inode_has_valid_blocks) which returns true if
6066an inode has valid blocks. (moved from e2fsck code).
6067
6068Added new function (ext2fs_allocate_tables) which allocates the
6069meta-data blocks as part of initializing a filesystem. (moved from
6070mke2fs code).
6071
6072Added a new I/O manager for testing purposes. It will either allow a
6073program to intercept I/O requests, or print debugging messages to
6074trace the activity of a program using the I/O manager.
6075
6076The badblocks_list functions now store the bad blocks in a sorted
6077order, and use a binary search to speed up badblocks_list_test.
6078
6079The inode scan function ext2fs_get_next_inode() may now return a soft
6080error returns: MISSING_INODE_TABLE and BAD_BLOCK_IN_INODE_TABLE in
6081those cases where part of an inode table is missing or there is a bad
6082block in the inode table.
6083
6084Added a new function (ext2fs_block_iterate2) which adds new arguments to
6085the callback function to return a pointer (block and offset) to the
6086reference of the block.
6087
6088Added new function (ext2fs_inode_scan_goto_blockgroup) which allows an
6089application to jump to a particular block group while doing an inode
6090scan.
6091
6092The badblocks list functions were renamed from badblocks_* to
6093ext2fs_badblocks_*. Backwards compatibility functions are available
6094for now, but programs should be modified to use the new interface.
6095
6096Some of the library functions were reorganized into separate files to
6097reduce the size of some programs which statically link against the
6098ext2 library.
6099
6100Put in some miscellaneous fixes for the Alpha platform.
6101
Theodore Ts'o5c576471997-04-29 15:29:49 +00006102
6103E2fsprogs 1.06 (October 7, 1996)
6104================================
6105
6106Fixed serious bug in e2fsck: if the block descriptors are bad, don't
6107smash the backup copies in ext2fs_close(). (The problem was that when
6108e2fsck -p discovered the problem, while it was closing the filesystem
6109and exiting, it was also blowing away the backup superblocks on the
6110disk, which was less than friendly.) We now make it the case that we
6111only write out the backup superblock and the back block descriptors if
6112the filesystem is completely free from problems.
6113
6114Fixed a bug in block_interate in the lib/ext2fs library which caused
6115e2fsck to fail on GNU Hurd-created filesystems.
6116
6117Add support for Linux/FT's bootloader, which actually uses
6118EXT2_BOOT_LOADER, and sets its mode bits which caused e2fsck to want
6119to clear the inode.
6120
6121Add support for the "A" (no atime update) attribute. (Note: this
6122attribute is not yet in production kernels.)
6123
6124The test suite is not automatically run when doing a "make all" from
6125the top level directory. Users should manually run "make check" if
6126they wish to run the test suite.
6127
6128Upon a preenhalt(), make the printed message more explicit that
6129running e2fsck "MANAULLY" means without the -p or -a options.
6130
6131In e2fsck, if a disconnected inode is zero-length, offer to clear it
6132instead of offering to connect it to lost+found.
6133
6134In e2fsck, if a filesystem was just unmounted uncleanly, and needs
6135e2fsck to be run over it, change e2fsck to explicitly display this
6136fact.
6137
6138For dumpe2fs and e2fsck, cause the -V option to print out which
6139version of the ext2fs library is actually getting used. (This will
6140help detect mismatches of using a 1.06 utility with a 1.05 library,
6141etc.)
6142
6143Programmers' notes:
6144-------------------
6145
6146EXT2_SWAP_BYTES was changed to EXT2_FLAG_SWAP_BYTES, which better fits
6147the naming convention.
6148
6149In ext2fs_initialize(), make sure the description for the inode bitmap
6150is correctly initialize.
6151
6152Fixed minor type typo in ext2fs_allocate_generic_bitmap();
6153
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006154E2fsprogs 1.05 (September 7, 1996)
6155==================================
6156
6157Add support for new fields in the ext2 superblock --- volume name,
6158volume UUID, and last mounted field. Dumpe2fs displays these fields,
6159tune2fs and mke2fs allows you to set them. E2fsck will automatically
6160generate a UUID for those volumes that don't have them.
6161
6162Put in support for e2fsck to recognize HURD specific ext2 features ---
6163most notably, the translator block. The e2fsprogs tools will now use
6164the creator_os field in the superblock to correctly handle different
6165OS-specific variants of the ext2 filesystem.
6166
6167E2fsck now fixes inodes which have a the deletion time set, but which
6168have a non-zero i_link_count field by offering to clear the deletion
6169time. Previously e2fsck assumed that the inode was deleted (per 0.3c
6170ext2 kernel behavior) and offered to unlink the file.
6171
6172If e2fsck sets the clean bit, but nothing else, set the exit code
6173FSCK_NONDESTRUCT. After all, e2fsck did fix a filesystem error --- it
6174set the filesystem valid bit when it was previously cleared. :-) This
6175was needed to make the HURD fsck driver happy.
6176
6177If the user refuses to attach an unattached inode, e2fsck will no
6178longer set the inode's link count. Otherwise, the inode would end up
6179getting marked as unused, which might cause loss of data later.
6180
6181Make the message issued by e2fsck when the superblock is corrupt less
6182confusing for users. It now mentions that another reason for the
6183"corrupt superblock" message might be that the partition might not be
6184an ext2 filesystem at all (it might swap, msdos filesystem, ufs, etc.)
6185
6186Make the libext2 library more robuest so that e2fsck won't coredump on
6187an illegal superblock where the blocksize is zero. (f_crashdisk is
6188the test case).
6189
6190By default, create filesystems where the default checkinterval is 6
6191months (180 days). Linux servers can be robust enough that 20 reboots
6192can be a long, long time.
6193
6194Added configure flag --enable-old-bitops, which forces the bitops to
6195use the old (native) bitmask operations. By default on the sparc
6196platform, the standard ext2 bit ordering is now used.
6197
6198Added a new feature to e2fsck to byte-swap filesystems; this can be
6199used to convert old m68k filesystems to use the standard byte-order
6200storage for the superblock, inodes, and directory blocks. This
6201function is invoked by using the '-s' option to e2fsck.
6202
6203Debugfs's "dump" command has been enhanced so that it writes out the
6204exact size of the file so that the nulls at the end of the file are
6205eliminated. The command also accept a new "-p" option which will
6206attempt preserve to preserve the ownernship, permissions, and
6207file modification/access times.
6208
6209Debugfs has two new options, -f and -R. The -R option allows the user
6210to execute a single debugfs command from the command line. The -f
6211option allows the user to specify a "command file" containing debugfs
6212commands which will get executed.
6213
6214Dumpe2fs now pretty prints the check interval, instead of just
6215printing the check interval as a number of seconds.
6216
6217Fix bugs in debugfs: the params command when no filesystem is opened
6218no longer causes a core dump. It is now possible to unlink a file
6219when a pathame containing a '/' is specified.
6220
6221Tune2fs has a new -C option which sets the number of times the
6222filesystem has been mounted.
6223
6224Fix the chattr '-v' option so that it actually works. Chattr was
6225being buggy about the -v option parsing.
6226
6227Programmers' notes:
6228-------------------
6229
6230The directory lib/uuid contains a set of library routines to generate
6231DCE compatible UUIDs.
6232
6233Extended ext2fs_namei() to handle symbolic links. Added new function
6234ext2fs_nami_follow() which will follow last symbolic link in the case
6235where the pathname points to a sym link.
6236
6237The ext2fs_block_iterate function will now return the HURD translator
6238block, if present. The new flag BLOCK_FLAG_DATA_ONLY will cause the
6239iterator to return data blocks only. The ext2fs.h file now defines
6240constants BLOCK_COUNT_IND, BLOCK_COUNT_DIND, BLOCK_COUNT_TIND, and
6241BLOCK_COUNT_TRANSLATOR, which are the magic values passed in the block
6242count field of the iterator callback function.
6243
6244The test script driver now takes an optional second argument, which is
6245the test case to be run. This allows you to run a test case without
6246needing to run the entire test suite.
6247
6248On Linux ELF systems, install the .so files in the correct places
6249(/usr/lib). The .so files must be stored in the same directory as the
6250.a files.
6251
6252Fixed miscellaneous HURD compilation issues with header file being
6253included in the right order.
6254
6255Fixed debugfs so that it resets optind to zero, not one, since setting
6256optind to zero is more correct.
6257
6258
Theodore Ts'oa4d09611997-04-29 14:28:00 +00006259E2fsprogs 1.04 (May 16, 1996)
6260=============================
6261
6262First "official" (1.03 was a limited release only) to support building
6263e2fsprogs under Linux 2.0 kernels (as well as late model 1.3 and 1.99
6264kernels).
6265
6266This package includes a RPM specs file, that it can be built using the
6267RedHat Package Manager.
6268
6269E2fsck now prints a hint that if there are lots of incorrectly located
6270inode bitmaps, block bitmaps, and inode table blocks, the user might
6271want to try using e2fsck -b 8193 first, to see if that fares any
6272better.
6273
6274For ext2 filesystem written with the hurd, debugfs will now print out
6275the translator field when printing an inode structure.
6276
6277Lots of miscellaneous linking/installation cleanups:
6278
6279 Libraries are now linked using a relative pathname, instead of
6280 relying on -L working correct. It doesn't, in many cases, including
6281 current versions of GNU ld. This guarantees that the build tree is
6282 linking with the right libraries, instead of the ones installed in
6283 /usr/lib.
6284
6285 Header files, man pages, and the et/ss shell scripts are now
6286 generated using a custom substitution script, instead of relying on
6287 the configure script. This prevents needless recompilation of
6288 files; in addition, the custom substitution script is much faster.
6289
6290 e2fsck may now be linked dynamically, by using the
6291 --enable-dynamic-e2fsck flag to configure. This is not recommended,
6292 since it increases e2fsck's dependence on other files, but some
6293 people need to save disk space, and other critical programs on their
6294 systems were being linked dynamically anyway.
6295
6296 Programs such as fsck which didn't need to be linked against
6297 libext2fs (or mke2fs which didn't need to be linked against libe2p)
6298 only link against libraries they actually need. Otherwise, those
6299 programs would require the presense of libraries that otherwise
6300 could be removed from a rescuse diskette.
6301
6302 The ss include files are now installed correctly so they can
6303 actually be used by another package.
6304
6305 If the profiling libraries are built, they are now installed on a
6306 "make install-libs".
6307
6308
Theodore Ts'o7f88b041997-04-26 14:48:50 +00006309E2fsprogs 1.03 (March 27, 1996)
6310===============================
6311
6312Change the m68k bit numbering for bitmasks to match the bit numbering
6313used by all other ext2 implementations. (This change was requested by
6314the m68k kernel development team.)
6315
6316Support (in-development) filesystem format revision which supports
6317(among other things) dynamically sized inodes.
6318
6319Fixed a bug in the ext2 library so that an intelligent error is
6320returned if mke2fs is run with a ridiculously small number of blocks
6321for a partition.
6322
6323Fixed a bug in the ext2 library which required that the device be
6324openable in read/write mode in order to determine its size. This
6325caused e2fsck -n to require read/write access when it was not
6326previously necessary.
6327
6328Fixed a bug in e2fsck which casued it to occasionally fail the test
6329suite depending on which version of the floating point library it was
6330using.
6331
6332Fixed a bug in e2fsck so that it now halts with a fatal error when
6333certain superblock consistency checks fail. Previously it continued
6334running e2fsck, with some potential confusing/damaging consequences.
6335
6336Added new flag to fsck which allows the root to be checked in parallel
6337with other filesytems. This is not the safest thing in the world to
6338do, but some system administrators really wanted it.
6339
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00006340Fixed -Wall flames in lib/ss.
6341
Theodore Ts'o74becf31997-04-26 14:37:06 +00006342
6343E2fsprogs 1.02 (January 16, 1996)
6344=================================
6345
6346Fix to allow e2fsprogs to be compiled on recent 1.3 (pl45+) kernels.
6347
6348Change e2fsck to print statistics of how many non-contiguous files are
6349on the system. Note that a file which is larger than 8k blocks, it is
6350guaranteed to be non-contiguous.
6351
6352In mke2fs, print a warning message if a user tries to format a whole
6353disk (/dev/hda versus /dev/hda1). If a user really wants to format a
6354whole disk, the -F (force) option forces mke2fs to format a whole disk
6355as a filesytem.
6356
6357Fix a bug in fsck where in some cases it might start checking
6358partitions in the next pass before it finishes checking partitions in
6359the current pass. This still won't cause two partitions on the same
6360disk will be checked, so it's rarely a problem in real life.
6361
6362Patch lsattr so that it won't hang when checking a named pipe.
6363
6364Minor compilation fixes:
6365 * Fix the order of libraries that were linked in debugfs.
6366 * Allow the sources to be compiled with -ansi turned on.