blob: b2b2b6f87727f5563478eef797b383566589c996 [file] [log] [blame]
Theodore Ts'od1ef5c32001-07-20 12:35:11 -04001E2fsprogs 1.23-WIP (July 20, 2001) (up to Changeset 1.789)
2==================================
3
4Add initial support for extended attributes (EA); e2fsck will
5correctly handle a filesystem with extended attributes and check the
6EA blocks for corruptions.
7
8Speed up the check of an ext3 filesystems by avoiding a needless flush
9of all of the superblock and block group descriptors.
10
11Add support in fsck for the filesystem type "auto".
12
13
Theodore Ts'o19d6b542001-06-23 00:13:09 -040014E2fsprogs 1.22 (June 22, 2001)
15==============================
16
17Fixed a bug in e2fsck's handling of orphan inodes which are special
18files (i.e., block/character device files, named FIFO's, etc.).
19
20Fixed a bug accidentally introduced in e2fsprogs 1.21 which caused
21tune2fs to fail at adding a journal to a mounted filesystem.
22
23Fixed a few big-endian bugs in e2fsprogs
24 * The directory block functions were accidentally reporting
25 some directories as corrupted when they weren't.
26 * If e2fsprogs is compiled --disable-swapfs, the C language
27 equivalents weren't being included for big-endian platforms.
28 (Fixes Debian bug #101686).
29
30Fixed a Hurd compilation problem. (Addresses Debian bug #101361)
31
32Programmer's notes:
33-------------------
34
35Use platform independent method of defining the BLKFLSBUF and FDFLUSH
36ioctls, and allow them to be defined for non-i386 platforms.
37
38The uuid.h header file is now protected against multiple inclusions.
39
40E2fsprogs is now being developed using BitKeeper. Changed the test
41scripts to deal with BK's stripping CR characgters from text files,
42and changed the top-level Makefile.in to avoid including BitKeeper
43files when generating the source tarball.
44
45
Theodore Ts'ob90b8262001-06-15 22:54:34 +000046E2fsprogs 1.21 (June 15, 2001)
47==============================
Theodore Ts'o767de092001-06-02 01:20:18 +000048
Theodore Ts'ob90b8262001-06-15 22:54:34 +000049Added new configure flags which allow a subset e2fsprogs to be built;
50this is most useful for boot floopies, since the resulting shared
51libraries and programs are slimmed down by removing features that
52aren't necessary for a boot floppy. The new flags that were added
53are: --disable-swapfs, which removes support for byte swapping old
54legacy PPC/68k filesystems, --disable-debugfs, which removes support
55for debugfs from the libext2fs library, --disable-imager, which
56removes support for the e2image program, and --disable-resizer, which
57removes support for resize2fs.
58
59E2fsck now prints the number of mounts or days elapsed since the last
60check when e2fsck is forced to check an otherwise clean filesystem.
61
62Tune2fs now prints an informative message about how often a filesystem
63will be checked when adding a journal to the filesystem, to remind the
64user that he/she may want to adjust those parameters using tune2fs
65-c/-i.
66
67Worked around hurd brain-damage which causes e2fsck to sometimes
68believe a filesystem is the root filesystem based on device numbers
69(since Hurd doesn't have dev_t's, which is arguably a POSIX.1
70violation).
71
72Fixed a bug introduced in 1.20 which caused e2fsck to abort with an
73erroneous error with the -F option was specified.
74
75Fixed a ext3 recovery bug in the revoke handling; synchronized with
Theodore Ts'oc05b5522001-06-08 12:03:36 +000076ext3 0.7a.
77
Theodore Ts'o767de092001-06-02 01:20:18 +000078Fixed two bugs in e2fsck's handling of dup block handling, dealing
79with relatively uncommon edge cases: a directory with an indirect
80block which is claimed by another file, and when the last inode in the
81filesystem has blocks claimed by another file.
82
Theodore Ts'o5a9c0362001-06-02 04:55:57 +000083E2fsck now checks to see if the i_size field of a fast symlink is too
84big, and offers to clear the symlink if so.
85
86E2fsck now checks to see if i_size_high of special files is non-zero,
87and offers to clear i_size_high.
88
Theodore Ts'o767de092001-06-02 01:20:18 +000089Fix e2fsck's handling of incompatible journal flags so that the user
90has chance to abort, and then has the option to clear out the journal
Theodore Ts'oe3338452001-06-14 07:11:33 +000091entirely. (Addresses Debian bug #98527.)
Theodore Ts'o767de092001-06-02 01:20:18 +000092
Theodore Ts'ob90b8262001-06-15 22:54:34 +000093Fixed a bug in fsck which could cause it to core dump if a mix of
94standard and non-standard device names are used in /etc/fstab.
95(Debian bug #100559)
96
Theodore Ts'oc05b5522001-06-08 12:03:36 +000097Fixed a bug in debugfs which caused read errors when copying a file to
98not be noticed.
99
Theodore Ts'ob90b8262001-06-15 22:54:34 +0000100The debugfs set_super_value command can now modify the s_lastcheck field.
101
Theodore Ts'oc05b5522001-06-08 12:03:36 +0000102Fixed a bug in lsattr and chattr which was accidentally introduced in
1031.20 to support > 2GB files; both lsattr and chattr wasn't reading
104directories correctly because the change modified the layout of struct
105dirent to be incompatible with the libe2p shared library.
106
Theodore Ts'ob90b8262001-06-15 22:54:34 +0000107Cleaned up the mke2fs manual page and included a discussion about why
108it's good to periodically check the filesystem even when journaling is
109enabled.
110
Theodore Ts'o767de092001-06-02 01:20:18 +0000111Programmer's notes:
112-------------------
113
114Fix general gcc -Wall complaints.
115
116The types needed by the ext2 header files are now provided by
117lib/ext2fs/ext2_types.h, instead of include/asm/types.h.
118
Theodore Ts'oc05b5522001-06-08 12:03:36 +0000119Integers are now preferred to longs when trying to find a 32-bit type
Theodore Ts'ob90b8262001-06-15 22:54:34 +0000120in ext2_types.h. Also, if linux/types.h has already been defined,
121don't try to redefine the types.
Theodore Ts'oc05b5522001-06-08 12:03:36 +0000122
Theodore Ts'o767de092001-06-02 01:20:18 +0000123Fixed make depend script so that it automatically corrects the
124pathname cleanups performed by make -M, so I don't have to fix them up
125by hand.
126
127Fixed the d_loaddump test case to be more robust, and not depend on
128bash'isms.
129
130Removed debugfs's dependence on pread(), which was accidentally
131intrudced in e2fsprogs 1.20
132
Theodore Ts'oc05b5522001-06-08 12:03:36 +0000133Fixed a performance bug in the libext2fs's icount routine; the size
134estimate of the icount array was incorrectly being calculated.
135
Theodore Ts'ob90b8262001-06-15 22:54:34 +0000136Removed use of the badblocks compatibility functions in the e2fsprogs
137programs.
138
139Added paranoia code which protects against strange cases where /etc
140isn't on the root filesystem, or if /etc/mtab doesn't exist.
141
142The header file ext2_types.h is now installed.
143
144Autoconf is used to determine when we are on big-endian machines,
145instead of doing run-time tests, to save a few bytes of code.
146
147The ext2fs_mark_generic_bitmap and ext2fs_unmark_generic_bitmap
148functions are no longer inline functions, which saves space and
149doesn't really cost any real performance.
150
151The ext2fs library no longer depends on the e2p library. (What need
152there was of it --- namely, fsetflags, was coded in-line).
153
154Fixed the makefile so that lib/ext2fs/ext2_types.h is generated even
155when the user is stupid and tries compiling the package using "make
156install" as root.
157
158Miscellaneous code cleanups:
159 * Added missing files from Makefile.in's SRCS file, so that
160 their dependencies would be properly calculated.
161 * Removed redundant code
162 * Fixed comments in code
163 * Removed no-longer unneeded argsused #pragma.
Theodore Ts'oc05b5522001-06-08 12:03:36 +0000164
Theodore Ts'o767de092001-06-02 01:20:18 +0000165
Theodore Ts'o5a009bb2001-05-21 05:27:45 +0000166E2fsprogs 1.20 (May 20, 2001)
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000167=============================
Theodore Ts'o5570a652000-08-21 01:23:39 +0000168
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000169Add support for replaying the ext3 journal purely in user mode,
170including handling the orphaned inode list. Used code contributed by
171Andreas Dilger, with bug fixes and the orphaned inode handling done
172by Theodore Ts'o.
173
174The mke2fs and tune2fs programs can create or modify a filesystem to
175include an ext3 journal. Tune2fs also can be used to remove an ext3
176journal from a filesystem.
Theodore Ts'o5570a652000-08-21 01:23:39 +0000177
178E2fsck will now check for the existence of a linked list of orphan
179inodes in the superblock, and clear those inodes before starting the
180rest of the filesystem check (but after the journal playback).
181
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000182E2fsck now validates the file descriptor passed to the -C option,
183which saves against the completion bar getting written to an
184unexpected location, such as the disk being checked. (Debian
185bug/wishlist #55220)
186
187E2fsck will now bump the filesystem revision number from zero to one
188if any of the compatibility bits are set.
189
190Fixed a bug where a badly corrupted directory on a big endian system
191could cause e2fsck to die with a bus error. The
192ext2fs_read_dir_block() and ext2fs_process_dir_block() functions in
193the ext2 library now does alignment sanity checks on the rec_len field
194of the directory entry before using it.
195
196The ext2 library has been enhanced to make tune2fs safe to run on
197mounted filesystems. (Users could usually get away with using tune2fs
198on mounted filesystems before, but with the advent of ext3 and
199journaling, it became important to make tune2fs was *really* safe for
200use even when the filesystem being modified is mounted.) E2label is
201now implemented by tune2fs using an argv[0] dispatch, so that e2label
202is also now safe for use on mounted filesystems.
203
204Added a new program, e2image, which creates a backup of critical ext2
205filesystem data structures. The generated image file can be examined
206using dumpe2fs and debugfs. In the future, e2fsck will be able to use
207the image file to help recover very badly damaged filesystems.
208
209Fixed a number of LFS bugs in e2fsck; very, very large (> 2**42) files
210no longer cause e2fsck to bomb out. Also treat files > 2GB as being
211large file when deciding whether or not the filesystem has large files.
212
213Fixed lsattr and chattr so that they work correctly on large files.
214(Fixes Debian bug #72690.)
215
216Removed limitation in get_device_size() which imposed a one terrabyte
217filesystem limitation. (Most 2.2 kernels still have a signed int
218problem which cause 1 TB block device limitation. Fortunately, the
219kernel patches to fix this are much easier than fixing the 2TB
220limitation in the kernel. :-)
221
222A max_mount_count of zero is now treated as if no mount count were
223set. (Previously, no mount count was indicated by using -1, and a
224mount count of zero caused e2fsck to always be run.)
225
Theodore Ts'o77648562001-05-14 13:04:44 +0000226Mke2fs supports two new filesystem types largefile and largefile4.
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000227
228Mke2fs now adds some randomness in s_max_mount_count so that multiple
229filesystems won't be all checked at the same time under normal
230operations.
231
Theodore Ts'o5570a652000-08-21 01:23:39 +0000232Fixed bug in the progress bar printing code which could cause e2fsck
233to core dump on an illegal filesystem.
234
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000235Fixed bug in fsck which could allow more than one instance of e2fsck
236to be printing a progress bar. (Debian bug #65267)
237
Theodore Ts'o5570a652000-08-21 01:23:39 +0000238Fsck using a UUID or a LABEL specifier will work even if devfs is
239compiled into the kernel and not mounted. If the pathnames in
240/proc/partitions are incorrect, fsck will search /dev for the correct
241device (using the new ext2fs_find_block_device library function).
242Fsck now also checks the RAID devices first so that they are properly
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000243found when they are in use. Support has also been added to support
244additional IDE disks and the DAC 960 device names. (Debian bug #94159)
245
246Fixed a bug in fsck which caused it not deal properly with 16
247byte long filesystem labels.
Theodore Ts'o5570a652000-08-21 01:23:39 +0000248
Theodore Ts'o5a009bb2001-05-21 05:27:45 +0000249Fsck's -t option has been made a lot more flexible. The semantics for
250what happens if a comma-separated list to fsck has been regularized,
251and it is now possible to filter what filesystems will get checked
252based what is in the filesystem's fstab entry's option field. (Debian
253bug #89483.)
254
Theodore Ts'o5570a652000-08-21 01:23:39 +0000255The dumpe2fs program can now print out the group description
256information in hex, and also prints the location of the superblock and
257block group descriptor for those block groups that have them.
258
259Mke2fs now clears the ext2 superblock before it starts creating a
260filesystem, so that the superblock magic number is only written if the
261filesystem creation process successfully completes.
262
263The debugfs program's stat command now pretty-prints the blocks used
264by an inode so that it's more compact and informative.
265
266The debugfs stats command now uses the same libe2p code (which is used
267by dumpe2fs) to print the superblock header information. This is more
268complete, and it avoids a bit of code duplication.
269
270Added a new debugfs command, set_super_value (ssv) which allows the
271user to set arbitrary superblock fields.
272
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000273Debugfs was extended to support inode numbers in hex (by prefixing
274them with 0x), and so that modify_inode can set the inode generation
275number. Also, there is now a new function command called logdump
276which will dump an ext3 journal.
277
278Fixed a bug in debugfs so that quitting out of the pager doesn't kill
279debugfs.
280
281Debugfs's dump command now stops immediately upon reporting a disk
282read error. (Fixed a bug in ext2fs_file_read library routine which
283caused debugfs not to stop.) (Debian bug #79163)
284
285On systems with /proc/mounts (mainly Linux systems), /proc/mounts is
286checked before /etc/mtab is used, since /proc/mounts is more likely to
287be accurate.
288
289Added portability fixes for Solaris and Linux/ia64.
290
291Various manual pages were clarified and cleaned up. (Fixed debian
292bugs #63442, #67446, and #87216)
293
Theodore Ts'o5570a652000-08-21 01:23:39 +0000294
295Programmer's notes:
296-------------------
297
298The e2fsck message printer now supports %Iu and %Ig, which will print
299out the inode's user and group owners, respectively.
300
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000301E2fsprogs now includes its own version of include/linux/ext2_fs.h, so
302that no longer dependent on the system having the correct version of
303the kernel header files.
304
Theodore Ts'o5570a652000-08-21 01:23:39 +0000305Added a new function to libext2, ext2fs_find_block_device(), which
306searches the system (i.e., /dev, /devfs, /devices) for a pathname to a
307device given its device number.
308
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000309Added a new function to libext2, ext2fs_sync_device, which centralizes
310all of the places which might try to use the BLKFLSBUF or FDFLUSH
311ioctls (and usually failing to define them since the system header
312files don't usually do this for us, and we're trying to avoid usage of
313kernel include files now).
314
Theodore Ts'o5570a652000-08-21 01:23:39 +0000315Added new utility programs in tests/progs: random_exercise and
316hold_inode. They aren't built by default; they're useful for
317exercising ext3 filesystem code.
318
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000319Added a new ext2 filesystem flag, EXT2_FLAG_SUPER_ONLY, which causes
320the filesystem close functions to only update the superblock, and to
321not touch the block group descriptors. Needed by tune2fs when
322modifying a mounted filesystem.
323
324Got rid of struct ext2fs_sb and replaced it with the standard struct
325ext2_super_block from include/linux/ext2_fs.h. Note: this may break
326source (but not binary) compatibility of some users of the ext2
327library. Those applications should just simply do a global search and
Theodore Ts'o7d614e32001-06-13 23:49:05 +0000328replace of struct ext2fs_sb with struct ext2_super_block, and include
329the new header file <ext2fs/ext2_fs.h> which defines it.
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000330
331The ino_t type has been renamed ext2_ino_t to protect applications
332that attempt to compile -D_FILE_OFFSET_BITS=64, since this
333inexplicably changes ino_t(!?). So we use ext2_ino_t to avoid an
334unexpected ABI change.
335
336The Makefiles have been reworked so that "make check" can be run from
337the top-level Makefile.
338
339Fix general gcc -Wall complaints and removed dead code.
340
341Remove use of NOARGS, because we assume everyone does ANSI C these
342days.
343
344Added build-rpm script from sct.
345
346New functions ext2fs_image_{inode,super,bitmap}_{read,write} added
347to support e2image.
348
349New function ext2fs_flush_icache which must be called if the
350application program modifies the inode table blocks without going
351through ext2fs_write_inode() interface.
352
353New ext2fs_check_mount_point() function, which will return the mount
354point of a device if mounted.
355
356The io_channel abstraction now has an optional interface,
357io_channel_write_range, which allows specific byte ranges to be
358written.
359
360The unix_io IO channel now supports write-through caching, so that
361journal creation is more efficient.
362
363Added x86 assembly language routines to support byte swapping, to
364reduce executable size.
365
366Fixed bug in the utility program subst so that it's possible to
367replace a substitution variable with a zero-length string.
368
369Fixed numbering e2fsck pass1 problem numbers; an extra zero had
370slipped into some of the problem number.
Theodore Ts'o5570a652000-08-21 01:23:39 +0000371
Theodore Ts'ob777e262000-07-27 01:39:23 +0000372E2fsprogs 1.19 (July 13, 2000)
373==============================
Theodore Ts'oab146762000-07-07 04:37:35 +0000374
375Release the resize2fs program since the timeout before it could
Theodore Ts'o006ea712000-08-21 03:39:49 +0000376be released under the GPL has finally expired.
Theodore Ts'oab146762000-07-07 04:37:35 +0000377
378Add experimental support needed for the ext2 compression patches.
379This requires compiling e2fsprogs with the --enable-compression flag
380to the configure script.
381
382Added ext3 journalling support. E2fsck will run the journal (if
383necessary) by temporarily mounting the filesystem. /sbin/fsck.ext3 is
384installed as a symlink to e2fsck. Fsck has been taught about ext3,
385and treats it the same as ext2 in terms of the progress bar logic.
386Dumpe2fs will display the superblock journaling information if the
387filesystem has a journal. The ext2 library will now permit opening an
388ext3 filesystem with the recovery flag set. This is necessary for
389on-line dump's to work correctly, but there may be issues with this
390working well since ext3 is much less agressive about syncing blocks to
391the filesystem, since they're safe on the journal.
392
393Tune2fs and e2fsck have been changed to allow the mount_count check to
394be disabled by setting max_mount_count to -1. (This was already
395supported by the kernel.)
396
397Create a symbolic link for fsck.ext3, since the e2fsprogs utilities
398are used for ext3 as well.
399
400Added internationalization support for e2fsprogs; must be enabled
401by passing --enable-nls to configure.
402
403Always use the provided ext2fs header files to insulate ourselves from
404kernel version changes. Which include files are used by e2fsprogs
405have also been cleaned up to improve portability.
406
407Limit the number of times that e2fsck updates the progress bar so that
408people who are booting using a 9600 baud console don't get swampped by
409too many updates.
410
411Improved the loop detection algorithm in e2sck's pass #3 so that it is
412much, much faster for large filesystems with a large number of
413directories.
414
415The memory footprint for e2fsck is now slightly smaller than before.
416
417E2fsck now checks if special devices have a non-zero size, and offers
418to clear the size field if it finds such an inode.
419
420E2fsck now checks if special devices have the append-only flag set,
421and offers to clear the inode.
422
423E2fsck now properly handles some "should never fail" cases during a
424bitmap copy in pass5.
425
426E2fsck now properly prints control characters in filenames as ^A .. ^Z.
427
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000428E2fsck now calculates the correct location of the backup superblock in
429the case of filesystem blocksizes > 1k.
430
431Fixed a bug in e2fsck's calculation of the number of inodes_per_block
432which normally didn't cause problems under most filesystem parameters,
433but could cause a valid superblock to be rejected in extreme cases.
434Other checks for validating superblock values were made more
435stringent.
436
Theodore Ts'oab146762000-07-07 04:37:35 +0000437Added non-destructive write testing to the badblocks program, courtesy
438of David Beattie. The badblocks also now has an option to input the
439current set of bad blocks, so that known bad blocks are skipped to
440speed up the badblocks test. There is also a persistent rescan
Theodore Ts'o006ea712000-08-21 03:39:49 +0000441feature which causes badblocks to run until it has completed some
442number of passes without discovering any new bad blocks.
Theodore Ts'oab146762000-07-07 04:37:35 +0000443
444Badblocks now checks to see if the device is mounted and refuses to do
445the tests involving writing to the device if it is mounted. Also,
446badblocks now allows the number of blocks to be checked to be
447defaulted to the size of the partition.
448
449Fixed a bug in fsck which didn't allow non-root users to be able to
450check filesystems if there were any LABEL= or UUID= entries in
451/etc/fstab.
452
453The Hurd doesn't support the filetype filesystem feature. The mke2fs
454program now makes sure that for the Hurd, the filestype feature is
455turned off. E2fsck will check to see if the filetype feature is
456turned on for Hurd filesystems, and offer to turn off the feature.
457
458Mke2fs now has a safety check to make sure the number of blocks do not
459exceed 32 bits even on a 64 bit platform.
460
461Really fixed a bug in fsck to allow "fsck -As" to run interactive
462fsck's. (For those people who like to do interactive fsck's in the
463/etc/rc scripts!?!)
464
465Debugfs has a few new features: the rdump command, which will do a
466recursive dump of a directory and all of its contents, and the lcd
467command which does a local chdir (much like the ftp command of the
468same name). In addition, the debugfs program and the open_filesystem
469command now takes three new options: -b and -s, which allows the
470blocksize and superblock location to be specified, and the -c option
471which is used in catastrophic situations where the block group
472descriptors are corrupt. If the -c option is specified, debugfs will
473skip trying to read in the block and inode bitmaps.
474
475Debufs's lsdel command was fixed to handle bad blocks in the inode
476table.
477
478A Y2K bug in debugfs's "ls -l" handling was fixed by switching to use
4794 digit years.
480
481General improvements in error messages
482
483 - Mke2fs prints a sane error message if the partition size is zero
484 (usually because the partition table wasn't reread by the
485 kernel due to the partition being busy), instead of "invalid
486 argument passed to ext2 library while initializing superblock".
487
488 - Fsck now prints more self-explanatory message if an invalid UUID=
489 or LABEL= specification is passed to it.
490
491UUID library changed to use the LGPL.
492
493Fixed a bug in the UUID library where very rapid calls to the
494time-based UUID generator could cause duplicate UUID's to be returned.
495This was not a problem for e2fsprogs, but it could be a problem for
496other users of the library.
497
498Make the UUID library more robust in the face of missing or an
499improper /dev/urandom or /dev/random files.
500
501Added some random portability fixes for Solaris.
502
503Some minor man page updates.
504
505Fixed a memory leak in the ss library.
506
507
508Programmer's notes:
509-------------------
510
511We now try to use lseek64 and open64 from the LFS if possible.
512
513The 3rd parameter in e2p's print_flags is now a flags word, instead of
514a boolean option.
515
516The mark and unmark bitmap functions now return the previous state of
517the bit that was being changed, which is useful for some speed
518optimizations.
519
520The following functions have been added to enhance the badblocks list
521handling in libext2fs: ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and
522ext2fs_badblocks_equal.
523
524The ext2 header files now have the latest journalling fields to the
525superblock.
526
527The ext2fs_mkdir function in libext2fs now properly backs out of error
528conditions robustly.
529
530Cleaned up makefiles:
531 - to cleanly compile with the -j flag.
532 - so distclean removes all generated files.
533 - so in case of an error while installing header files, the make aborts.
534
535Fix test_script so that it works correctly when compiling in the
536source directory.
537
Theodore Ts'o31d1d0c2001-05-11 05:15:06 +0000538The random UUID generation routine has been made slightly better in
539the case where /dev/random doesn't exist. (Use of randomly-based UUID
540is still not recommended if /dev/random doesn't exist, however; it's
541better to use the time/ethernet MAC address UUID in this case.)
Theodore Ts'oab146762000-07-07 04:37:35 +0000542
543Clean up the build process so it's more friendly in case of missing
544directories.
545
546The ext2fs header file can now be #include'd into C++ programs.
547
548The e2p.h header file is now installed.
549
550Added workaround to a gawk 3.0.5 bug in lib/ss/mk_cmds.
551
552
553
Theodore Ts'o24ded091999-11-10 15:56:16 +0000554E2fsprogs 1.18 (November 10, 1999)
555==================================
556
557Fix a core dumping bug in e2fsck if an imagic inode is present or
558(more rarely) if the filesystem is badly corrupted enough that e2fsck
559has to restart pass 1 processing. E2fsck now closes the filesystem
560before freeing a large number of its data structures, so in the case
561of future memory faults, at least the fixed filesystem will be fully
562written out.
563
564If a filesystem doesn't support imagic inodes, and e2fsck discovers an
565imagic inode, it will offer to clear the imagic flag.
566
567E2fsck will now offer to clear the immutable flag on special files
568(device/socket/fifos) when running it in non-preen mode.
569
570E2fsck will now set the filetype when creating /lost+found, and when
571connected orphaned inodes to /lost+found.
572
573Debugfs's ncheck and icheck commands now handles the case where there
574are bad blocks in the inode table without bombing out.
575
576The badblocks list processing code has been made more efficiently for
577appending a large number of (ordered) badblocks to the badblocks list.
578
579Some minor man page updates.
580
581Fsck now allows interactive e2fsck's when using fsck -As (not a common
582mode, but some people like to do this in boot scripts for silly reasons).
583
584Programmer's notes:
585-------------------
586
587The internal e2fsck problem code for PR_2_SPLIT_DOT was fixed to meet
588with the problem code convention.
589
590The badblocks list regression test program has been updated to work
591with previously made API name changes.
592
593The ext2fs_free() command now uses the new badblocks API to avoid
594using the compatibility layer.
595
596Added new regression test cases; the run_e2fsck test script now
597supports the ability for a test case to run a prepratory command
598before running e2fsck.
599
Theodore Ts'o28e11941999-10-26 18:17:20 +0000600E2fsprogs 1.17 (October 26, 1999)
601=================================
602
603Fixed nasty typo in fsck which caused parallelized fsck's to go into an
604infinite loop.
605
606Fixed a bug in fsck where it used strncmp to compare a binary UUID,
607thus potentially causing problems if a binary UUID contained a NULL
608character.
609
610E2fsck now uses stricter checks for directory entries in pass 2:
611zero-length filenames are not allowed; neither are 8 byte long
612directory entries.
613
614The debugfs "dirty" command now clears the filesystem valid bit.
615(Previously this just set the dirty-as-in-needs-writing-out-to-disk
616bit in the in-core superblock image. The new functionality is more
617what the user expects, and is more useful.)
618
619Added a debugging hook to test parallel fsck; if the environment
620variable FSCK_FORCE_ALL_PARALLEL, then filesystems on the same drive
621will be checked in parallel when they normally would not be.
622
623Programmer's notes:
624-------------------
625
626Fixed some #ifdef's for compilation under the Hurd OS.
627
628Fixed minor W2K compatibility problems.
629
630Fixed some miscellaneous GCC warnings.
631
632
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +0000633E2fsprogs 1.16 (October 22, 1999)
634=================================
635
636Fixed a race condition bug in fsck; when printing a progress bar, if
637checking multiple filesystems in parallel, it was possible for fsck to
638send e2fsck a SIGUSR1 signal before e2fsck had installed its signal
639handler, which would cause it to terminate with a signal 10.
640
641E2fsck now properly handles filesystems that have the
642INCOMPAT_FILETYPE feature turned on. It can be used to convert a
643filesystem into using or not using FILETYPE feature.
644
645E2fsck now properly handles filesystems that have the IMAGIC feature
646turned on (this is used on Linux AFS servers).
647
648The mke2fs program now creates filesystems that have the filetype and
649sparse_superblock features enabled by default, unless it is run on a
650pre-2.2 kernel. These features are not supported by a pre-2.2 kernel,
651so there is now a new flag -O which allows the user to specify with
652which features she would like to create the filesystem; "mke2fs -O
653none" will create a filesystsem compatible with 2.0 kernels.
654
655The tune2fs program now has a -O option which allows the user to set
656and reset "safe" filesystem features. Currently, the only ones which
657allows to be modified are the filetype and sparse_superblock features.
658Note setting or clearing either feature will require running e2fsck on
659the filesystem afterwards. (n.b. Clearing the sparse_superblock feature
660requires that there is enough free space on the filesystem for the
661extra superblocks which will be created by e2fsck.)
662
663Debugfs can now set and print filesystem features in the superblock
664using the "features" command. Dumpe2fs will print out the complete
665set of features when listing the superblock.
666
667Dumpe2fs has new options -f (force) and -h (header-only).
668
669Fixed a bug in e2fsck which could cause the PROGRAMMING ERROR/bonehead
670message to come up. This could happen when decrementing or
671incrementing a link count could result in an overflow.
672
673Fixed a bug in e2fsck where the block count on the lost+found
674directory would not be properly incremented when the directory was
675expanded to the point where an indirect block needed to be allocated.
676
677E2fsck now makes some additional sanity checks on the superblock to
678avoid crashing or giving a memory allocation error if some of the
679values in the superblock are unresonable (but the superblock otherwise
680looks valid).
681
682Fixed a bug in e2fsck where a very badly corrupted filesystem might
683require two passes to completely fix the filesystem. This happened if
684an inode claimed blocks that was part of the filesystem metadata
685(typically, when garbage was written into an inode table or indirect
686block, since this kind of filesystem corruption normally doesn't
687happen otherwise).
688
689On the Alpha, glibc declares st_flags although it isn't actually used;
690the configure script was improved to detect this case so that
691e2fsprogs can avoid using the non-functional stat field.
692
693The manual pages were updated to use a more consistent formatting
694style consistent with standard Unix man pages. Mke2fs's man page
695added documentation for a few previously undocumented options.
696
697Fixed minor display bugs in tune2fs and mke2fs.
698
699Programmer's notes:
700-------------------
701
702Improved portability of e2fsprogs to non-Unix systems (in particular, NT).
703
704Added features to parse and print feature strings into the e2p library.
705(e2p_feature2string, e2p_string2feature, e2p_edit_feature).
706
707ext2fs_mkdir() and ext2fs_new_dir_block() now creates directories
708whose directory entries contain proper filetype information if the
709filesystem supports it.
710
711ext2fs_link() now uses the low 3 bits of its flags parameter to pass
712the directory entry filetype information. This is used to set the
713directory entry filetype information if the filesystem supports it.
714
715Fixed a bug in ext2fs_expand_dir() where the block count in a
716directory's inode would not be properly incremented when the directory
717was expanded to the point where an indirect block needed to be
718allocated.
719
720
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +0000721E2fsprogs 1.15 (July 18, 1999)
Theodore Ts'oe2a99be1999-07-19 15:48:08 +0000722==============================
Theodore Ts'o6d53db31999-07-03 20:52:21 +0000723
724Add configuration checks so that e2fsprogs will compile cleanly on
725Linux 2.3 kernels that have renamed i_version to i_generation.
726
Theodore Ts'oe2a99be1999-07-19 15:48:08 +0000727E2fsck now prints a progress/completion bar (and not just a simple
728spinner) if the -C0 option is requested or if it receives a SIGUSR1
729signal. Fsck will automatically manage the (potentially muliple)
730e2fsck processes to print completion bars if it is given a -C option,
731with the right thing happening if multiple filesystems are being
732checked in parallel.
733
734Mke2fs now has better automatic hueristics to determine the filesystem
735parameters to be used for a particular filesystem. Added a new option
736-T which allows the user to specify how the filesystem is to be used,
737which helps mke2fs do a better job selecting the filesystem parameters.
738
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +0000739Mke2fs now creates revision 1 filesystems by default, and with the
740sparse superblock feature enabled. The sparse superblock feature is
Theodore Ts'o8a31ffe1999-10-23 03:33:15 +0000741not understood by Linux 2.0 kernels, so they will only allow read-only
742mounts of filesystems with this sparse superblocks.
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +0000743
Theodore Ts'o6d53db31999-07-03 20:52:21 +0000744Fix bug where if /dev/null couldn't be opened (should never happen),
745e2fsck would hang in a tight loop.
746
747Make e2fsck handle the case where /lost+found isn't a directory.
748
749E2fsck now uses mallinfo if it exists to get accurate statistics about
750its memory usage.
751
752Fix bug in e2fsck where it wouldn't check to see if a disconnected
753inode had any problems before connecting it to /lost+found.
754
755Add check to e2fsck so it makes sure that total number of inodes in
756the filesystem is a sane number.
757
758Fix fencepost error when clearing an the end of the block bitmap which
759caused the last block in the bitmap not to get cleared.
760
761Cleaned up a number of messages in e2fsck:
762 * The message "Group's #'s copy of the group descriptor..."
763 was fixed so that the correct number would be displayed.
764 * Added missing space in the "disk write-protected" error messsage
765 * Cleaned up the error message printed when a non-interactive
766 e2fsck needs to abort a check because the filesystem
767 appears to be mounted.
768
769Added a new command-line utility, uuidgen, which will create and print
770a UUID.
771
772Make debugfs's icheck command more robust by checking to make sure an
773inode has valid blocks before interarting over the inode's blocks.
774
775UUID generation now uses a random-based scheme whenever possible to
776prevent potential privacy problems.
777
778Man pages for all of the UUID functions in the lirbary were added.
779
780Fixed bug in fsck so it won't coredump if a filesystem not in
781/etc/fstab is given to it.
782
783Fsck now understands the UUID=xxxx and LABEL=yyyy forms in /etc/fstab
784that most of the other mount utilities understands.
785
786Mke2fs will make a filesystem even if it appears mounted if the force
787option is given.
788
789Dumpe2fs has new command-line options which allow a filesystem expert
790to specify the superblock and blocksize when opening a filesystem.
791This is mainly useful when examining the remains of a toasted
792filesystem.
793
794The badblocks program has been updated to display correctly on disks
795with large block numbers.
796
Theodore Ts'oe2a99be1999-07-19 15:48:08 +0000797The badblocks program no longer gives spurious errors when errors
798occur on non-block boundaries, which is common if the blocksize is
799larger than 1k.
800
Theodore Ts'o6d53db31999-07-03 20:52:21 +0000801Mke2fs will sync the disk device every MKE2FS_SYNC block groups if the
802MKE2FS_SYNC environment variable is set. This is to work around a VM
803bug in the 2.0 kernel. I've heard a report that a RAID user was able
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +0000804to trigger it even using a 2.2 kernel, but hopefully it will not be
805needed for most Linux 2.2 users.
Theodore Ts'o6d53db31999-07-03 20:52:21 +0000806
807Fixed miscellaneous documentation and man pages.
808
809Programmer's notes:
810-------------------
811
812Cleaned up functions such as pass1_get_blocks, pass1_read_inode which
813in e2fsck's pass1.c really should have been static.
814
815The return value of the uuid_compare() function was changed to make it
816match with the convetions used by strcmp, memcmp, and Paul Leach's
817UUID sample document.
818
819The "make depend" process has now been made more automated; it now
820automatically word-wraps the dependencies, and only replaces source
821Makefile.in if there has been a change in the dependencies. Also, a
822top-level "make depend" now recurses through all the subdirectories
823automatically.
824
825The Makefile in .../util has been changed so that subst is built using
826the native C compiler during a cross-compilation, since the subst
827program is only used during the build process. Also add an explicit
828rule to build util/subst by cd'ing to the correct directory and
829running Makefile.
830
831The man directories are defined in terms mandir, so that the configure
832script can override the location of the manual pages.
833
834The config files have been updated to recognize new machine types for
835both the i386 and alpha families.
836
837Fsck has been modified so that it will accurately create an
838fsck_instance even when the noexecute flag is set. This allows for
839accurate debugging of the fsck pass structure. Also, when the verbose
840flag is given twice, fsck will print debugging information about when
841fsck is waiting for jobs to finish.
842
843
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000844E2fsprogs 1.14 (January 9, 1999)
845================================
846
847Fix the fstab parsing code so that it can handle blank lines and
848comment characters. Also, missing pass numbers need to be treated as
849zero.
850
851Fixed a bug in e2fsck where under some circumstances (when e2fsck
852needs to restart processing after fixing an egregious inconsistency)
853it would try to access already freed memory.
854
855E2fsck now prints non-printable characters in directory entries and
856pathnames using '^' and 'M-' notation.
857
858Fixed chattr so that it will ignore symbolic links when doing
859recursive descent traversals. For both chattr and lsattr, no longer
860print the version string unless the -V option is given.
861
862Allow the system administrator to directly specify the number of
863inodes desired in the filesystem, for some special cases where this is
864necessary.
865
866Fix portability problems so that e2fsprogs can be compiled under Linux
8671.2 systems and Solaris systems.
868
869Update the config.guess file with a more recent version that will
870identify newer Linux platforms.
871
872Programmer's notes
873------------------
874
875Ext2fs_read_inode and ext2fs_write_inode will now return an error if
876an inode number of zero is passed to them.
877
Theodore Ts'o556ad131998-12-19 08:10:58 +0000878E2fsprogs 1.13 (December 15, 1998)
879==================================
880
881Fixed a bug in debugfs where an error messages weren't getting printed
882when the ext2 library routines to read inodes returned errors in the
883stat, cmri and rm commands.
884
885Fixed a bug in mke2fs so that if a ridiculous inode ratio parameter is
886provided, it won't create an inode table smaller than the minimum
887number of inodes required for a proper ext2 filesystem.
888
889Fsck now parses the /etc/fstab file directly (instead of using
890getmntent()), so that it can distinguish between a missing pass number
891field and pass number field of zero. This caused problems for
892diskless workstations where all of the filesystems in /etc/fstab have
893an explicit pass number of zero, and fsck could not distinguish this
894from a /etc/fstab file with missing pass numbers.
895
896E2fsck will create a /lost+found directory if there isn't one in the
897filesystem, since it's safer to create the lost+found directory before
898it's needed.
899
900Fixed e2fsck so that it would detect bogus immutable inodes which
901happen to be sockets and FIFO files, and offer to clear them.
902
903If a filesystem has multiple reasons why it needs to be checked, and
904one of the reasons is that it is uncleanly mounted, e2fsck will print
905that as the reason why the filesystem is being checked.
906
907Cleaned up the output routines of mke2fs so that it doesn't overflow
908an 80 column display when formating really big filesystems.
909
910Added a sanity check to e2fsck to make sure that file descriptors 0,
9111, 2 are open before opening the hard disk. This avoids a problem
912where a broken program might exec e2fsck with those file descriptors
913closed, which would cause disastrous results if the kernel returns a
914file descriptor for the block device which is also used by FILE *
915stdout.
916
917Fixed up the e2fsck progress reporting functions so that the values
918reliably reach 100% at the completion of all of the e2fsck passes.
919
920Fixed minor documentation bugs in man pages and usage messages.
921
922Programmer's notes:
923-------------------
924
925Fixed a number of lint warnings in the ext2fs library and potential
926portability problems from other OS's header files that might define
927CPP macros for names like "max" and "min".
928
929ext2fs_badblocks_list_add() has been made more efficient when it needs
930to grow the bad blocks list.
931
932Fixed a bug in e2fsck which caused it to dereference a freed pointer
933just before exiting.
934
935Fixed the substition process for generating the mk_cmds and compile_et
936scripts so that they will work outside of the build tree.
937
938Add sanity check to e2fsck so that if an internal routine
939(ext2fs_get_dir_info) returns NULL, avoid dereferencing the pointer
940and causing a core dump. This should never happen, but...
941
Theodore Ts'oa5696711998-07-09 05:38:07 +0000942E2fsprogs 1.12 (July 9, 1998)
Theodore Ts'o21d53851998-02-21 03:14:50 +0000943==================================
944
945E2fsprogs now works with glibc (at least with the version shipped wtih
946RedHat 5.0). The ext2fs_llseek() function should now work even with
947i386 ELF shared libraries and if llseek() is not present. We also
948explicitly do a configure test to see if (a) llseek is in libc, and
949(b) if llseek is declared in the system header files. (See standard
950complaints about libc developers don't understand the concept of
951compatibility with previous versions of libc.)
952
Theodore Ts'oc9833a61998-07-05 19:37:53 +0000953The ext2fs library now writes out the block group number in each of
954the superblock copies. This makes it easier to automatically
955determine the starting block group of the filesystem when the block
956group information is trashed.
957
958Added support for the EXT2_FEATURE_INCOMPAT_FILETYPE feature,
Theodore Ts'o101c84f1998-03-24 16:27:11 +0000959which means that e2fsprogs will ignore the high 8 bits of the
960directory entry's name_len field, so that it can be used for other
961purposes.
962
963Added support for the EXT2_FEATURE_RO_COMPAT_LARGE_FILE feature.
964E2fsprogs will now support filesystems with 64-bit sized files.
965
966Added support for the EXT2_FEATURE_COMPAT_DIR_PREALLOC feature.
967
Theodore Ts'o21d53851998-02-21 03:14:50 +0000968Added new program "e2label", contributed by Andries Brouwer. E2label
969provides an easy-to-use interface to modify the filesystem label.
970
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000971Fixed bug so that lsattr -v works instead of producing a core dump.
972
Theodore Ts'o21d53851998-02-21 03:14:50 +0000973Fixed a minor bug in mke2fs so that all groups with bad superblock
974backup blocks are printed (not just the first one).
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000975
976Mke2fs will check the size of the device, and if the user specifies a
977filesystem size larger than the apparent size of the device it will
978print a warning message and ask if the user wants to proceed.
979
Theodore Ts'oc9833a61998-07-05 19:37:53 +0000980E2fsck has a new option -C, which sends completion information to the
981specified file descriptor. For the most part, this is intended for
982programs to use, although -C 0 will print a spinning character to the
983stdout device, which may be useful for users who want to see something
984happening while e2fsck goes about its business.
985
Theodore Ts'o21d53851998-02-21 03:14:50 +0000986Fixed a bug in e2fsck which could cause a core dump when it needs to
987expand the /lost+found directory, and sometimes the bitmaps haven't
988been merged in. Also fixed a related bug where ext2fs_write_dir_block
989was used to write out a non-directory block. (Which would be bad on a
990non-Intel platform with byte swapping going on.)
991
992Fixed bug in e2fsck where it would print a "programming error" message
993instead of correctly identifying where a bad block was in used when
994the bad block was in a non-primary superblock or block group
995descriptor. Also fixed a related bug when sparse superblocks are in
996use and there is a bad block where a superblock or block group
997descriptor would have been in a group that doesn't include a
998superblock.
999
1000Fixed a bug in e2fsck (really in libext2fs's dblist function) where if
1001the block group descriptor table is corrupt, it was possible to try to
1002allocate a huge array, fail, and then abort e2fsck.
1003ext2fs_get_num_dirs() now sanity checks the block group descriptor,
1004and subsitutes reasonable values if the descriptors are obviously bogus.
1005
1006If e2fsck finds a device file which has the immutable flag set and the
1007i_blocks beyond the normal device number are non-zero, e2fsck will
1008offer to remove it, since it's probably caused by garbage in the inode
1009table.
1010
1011When opening a filesystem, e2fsck specially checks for the EROFS error
1012code, and prints a specific error message to the user which is more
1013user friendly.
1014
1015If the filesystem revision is too high, change the e2fsck to print
1016that this is either because e2fsck is out of date, or because the
1017superblock is corrupt.
1018
1019E2fsck now checks for directories that have duplicate '.' and '..'
1020entries, and fixes this corruption.
1021
1022E2fsck no longer forces a sync of the filesystem (with attendant sleep
1023calls) at all times. The ext2fs_flush() function now performs a sync
1024only if it needed to write data blocks to disk.
1025
1026Fixed a minor bug in e2fsck's pass1b's file cloning function, where
1027certain errors would not be properly reported.
1028
1029Updated and expanded a few points in the man pages which users
1030complained wheren't explicit enough.
1031
1032Added special case byte-swapping code if compiling on the PowerPC, to
1033accomodate the strange big-endian variant of the ext2 filesystem that
1034was previously used on the PowerPC port.
1035
1036
1037Programmer's notes:
1038-------------------
1039
1040Removed C++ keywords from the ext2fs libraries so that it could be
1041compiled with C++.
1042
1043E2fsck's internal organization has now been massively reorganized so
1044that pass*.c don't have any printf statements. Instead, all problems
1045are reported through the fix_problem() abstraction interface. E2fsck
1046has also been revamped so that it can be called as a library from a
1047application.
1048
1049Added new fileio primitives in libext2fs for reading and writing
1050files on an unmounted ext2 filesystem. This interface is now used by
1051debugfs.
1052
1053Added a new libext2fs function for mapping logical block numbers of
1054a file to a physical block number.
1055
1056Added a new libext2fs function, ext2fs_alloc_block(), which allocates
1057a block, zeros it, and updates the filesystem accounting records
1058appropriately.
1059
1060Added a new libext2fs function, ext2fs_set_bitmap_padding(), which
1061sets the padding of the bitmap to be all one's. Used by e2fsck pass 5.
1062
1063The libext2fs functions now use a set of memory allocation wrapper
1064functions: ext2fs_get_mem, ext2fs_free_mem, and ext2fs_resize_mem,
1065instead of malloc, free, and resize. This makes it easier for us to
1066be ported to strange environments where malloc, et. al. aren't
1067necessarily available.
1068
1069Change the libext2fs fucntion to return ext2-specific error codes
1070(EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND, for example) instead of using
1071and depending on the existence of system error codes (such as EEXIST
1072and ENOENT).
1073
1074Renamed io.h to ext2_io.h to avoid collision with other OS's header
1075files.
1076
1077Add protection against ext2_io.h and ext2fs.h being included multiple
1078times.
1079
1080The types used for memory lengths, etc. have been made more portable.
1081In generla, the code has been made 16-bit safe. Added Mark
1082Habersack's contributed DOS disk i/o routines.
1083
1084Miscellaneous portability fixes, including not depending on char's
1085being signed.
1086
1087The io_channel structure has a new element, app_data, which is
1088initialized by the ext2fs routines to contain a copy of the filesystem
1089handle.
1090
1091ext2fs_check_directory()'s callback function may now return the error
1092EXT2_ET_CALLBACK_NOTHANDLED if it wishes ext2fs_check_directory() to
1093really do the checking, despite the presence of the callback function.
1094
1095
Theodore Ts'obc210071997-06-17 05:41:36 +00001096E2fsprosg 1.11 (June 17, 1997)
1097==============================
1098
1099Fixed e2fsck to detect (previously ignored) conflicts between the
1100superblock or block group descriptors and block bitmaps, inode
1101bitmaps, and inode tables.
1102
1103Fixed bug in e2fsck so that when the message printed out when a block
1104or inode bitmap conflicts with other data, it has the correct group
1105number.
1106
1107Fixed bug in e2fsck and mke2fs where the blocksize wasn't being passed
1108to badblocks. This meant that not all of the filesystem was being
1109tested for bad blocks!
1110
1111Fixed an array boundary overrun case which cropped up in
1112ext2fs_badblocks_list_test when a user tried running "mke2fs -c
1113-b 4096".
1114
1115Adjusted the number of columns printed by mke2fs when displaying the
1116superblock backups to avoid running over 80 columns when making a
Theodore Ts'o21d53851998-02-21 03:14:50 +00001117really big filesystem.
Theodore Ts'obc210071997-06-17 05:41:36 +00001118
1119Fixed up the man pages for e2fsck, debugfs, badblocks, chattr,
1120dumpe2fs, fsck, mke2fs, and tune2fs (typos and other minor grammar
1121fixes), thanks to some suggestions from Bill Hawes (whawes@star.net).
1122
1123Programmer's notes:
1124-------------------
1125
1126Fixed install rule in lib/ss so that ss_err.h is actually getting
1127installed.
1128
1129Fixed bug in ext2fs_copy_bitmap; the destination bitmap wasn't getting
1130bassed back to the caller.
1131
1132Fixed bug in ext2fs_inode_scan_goto_blockgroup; it had not been
1133setting the current inode number (which meant this function wasn't
1134working at all).
1135
1136Fixed bug in ext2fs_resize_generic_bitmap; it had not be zeroing all
1137blocks in the bitmap when increasing the size of the bitmap.
1138
1139Changed the initial number of blocks allocated by ext2fs_init_dblist()
1140to be more realistic.
1141
1142Added a new function ext2fs_allocate_group_table, which sets up the
1143group descriptor information (and allocates inode and block bitmaps,
1144and inode tables for a particular group). The function was created by
1145factoring out code form ext2fs_allocate_tables().
1146
1147Added a new function ext2fs_move_blocks which takes a bitmap of the
1148blocks to be moved, and moves them to another location on the
1149boardboard.
1150
1151Make the unix_io channel's io_channel_flush implementation calls sync()
1152to to flush the kernel buffers to disk.
1153
1154Added a new function ext2fs_dblist_count returns the number of
1155directory blocks in dblist.
1156
1157
Theodore Ts'oae851481997-04-29 18:13:24 +00001158E2fsprogs 1.10 (April 24, 1997)
1159===============================
1160
1161Mke2fs once again defaults to creating revision #0 filesystems, since
1162people were complaining about breaking compatibility with 1.2 kernels.
1163Warning messages were added to the mke2fs and tune2fs man pages that
1164the sparse superblock option isn't supported by most kernels yet (1.2
1165and 2.0 both don't support parse superblocks.)
1166
1167Added new flag to mke2fs, -R <raid options>, which allows the user to
1168tell mke2fs about the RAID configuration of the filesystem. Currently
1169the only supported raid option is "stride" which specifies the width
1170of the RAID stripe.
1171
1172Fixed bug in e2fsck where pass1b would bomb out if there were any
1173blocks marked bad in the inode table.
1174
1175Fixed rare bug in mke2fs where if the user had a very unlucky number
1176of blocks in a filesystem (probability less than .002) the resulting
1177filesystem would be corrupt in the last block group.
1178
1179Fixed bug where if e2fsck tried to allocate a block to fix a
1180filesystem corruption problem and the filesystem had no free blocks,
1181ext2fs_new_block() would loop forever.
1182
1183The configure script now checks explicitly to see if "-static" works,
1184since that can't be assumed to be true --- RedHat doesn't install
1185libc-static by default.
1186
1187Fixed bug in libext2's block iterator functions where under some
1188cirmcustances, file with holes would cause the bcount parameter to the
1189callback function to be incorrect. This bug didn't affect any of
1190e2fsprogs programs, but it was discovered by Paul Mackerras, the
1191author of the PPC boot loader.
1192
1193Removed use of static variables to store the inode cache in libext2fs.
1194This caused problems if more than one filesystem was accessed via
1195libext2fs (static variables in libraries are generally a bad idea).
1196Again, this didn't affect e2fsprogs programs, but it was discovered by
1197Paul Mackerras.
1198
1199Fixed minor bugs and version code drift to assure that e2fsprogs 1.10
1200will compile cleanly with 1.2.13 kernels (even with a.out shared
1201libraries!)
1202
1203Programmer's notes:
1204-------------------
1205
1206Added new functions to duplicate an ext2 filesystem handle, and its
1207associated substructure. New functions: ext2fs_dup_handle(),
1208ext2fs_copy_dblist(), ext2fs_badblocks_copy(), ext2fs_copy_bitmap().
1209Other structures, such as the io_channel and the inode_cache, now have
1210a ref count so that they only get freed when they are no longer used
1211by any filesystem handle. (These functions were added as part of the
1212development effort for an ext2 resizer).
1213
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +00001214E2fsprogs 1.09 (April 14, 1997)
1215===============================
1216
1217Fixed bug in mke2fs (really in lib/ext2fs/initialize.c) which was
1218accidentally introduced in the 1.08 release. The overhead calculation
1219was accidentally removed, which caused ext2fs_initialize() to not
1220notice when the filesystem size needed to be adjusted down because
1221there wasn't enough space in the last block group.
1222
1223Fixed bug in version parsing library routine; it was always parsing
1224the library version string, instead of using the passed-in string.
1225
1226Clarified chattr man page.
1227
Theodore Ts'o24757fa1997-04-29 17:39:27 +00001228E2fsprogs 1.08 (April 10, 1997)
1229===============================
1230
1231E2fsck 1.07 was very slow when checking very large filesystems with a
1232lot of files that had hard links (i.e., news spools). This was fixed
1233by seriously revamping the icount abstraction. Added a formal test
1234suite for the icount abstraction.
1235
1236Debugfs now has a "-l" option to the "ls" command, which lists the
1237inode number, permissions, owner, group, size, and name of the files
1238in the directory.
1239
1240Fix a bug in e2fsck where when a directory had its blocks moved to
1241another location during the pass 1b processing, the directory block
1242list wasn't updated, so pass 2 wouldn't check (and correct) the
1243correct directory block.
1244
1245E2fsck will now treat inodes which contain blocks which are claimed by
1246the filesystem metadata by treating them as multiply claimed blocks.
1247This way, the data in those blocks can be copied to a new block during
1248the pass 1b--1d processing.
1249
1250E2fsck will attempt to determine the correct superblock number and
1251display it in the diagnostic and warning messages if possible.
1252
1253Add support for a new (incompatible) feature, "sparse_super". This
1254feature reduces the number of blocks which contain copies of backup
1255superblocks and block group descriptors. (It is only an incompatible
1256feature because of a bug in ext2_free_blocks.) mke2fs and tune2fs now
1257support a new -s option; e2fsck will recognize filesystems built with
1258this feature turned on.
1259
1260E2fsck now checks the library to make sure is the correct version,
1261using new library functions. (This helps to diagnose incorrectly
1262installed e2fsprogs distributions.)
1263
1264Dumpe2fs now prints more information; its now prints the the
1265filesystem revision number, the filesystem sparse_super feature (if
1266present), the block ranges for each block group, and the offset from
1267the beginning of the block group.
1268
1269Mke2fs now distributes the inode and block bitmap blok so that the
1270won't be concentrated in one or two disks in RAID/striping setups.
1271Also, if the user chooses a 2k or 4k block group, mke2fs will try to
1272choose the largest blocks per group that be chosen. (For 2k blocks,
1273you can have up to 16384 blocks/group; for 4k blocks, you can have up
1274to 32768 blocks/group.) Previously mke2fs would not allow
1275specification of more than 8192 blocks per group, even if you were
1276using a 2k or 4k block group.
1277
1278Programmer's notes:
1279-------------------
1280
1281Added a new function ext2fs_create_icount2() which takes a "hint"
1282argument. This hint argument presets the icount array with the list
1283of inodes which actually need to be in the icount array. This really
1284helps to speed up e2fsck.
1285
1286Added a new function ext2fs_icount_validate() which checks the rep
1287invariant for the icount structure. This is used mostly for testing.
1288
1289The error mesasage given when a bad inode number is passed to
1290test_generic_bitmap to reflect EXT2FS_TEST_ERROR (instead of
1291EXT2FS_UNMARK_ERROR).
1292
1293Added a new function ext2fs_set_dir_block which sets the block of a
1294dblist entry, given the directory inode and blockcnt.
1295
1296Added a new function ext2fs_get_library_version() which returns the
1297current library version, and ext2fs_parse_version_string() which
1298returns a version number based on a e2fsprogs version string.
1299
1300The icount functions will return EINVAL if the passed in inode number
1301is out of bounds.
1302
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001303E2fsprogs 1.07 (March 9, 1997)
1304==============================
1305
1306E2fsck is now uses much less memory when checking really large
1307filesystems (or rather, filesystems with a large number of inodes).
1308Previously a filesystem with 1 million inodes required 4 megabytes of
1309memory to store inode count statistics; that storage requirement has
1310now been reduced to roughly half a megabyte.
1311
1312E2fsck can now properly deal with bad blocks appearing inside the
1313inode table. Instead of trying to relocate the inode table (which
1314often failed because there wasn't enough space), the inodes in the bad
1315block are marked as in use.
1316
1317E2fsck will automatically try to use the backup superblocks if the
1318primary superblocks have a bad magic number or have missing meta-data
1319blocks (or meta-data blocks which are out of range).
1320
1321E2fsck's pass 3 has been made more efficient; most noticeable on
1322filesystems with a very large number of directories.
1323
1324Completely revamped e2fsck's system of printing problem reports. It
1325is now table driven, to make them more easily customizeable and
1326extendable. Error messages which can be printed out during preen mode
1327are now one line long.
1328
1329Fixed e2fsck's filesystem swapping code so that it won't try to swap
1330fast symbolic links or deleted files.
1331
1332Fixed e2fsck core dumping when fixing a filesystem which has no
1333directories (not even a root directory).
1334
1335Added a check to e2fsck to make sure that the length of every
1336directory entry is a multiple of 4 (since the kernel complains if it
1337isn't).
1338
1339Added a check to e2fsck to make sure that a directory entry isn't a
1340link to the root directory, since that isn't allowed.
1341
1342Added a check to e2fsk to now make sure the '.' and '..' directory
1343entries are null terminated, since the 2.0 kernel requires it.
1344
1345Added check to write_bitmaps() to make sure the superblock doesn't get
1346trashed if the inode or block bitmap is marked as being block zero.
1347
1348Added checking of the new feature set fields in the superblock, to
1349avoid dealing with new filesystem features that this package wasn't
1350set up to handle.
1351
1352Fixed a fencepost error in ext2fs_new_block() which would occasionally
1353try to allocate a block beyond the end of a filesystem.
1354
1355When the UUID library picks a random IEEE 802 address (because it
1356can't find one from a network card), it sets the multicast bit, to
1357avoid conflicting with a legitimate IEEE 802 address.
1358
1359Mke2fs now sets the root directory's owner to be the real uid of the
1360user running mke2fs. If the real uid is non-zero, it also sets
1361the group ownership of the root directory to be the real group-id of
1362the user running mke2fs.
1363
1364Mke2fs now has more intelligent error checking when it is given a
1365non-existent device.
1366
1367When badblocks is given the -vv option, it now updates the block that
1368it is currently testing on every block.
1369
1370Fixed a bug in fsck where it wouldn't modify the PATH envirnoment
1371currently correctly if PATH wasn't already set.
1372
1373Shared libraries now built with dependencies. This allows the shared
1374library files to be used with dlopen(); it also makes the transition
1375to libc 6 easier, since ld.so can tell which libc a particular shared
1376library expects to use.
1377
1378Programmer's notes:
1379-------------------
1380
1381Added new abstraction (defined in dblist.c) for maintaining a list of
1382blocks which belongs to directories. This is used in e2fsck and other
1383programs which need to iterate over all directories.
1384
1385Added new functions which test to see if a contiguous range of blocks
1386(or inodes) are available. (ext2fs_*_bitmap_range).
1387
1388Added new function (ext2_inode_has_valid_blocks) which returns true if
1389an inode has valid blocks. (moved from e2fsck code).
1390
1391Added new function (ext2fs_allocate_tables) which allocates the
1392meta-data blocks as part of initializing a filesystem. (moved from
1393mke2fs code).
1394
1395Added a new I/O manager for testing purposes. It will either allow a
1396program to intercept I/O requests, or print debugging messages to
1397trace the activity of a program using the I/O manager.
1398
1399The badblocks_list functions now store the bad blocks in a sorted
1400order, and use a binary search to speed up badblocks_list_test.
1401
1402The inode scan function ext2fs_get_next_inode() may now return a soft
1403error returns: MISSING_INODE_TABLE and BAD_BLOCK_IN_INODE_TABLE in
1404those cases where part of an inode table is missing or there is a bad
1405block in the inode table.
1406
1407Added a new function (ext2fs_block_iterate2) which adds new arguments to
1408the callback function to return a pointer (block and offset) to the
1409reference of the block.
1410
1411Added new function (ext2fs_inode_scan_goto_blockgroup) which allows an
1412application to jump to a particular block group while doing an inode
1413scan.
1414
1415The badblocks list functions were renamed from badblocks_* to
1416ext2fs_badblocks_*. Backwards compatibility functions are available
1417for now, but programs should be modified to use the new interface.
1418
1419Some of the library functions were reorganized into separate files to
1420reduce the size of some programs which statically link against the
1421ext2 library.
1422
1423Put in some miscellaneous fixes for the Alpha platform.
1424
Theodore Ts'o5c576471997-04-29 15:29:49 +00001425
1426E2fsprogs 1.06 (October 7, 1996)
1427================================
1428
1429Fixed serious bug in e2fsck: if the block descriptors are bad, don't
1430smash the backup copies in ext2fs_close(). (The problem was that when
1431e2fsck -p discovered the problem, while it was closing the filesystem
1432and exiting, it was also blowing away the backup superblocks on the
1433disk, which was less than friendly.) We now make it the case that we
1434only write out the backup superblock and the back block descriptors if
1435the filesystem is completely free from problems.
1436
1437Fixed a bug in block_interate in the lib/ext2fs library which caused
1438e2fsck to fail on GNU Hurd-created filesystems.
1439
1440Add support for Linux/FT's bootloader, which actually uses
1441EXT2_BOOT_LOADER, and sets its mode bits which caused e2fsck to want
1442to clear the inode.
1443
1444Add support for the "A" (no atime update) attribute. (Note: this
1445attribute is not yet in production kernels.)
1446
1447The test suite is not automatically run when doing a "make all" from
1448the top level directory. Users should manually run "make check" if
1449they wish to run the test suite.
1450
1451Upon a preenhalt(), make the printed message more explicit that
1452running e2fsck "MANAULLY" means without the -p or -a options.
1453
1454In e2fsck, if a disconnected inode is zero-length, offer to clear it
1455instead of offering to connect it to lost+found.
1456
1457In e2fsck, if a filesystem was just unmounted uncleanly, and needs
1458e2fsck to be run over it, change e2fsck to explicitly display this
1459fact.
1460
1461For dumpe2fs and e2fsck, cause the -V option to print out which
1462version of the ext2fs library is actually getting used. (This will
1463help detect mismatches of using a 1.06 utility with a 1.05 library,
1464etc.)
1465
1466Programmers' notes:
1467-------------------
1468
1469EXT2_SWAP_BYTES was changed to EXT2_FLAG_SWAP_BYTES, which better fits
1470the naming convention.
1471
1472In ext2fs_initialize(), make sure the description for the inode bitmap
1473is correctly initialize.
1474
1475Fixed minor type typo in ext2fs_allocate_generic_bitmap();
1476
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001477E2fsprogs 1.05 (September 7, 1996)
1478==================================
1479
1480Add support for new fields in the ext2 superblock --- volume name,
1481volume UUID, and last mounted field. Dumpe2fs displays these fields,
1482tune2fs and mke2fs allows you to set them. E2fsck will automatically
1483generate a UUID for those volumes that don't have them.
1484
1485Put in support for e2fsck to recognize HURD specific ext2 features ---
1486most notably, the translator block. The e2fsprogs tools will now use
1487the creator_os field in the superblock to correctly handle different
1488OS-specific variants of the ext2 filesystem.
1489
1490E2fsck now fixes inodes which have a the deletion time set, but which
1491have a non-zero i_link_count field by offering to clear the deletion
1492time. Previously e2fsck assumed that the inode was deleted (per 0.3c
1493ext2 kernel behavior) and offered to unlink the file.
1494
1495If e2fsck sets the clean bit, but nothing else, set the exit code
1496FSCK_NONDESTRUCT. After all, e2fsck did fix a filesystem error --- it
1497set the filesystem valid bit when it was previously cleared. :-) This
1498was needed to make the HURD fsck driver happy.
1499
1500If the user refuses to attach an unattached inode, e2fsck will no
1501longer set the inode's link count. Otherwise, the inode would end up
1502getting marked as unused, which might cause loss of data later.
1503
1504Make the message issued by e2fsck when the superblock is corrupt less
1505confusing for users. It now mentions that another reason for the
1506"corrupt superblock" message might be that the partition might not be
1507an ext2 filesystem at all (it might swap, msdos filesystem, ufs, etc.)
1508
1509Make the libext2 library more robuest so that e2fsck won't coredump on
1510an illegal superblock where the blocksize is zero. (f_crashdisk is
1511the test case).
1512
1513By default, create filesystems where the default checkinterval is 6
1514months (180 days). Linux servers can be robust enough that 20 reboots
1515can be a long, long time.
1516
1517Added configure flag --enable-old-bitops, which forces the bitops to
1518use the old (native) bitmask operations. By default on the sparc
1519platform, the standard ext2 bit ordering is now used.
1520
1521Added a new feature to e2fsck to byte-swap filesystems; this can be
1522used to convert old m68k filesystems to use the standard byte-order
1523storage for the superblock, inodes, and directory blocks. This
1524function is invoked by using the '-s' option to e2fsck.
1525
1526Debugfs's "dump" command has been enhanced so that it writes out the
1527exact size of the file so that the nulls at the end of the file are
1528eliminated. The command also accept a new "-p" option which will
1529attempt preserve to preserve the ownernship, permissions, and
1530file modification/access times.
1531
1532Debugfs has two new options, -f and -R. The -R option allows the user
1533to execute a single debugfs command from the command line. The -f
1534option allows the user to specify a "command file" containing debugfs
1535commands which will get executed.
1536
1537Dumpe2fs now pretty prints the check interval, instead of just
1538printing the check interval as a number of seconds.
1539
1540Fix bugs in debugfs: the params command when no filesystem is opened
1541no longer causes a core dump. It is now possible to unlink a file
1542when a pathame containing a '/' is specified.
1543
1544Tune2fs has a new -C option which sets the number of times the
1545filesystem has been mounted.
1546
1547Fix the chattr '-v' option so that it actually works. Chattr was
1548being buggy about the -v option parsing.
1549
1550Programmers' notes:
1551-------------------
1552
1553The directory lib/uuid contains a set of library routines to generate
1554DCE compatible UUIDs.
1555
1556Extended ext2fs_namei() to handle symbolic links. Added new function
1557ext2fs_nami_follow() which will follow last symbolic link in the case
1558where the pathname points to a sym link.
1559
1560The ext2fs_block_iterate function will now return the HURD translator
1561block, if present. The new flag BLOCK_FLAG_DATA_ONLY will cause the
1562iterator to return data blocks only. The ext2fs.h file now defines
1563constants BLOCK_COUNT_IND, BLOCK_COUNT_DIND, BLOCK_COUNT_TIND, and
1564BLOCK_COUNT_TRANSLATOR, which are the magic values passed in the block
1565count field of the iterator callback function.
1566
1567The test script driver now takes an optional second argument, which is
1568the test case to be run. This allows you to run a test case without
1569needing to run the entire test suite.
1570
1571On Linux ELF systems, install the .so files in the correct places
1572(/usr/lib). The .so files must be stored in the same directory as the
1573.a files.
1574
1575Fixed miscellaneous HURD compilation issues with header file being
1576included in the right order.
1577
1578Fixed debugfs so that it resets optind to zero, not one, since setting
1579optind to zero is more correct.
1580
1581
Theodore Ts'oa4d09611997-04-29 14:28:00 +00001582E2fsprogs 1.04 (May 16, 1996)
1583=============================
1584
1585First "official" (1.03 was a limited release only) to support building
1586e2fsprogs under Linux 2.0 kernels (as well as late model 1.3 and 1.99
1587kernels).
1588
1589This package includes a RPM specs file, that it can be built using the
1590RedHat Package Manager.
1591
1592E2fsck now prints a hint that if there are lots of incorrectly located
1593inode bitmaps, block bitmaps, and inode table blocks, the user might
1594want to try using e2fsck -b 8193 first, to see if that fares any
1595better.
1596
1597For ext2 filesystem written with the hurd, debugfs will now print out
1598the translator field when printing an inode structure.
1599
1600Lots of miscellaneous linking/installation cleanups:
1601
1602 Libraries are now linked using a relative pathname, instead of
1603 relying on -L working correct. It doesn't, in many cases, including
1604 current versions of GNU ld. This guarantees that the build tree is
1605 linking with the right libraries, instead of the ones installed in
1606 /usr/lib.
1607
1608 Header files, man pages, and the et/ss shell scripts are now
1609 generated using a custom substitution script, instead of relying on
1610 the configure script. This prevents needless recompilation of
1611 files; in addition, the custom substitution script is much faster.
1612
1613 e2fsck may now be linked dynamically, by using the
1614 --enable-dynamic-e2fsck flag to configure. This is not recommended,
1615 since it increases e2fsck's dependence on other files, but some
1616 people need to save disk space, and other critical programs on their
1617 systems were being linked dynamically anyway.
1618
1619 Programs such as fsck which didn't need to be linked against
1620 libext2fs (or mke2fs which didn't need to be linked against libe2p)
1621 only link against libraries they actually need. Otherwise, those
1622 programs would require the presense of libraries that otherwise
1623 could be removed from a rescuse diskette.
1624
1625 The ss include files are now installed correctly so they can
1626 actually be used by another package.
1627
1628 If the profiling libraries are built, they are now installed on a
1629 "make install-libs".
1630
1631
Theodore Ts'o7f88b041997-04-26 14:48:50 +00001632E2fsprogs 1.03 (March 27, 1996)
1633===============================
1634
1635Change the m68k bit numbering for bitmasks to match the bit numbering
1636used by all other ext2 implementations. (This change was requested by
1637the m68k kernel development team.)
1638
1639Support (in-development) filesystem format revision which supports
1640(among other things) dynamically sized inodes.
1641
1642Fixed a bug in the ext2 library so that an intelligent error is
1643returned if mke2fs is run with a ridiculously small number of blocks
1644for a partition.
1645
1646Fixed a bug in the ext2 library which required that the device be
1647openable in read/write mode in order to determine its size. This
1648caused e2fsck -n to require read/write access when it was not
1649previously necessary.
1650
1651Fixed a bug in e2fsck which casued it to occasionally fail the test
1652suite depending on which version of the floating point library it was
1653using.
1654
1655Fixed a bug in e2fsck so that it now halts with a fatal error when
1656certain superblock consistency checks fail. Previously it continued
1657running e2fsck, with some potential confusing/damaging consequences.
1658
1659Added new flag to fsck which allows the root to be checked in parallel
1660with other filesytems. This is not the safest thing in the world to
1661do, but some system administrators really wanted it.
1662
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001663Fixed -Wall flames in lib/ss.
1664
Theodore Ts'o74becf31997-04-26 14:37:06 +00001665
1666E2fsprogs 1.02 (January 16, 1996)
1667=================================
1668
1669Fix to allow e2fsprogs to be compiled on recent 1.3 (pl45+) kernels.
1670
1671Change e2fsck to print statistics of how many non-contiguous files are
1672on the system. Note that a file which is larger than 8k blocks, it is
1673guaranteed to be non-contiguous.
1674
1675In mke2fs, print a warning message if a user tries to format a whole
1676disk (/dev/hda versus /dev/hda1). If a user really wants to format a
1677whole disk, the -F (force) option forces mke2fs to format a whole disk
1678as a filesytem.
1679
1680Fix a bug in fsck where in some cases it might start checking
1681partitions in the next pass before it finishes checking partitions in
1682the current pass. This still won't cause two partitions on the same
1683disk will be checked, so it's rarely a problem in real life.
1684
1685Patch lsattr so that it won't hang when checking a named pipe.
1686
1687Minor compilation fixes:
1688 * Fix the order of libraries that were linked in debugfs.
1689 * Allow the sources to be compiled with -ansi turned on.