blob: 7386c1d4ebc200bfb84bedfc2f0f91d17792f6ce [file] [log] [blame]
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +00001E2fsprogs 1.15 (July 18, 1999)
Theodore Ts'oe2a99be1999-07-19 15:48:08 +00002==============================
Theodore Ts'o6d53db31999-07-03 20:52:21 +00003
4Add configuration checks so that e2fsprogs will compile cleanly on
5Linux 2.3 kernels that have renamed i_version to i_generation.
6
Theodore Ts'oe2a99be1999-07-19 15:48:08 +00007E2fsck now prints a progress/completion bar (and not just a simple
8spinner) if the -C0 option is requested or if it receives a SIGUSR1
9signal. Fsck will automatically manage the (potentially muliple)
10e2fsck processes to print completion bars if it is given a -C option,
11with the right thing happening if multiple filesystems are being
12checked in parallel.
13
14Mke2fs now has better automatic hueristics to determine the filesystem
15parameters to be used for a particular filesystem. Added a new option
16-T which allows the user to specify how the filesystem is to be used,
17which helps mke2fs do a better job selecting the filesystem parameters.
18
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +000019Mke2fs now creates revision 1 filesystems by default, and with the
20sparse superblock feature enabled. The sparse superblock feature is
21not understood by Linux 2.0 kernels, so they will report errors when
22mounting the filesystem. This can be worked around by using the mount
23options "check=none".
24
Theodore Ts'o6d53db31999-07-03 20:52:21 +000025Fix bug where if /dev/null couldn't be opened (should never happen),
26e2fsck would hang in a tight loop.
27
28Make e2fsck handle the case where /lost+found isn't a directory.
29
30E2fsck now uses mallinfo if it exists to get accurate statistics about
31its memory usage.
32
33Fix bug in e2fsck where it wouldn't check to see if a disconnected
34inode had any problems before connecting it to /lost+found.
35
36Add check to e2fsck so it makes sure that total number of inodes in
37the filesystem is a sane number.
38
39Fix fencepost error when clearing an the end of the block bitmap which
40caused the last block in the bitmap not to get cleared.
41
42Cleaned up a number of messages in e2fsck:
43 * The message "Group's #'s copy of the group descriptor..."
44 was fixed so that the correct number would be displayed.
45 * Added missing space in the "disk write-protected" error messsage
46 * Cleaned up the error message printed when a non-interactive
47 e2fsck needs to abort a check because the filesystem
48 appears to be mounted.
49
50Added a new command-line utility, uuidgen, which will create and print
51a UUID.
52
53Make debugfs's icheck command more robust by checking to make sure an
54inode has valid blocks before interarting over the inode's blocks.
55
56UUID generation now uses a random-based scheme whenever possible to
57prevent potential privacy problems.
58
59Man pages for all of the UUID functions in the lirbary were added.
60
61Fixed bug in fsck so it won't coredump if a filesystem not in
62/etc/fstab is given to it.
63
64Fsck now understands the UUID=xxxx and LABEL=yyyy forms in /etc/fstab
65that most of the other mount utilities understands.
66
67Mke2fs will make a filesystem even if it appears mounted if the force
68option is given.
69
70Dumpe2fs has new command-line options which allow a filesystem expert
71to specify the superblock and blocksize when opening a filesystem.
72This is mainly useful when examining the remains of a toasted
73filesystem.
74
75The badblocks program has been updated to display correctly on disks
76with large block numbers.
77
Theodore Ts'oe2a99be1999-07-19 15:48:08 +000078The badblocks program no longer gives spurious errors when errors
79occur on non-block boundaries, which is common if the blocksize is
80larger than 1k.
81
Theodore Ts'o6d53db31999-07-03 20:52:21 +000082Mke2fs will sync the disk device every MKE2FS_SYNC block groups if the
83MKE2FS_SYNC environment variable is set. This is to work around a VM
84bug in the 2.0 kernel. I've heard a report that a RAID user was able
Theodore Ts'oa39f3ef1999-07-20 02:02:40 +000085to trigger it even using a 2.2 kernel, but hopefully it will not be
86needed for most Linux 2.2 users.
Theodore Ts'o6d53db31999-07-03 20:52:21 +000087
88Fixed miscellaneous documentation and man pages.
89
90Programmer's notes:
91-------------------
92
93Cleaned up functions such as pass1_get_blocks, pass1_read_inode which
94in e2fsck's pass1.c really should have been static.
95
96The return value of the uuid_compare() function was changed to make it
97match with the convetions used by strcmp, memcmp, and Paul Leach's
98UUID sample document.
99
100The "make depend" process has now been made more automated; it now
101automatically word-wraps the dependencies, and only replaces source
102Makefile.in if there has been a change in the dependencies. Also, a
103top-level "make depend" now recurses through all the subdirectories
104automatically.
105
106The Makefile in .../util has been changed so that subst is built using
107the native C compiler during a cross-compilation, since the subst
108program is only used during the build process. Also add an explicit
109rule to build util/subst by cd'ing to the correct directory and
110running Makefile.
111
112The man directories are defined in terms mandir, so that the configure
113script can override the location of the manual pages.
114
115The config files have been updated to recognize new machine types for
116both the i386 and alpha families.
117
118Fsck has been modified so that it will accurately create an
119fsck_instance even when the noexecute flag is set. This allows for
120accurate debugging of the fsck pass structure. Also, when the verbose
121flag is given twice, fsck will print debugging information about when
122fsck is waiting for jobs to finish.
123
124
Theodore Ts'o14790ed1999-01-12 23:32:52 +0000125E2fsprogs 1.14 (January 9, 1999)
126================================
127
128Fix the fstab parsing code so that it can handle blank lines and
129comment characters. Also, missing pass numbers need to be treated as
130zero.
131
132Fixed a bug in e2fsck where under some circumstances (when e2fsck
133needs to restart processing after fixing an egregious inconsistency)
134it would try to access already freed memory.
135
136E2fsck now prints non-printable characters in directory entries and
137pathnames using '^' and 'M-' notation.
138
139Fixed chattr so that it will ignore symbolic links when doing
140recursive descent traversals. For both chattr and lsattr, no longer
141print the version string unless the -V option is given.
142
143Allow the system administrator to directly specify the number of
144inodes desired in the filesystem, for some special cases where this is
145necessary.
146
147Fix portability problems so that e2fsprogs can be compiled under Linux
1481.2 systems and Solaris systems.
149
150Update the config.guess file with a more recent version that will
151identify newer Linux platforms.
152
153Programmer's notes
154------------------
155
156Ext2fs_read_inode and ext2fs_write_inode will now return an error if
157an inode number of zero is passed to them.
158
Theodore Ts'o556ad131998-12-19 08:10:58 +0000159E2fsprogs 1.13 (December 15, 1998)
160==================================
161
162Fixed a bug in debugfs where an error messages weren't getting printed
163when the ext2 library routines to read inodes returned errors in the
164stat, cmri and rm commands.
165
166Fixed a bug in mke2fs so that if a ridiculous inode ratio parameter is
167provided, it won't create an inode table smaller than the minimum
168number of inodes required for a proper ext2 filesystem.
169
170Fsck now parses the /etc/fstab file directly (instead of using
171getmntent()), so that it can distinguish between a missing pass number
172field and pass number field of zero. This caused problems for
173diskless workstations where all of the filesystems in /etc/fstab have
174an explicit pass number of zero, and fsck could not distinguish this
175from a /etc/fstab file with missing pass numbers.
176
177E2fsck will create a /lost+found directory if there isn't one in the
178filesystem, since it's safer to create the lost+found directory before
179it's needed.
180
181Fixed e2fsck so that it would detect bogus immutable inodes which
182happen to be sockets and FIFO files, and offer to clear them.
183
184If a filesystem has multiple reasons why it needs to be checked, and
185one of the reasons is that it is uncleanly mounted, e2fsck will print
186that as the reason why the filesystem is being checked.
187
188Cleaned up the output routines of mke2fs so that it doesn't overflow
189an 80 column display when formating really big filesystems.
190
191Added a sanity check to e2fsck to make sure that file descriptors 0,
1921, 2 are open before opening the hard disk. This avoids a problem
193where a broken program might exec e2fsck with those file descriptors
194closed, which would cause disastrous results if the kernel returns a
195file descriptor for the block device which is also used by FILE *
196stdout.
197
198Fixed up the e2fsck progress reporting functions so that the values
199reliably reach 100% at the completion of all of the e2fsck passes.
200
201Fixed minor documentation bugs in man pages and usage messages.
202
203Programmer's notes:
204-------------------
205
206Fixed a number of lint warnings in the ext2fs library and potential
207portability problems from other OS's header files that might define
208CPP macros for names like "max" and "min".
209
210ext2fs_badblocks_list_add() has been made more efficient when it needs
211to grow the bad blocks list.
212
213Fixed a bug in e2fsck which caused it to dereference a freed pointer
214just before exiting.
215
216Fixed the substition process for generating the mk_cmds and compile_et
217scripts so that they will work outside of the build tree.
218
219Add sanity check to e2fsck so that if an internal routine
220(ext2fs_get_dir_info) returns NULL, avoid dereferencing the pointer
221and causing a core dump. This should never happen, but...
222
Theodore Ts'oa5696711998-07-09 05:38:07 +0000223E2fsprogs 1.12 (July 9, 1998)
Theodore Ts'o21d53851998-02-21 03:14:50 +0000224==================================
225
226E2fsprogs now works with glibc (at least with the version shipped wtih
227RedHat 5.0). The ext2fs_llseek() function should now work even with
228i386 ELF shared libraries and if llseek() is not present. We also
229explicitly do a configure test to see if (a) llseek is in libc, and
230(b) if llseek is declared in the system header files. (See standard
231complaints about libc developers don't understand the concept of
232compatibility with previous versions of libc.)
233
Theodore Ts'oc9833a61998-07-05 19:37:53 +0000234The ext2fs library now writes out the block group number in each of
235the superblock copies. This makes it easier to automatically
236determine the starting block group of the filesystem when the block
237group information is trashed.
238
239Added support for the EXT2_FEATURE_INCOMPAT_FILETYPE feature,
Theodore Ts'o101c84f1998-03-24 16:27:11 +0000240which means that e2fsprogs will ignore the high 8 bits of the
241directory entry's name_len field, so that it can be used for other
242purposes.
243
244Added support for the EXT2_FEATURE_RO_COMPAT_LARGE_FILE feature.
245E2fsprogs will now support filesystems with 64-bit sized files.
246
247Added support for the EXT2_FEATURE_COMPAT_DIR_PREALLOC feature.
248
Theodore Ts'o21d53851998-02-21 03:14:50 +0000249Added new program "e2label", contributed by Andries Brouwer. E2label
250provides an easy-to-use interface to modify the filesystem label.
251
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000252Fixed bug so that lsattr -v works instead of producing a core dump.
253
Theodore Ts'o21d53851998-02-21 03:14:50 +0000254Fixed a minor bug in mke2fs so that all groups with bad superblock
255backup blocks are printed (not just the first one).
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +0000256
257Mke2fs will check the size of the device, and if the user specifies a
258filesystem size larger than the apparent size of the device it will
259print a warning message and ask if the user wants to proceed.
260
Theodore Ts'oc9833a61998-07-05 19:37:53 +0000261E2fsck has a new option -C, which sends completion information to the
262specified file descriptor. For the most part, this is intended for
263programs to use, although -C 0 will print a spinning character to the
264stdout device, which may be useful for users who want to see something
265happening while e2fsck goes about its business.
266
Theodore Ts'o21d53851998-02-21 03:14:50 +0000267Fixed a bug in e2fsck which could cause a core dump when it needs to
268expand the /lost+found directory, and sometimes the bitmaps haven't
269been merged in. Also fixed a related bug where ext2fs_write_dir_block
270was used to write out a non-directory block. (Which would be bad on a
271non-Intel platform with byte swapping going on.)
272
273Fixed bug in e2fsck where it would print a "programming error" message
274instead of correctly identifying where a bad block was in used when
275the bad block was in a non-primary superblock or block group
276descriptor. Also fixed a related bug when sparse superblocks are in
277use and there is a bad block where a superblock or block group
278descriptor would have been in a group that doesn't include a
279superblock.
280
281Fixed a bug in e2fsck (really in libext2fs's dblist function) where if
282the block group descriptor table is corrupt, it was possible to try to
283allocate a huge array, fail, and then abort e2fsck.
284ext2fs_get_num_dirs() now sanity checks the block group descriptor,
285and subsitutes reasonable values if the descriptors are obviously bogus.
286
287If e2fsck finds a device file which has the immutable flag set and the
288i_blocks beyond the normal device number are non-zero, e2fsck will
289offer to remove it, since it's probably caused by garbage in the inode
290table.
291
292When opening a filesystem, e2fsck specially checks for the EROFS error
293code, and prints a specific error message to the user which is more
294user friendly.
295
296If the filesystem revision is too high, change the e2fsck to print
297that this is either because e2fsck is out of date, or because the
298superblock is corrupt.
299
300E2fsck now checks for directories that have duplicate '.' and '..'
301entries, and fixes this corruption.
302
303E2fsck no longer forces a sync of the filesystem (with attendant sleep
304calls) at all times. The ext2fs_flush() function now performs a sync
305only if it needed to write data blocks to disk.
306
307Fixed a minor bug in e2fsck's pass1b's file cloning function, where
308certain errors would not be properly reported.
309
310Updated and expanded a few points in the man pages which users
311complained wheren't explicit enough.
312
313Added special case byte-swapping code if compiling on the PowerPC, to
314accomodate the strange big-endian variant of the ext2 filesystem that
315was previously used on the PowerPC port.
316
317
318Programmer's notes:
319-------------------
320
321Removed C++ keywords from the ext2fs libraries so that it could be
322compiled with C++.
323
324E2fsck's internal organization has now been massively reorganized so
325that pass*.c don't have any printf statements. Instead, all problems
326are reported through the fix_problem() abstraction interface. E2fsck
327has also been revamped so that it can be called as a library from a
328application.
329
330Added new fileio primitives in libext2fs for reading and writing
331files on an unmounted ext2 filesystem. This interface is now used by
332debugfs.
333
334Added a new libext2fs function for mapping logical block numbers of
335a file to a physical block number.
336
337Added a new libext2fs function, ext2fs_alloc_block(), which allocates
338a block, zeros it, and updates the filesystem accounting records
339appropriately.
340
341Added a new libext2fs function, ext2fs_set_bitmap_padding(), which
342sets the padding of the bitmap to be all one's. Used by e2fsck pass 5.
343
344The libext2fs functions now use a set of memory allocation wrapper
345functions: ext2fs_get_mem, ext2fs_free_mem, and ext2fs_resize_mem,
346instead of malloc, free, and resize. This makes it easier for us to
347be ported to strange environments where malloc, et. al. aren't
348necessarily available.
349
350Change the libext2fs fucntion to return ext2-specific error codes
351(EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND, for example) instead of using
352and depending on the existence of system error codes (such as EEXIST
353and ENOENT).
354
355Renamed io.h to ext2_io.h to avoid collision with other OS's header
356files.
357
358Add protection against ext2_io.h and ext2fs.h being included multiple
359times.
360
361The types used for memory lengths, etc. have been made more portable.
362In generla, the code has been made 16-bit safe. Added Mark
363Habersack's contributed DOS disk i/o routines.
364
365Miscellaneous portability fixes, including not depending on char's
366being signed.
367
368The io_channel structure has a new element, app_data, which is
369initialized by the ext2fs routines to contain a copy of the filesystem
370handle.
371
372ext2fs_check_directory()'s callback function may now return the error
373EXT2_ET_CALLBACK_NOTHANDLED if it wishes ext2fs_check_directory() to
374really do the checking, despite the presence of the callback function.
375
376
Theodore Ts'obc210071997-06-17 05:41:36 +0000377E2fsprosg 1.11 (June 17, 1997)
378==============================
379
380Fixed e2fsck to detect (previously ignored) conflicts between the
381superblock or block group descriptors and block bitmaps, inode
382bitmaps, and inode tables.
383
384Fixed bug in e2fsck so that when the message printed out when a block
385or inode bitmap conflicts with other data, it has the correct group
386number.
387
388Fixed bug in e2fsck and mke2fs where the blocksize wasn't being passed
389to badblocks. This meant that not all of the filesystem was being
390tested for bad blocks!
391
392Fixed an array boundary overrun case which cropped up in
393ext2fs_badblocks_list_test when a user tried running "mke2fs -c
394-b 4096".
395
396Adjusted the number of columns printed by mke2fs when displaying the
397superblock backups to avoid running over 80 columns when making a
Theodore Ts'o21d53851998-02-21 03:14:50 +0000398really big filesystem.
Theodore Ts'obc210071997-06-17 05:41:36 +0000399
400Fixed up the man pages for e2fsck, debugfs, badblocks, chattr,
401dumpe2fs, fsck, mke2fs, and tune2fs (typos and other minor grammar
402fixes), thanks to some suggestions from Bill Hawes (whawes@star.net).
403
404Programmer's notes:
405-------------------
406
407Fixed install rule in lib/ss so that ss_err.h is actually getting
408installed.
409
410Fixed bug in ext2fs_copy_bitmap; the destination bitmap wasn't getting
411bassed back to the caller.
412
413Fixed bug in ext2fs_inode_scan_goto_blockgroup; it had not been
414setting the current inode number (which meant this function wasn't
415working at all).
416
417Fixed bug in ext2fs_resize_generic_bitmap; it had not be zeroing all
418blocks in the bitmap when increasing the size of the bitmap.
419
420Changed the initial number of blocks allocated by ext2fs_init_dblist()
421to be more realistic.
422
423Added a new function ext2fs_allocate_group_table, which sets up the
424group descriptor information (and allocates inode and block bitmaps,
425and inode tables for a particular group). The function was created by
426factoring out code form ext2fs_allocate_tables().
427
428Added a new function ext2fs_move_blocks which takes a bitmap of the
429blocks to be moved, and moves them to another location on the
430boardboard.
431
432Make the unix_io channel's io_channel_flush implementation calls sync()
433to to flush the kernel buffers to disk.
434
435Added a new function ext2fs_dblist_count returns the number of
436directory blocks in dblist.
437
438
Theodore Ts'oae851481997-04-29 18:13:24 +0000439E2fsprogs 1.10 (April 24, 1997)
440===============================
441
442Mke2fs once again defaults to creating revision #0 filesystems, since
443people were complaining about breaking compatibility with 1.2 kernels.
444Warning messages were added to the mke2fs and tune2fs man pages that
445the sparse superblock option isn't supported by most kernels yet (1.2
446and 2.0 both don't support parse superblocks.)
447
448Added new flag to mke2fs, -R <raid options>, which allows the user to
449tell mke2fs about the RAID configuration of the filesystem. Currently
450the only supported raid option is "stride" which specifies the width
451of the RAID stripe.
452
453Fixed bug in e2fsck where pass1b would bomb out if there were any
454blocks marked bad in the inode table.
455
456Fixed rare bug in mke2fs where if the user had a very unlucky number
457of blocks in a filesystem (probability less than .002) the resulting
458filesystem would be corrupt in the last block group.
459
460Fixed bug where if e2fsck tried to allocate a block to fix a
461filesystem corruption problem and the filesystem had no free blocks,
462ext2fs_new_block() would loop forever.
463
464The configure script now checks explicitly to see if "-static" works,
465since that can't be assumed to be true --- RedHat doesn't install
466libc-static by default.
467
468Fixed bug in libext2's block iterator functions where under some
469cirmcustances, file with holes would cause the bcount parameter to the
470callback function to be incorrect. This bug didn't affect any of
471e2fsprogs programs, but it was discovered by Paul Mackerras, the
472author of the PPC boot loader.
473
474Removed use of static variables to store the inode cache in libext2fs.
475This caused problems if more than one filesystem was accessed via
476libext2fs (static variables in libraries are generally a bad idea).
477Again, this didn't affect e2fsprogs programs, but it was discovered by
478Paul Mackerras.
479
480Fixed minor bugs and version code drift to assure that e2fsprogs 1.10
481will compile cleanly with 1.2.13 kernels (even with a.out shared
482libraries!)
483
484Programmer's notes:
485-------------------
486
487Added new functions to duplicate an ext2 filesystem handle, and its
488associated substructure. New functions: ext2fs_dup_handle(),
489ext2fs_copy_dblist(), ext2fs_badblocks_copy(), ext2fs_copy_bitmap().
490Other structures, such as the io_channel and the inode_cache, now have
491a ref count so that they only get freed when they are no longer used
492by any filesystem handle. (These functions were added as part of the
493development effort for an ext2 resizer).
494
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +0000495E2fsprogs 1.09 (April 14, 1997)
496===============================
497
498Fixed bug in mke2fs (really in lib/ext2fs/initialize.c) which was
499accidentally introduced in the 1.08 release. The overhead calculation
500was accidentally removed, which caused ext2fs_initialize() to not
501notice when the filesystem size needed to be adjusted down because
502there wasn't enough space in the last block group.
503
504Fixed bug in version parsing library routine; it was always parsing
505the library version string, instead of using the passed-in string.
506
507Clarified chattr man page.
508
Theodore Ts'o24757fa1997-04-29 17:39:27 +0000509E2fsprogs 1.08 (April 10, 1997)
510===============================
511
512E2fsck 1.07 was very slow when checking very large filesystems with a
513lot of files that had hard links (i.e., news spools). This was fixed
514by seriously revamping the icount abstraction. Added a formal test
515suite for the icount abstraction.
516
517Debugfs now has a "-l" option to the "ls" command, which lists the
518inode number, permissions, owner, group, size, and name of the files
519in the directory.
520
521Fix a bug in e2fsck where when a directory had its blocks moved to
522another location during the pass 1b processing, the directory block
523list wasn't updated, so pass 2 wouldn't check (and correct) the
524correct directory block.
525
526E2fsck will now treat inodes which contain blocks which are claimed by
527the filesystem metadata by treating them as multiply claimed blocks.
528This way, the data in those blocks can be copied to a new block during
529the pass 1b--1d processing.
530
531E2fsck will attempt to determine the correct superblock number and
532display it in the diagnostic and warning messages if possible.
533
534Add support for a new (incompatible) feature, "sparse_super". This
535feature reduces the number of blocks which contain copies of backup
536superblocks and block group descriptors. (It is only an incompatible
537feature because of a bug in ext2_free_blocks.) mke2fs and tune2fs now
538support a new -s option; e2fsck will recognize filesystems built with
539this feature turned on.
540
541E2fsck now checks the library to make sure is the correct version,
542using new library functions. (This helps to diagnose incorrectly
543installed e2fsprogs distributions.)
544
545Dumpe2fs now prints more information; its now prints the the
546filesystem revision number, the filesystem sparse_super feature (if
547present), the block ranges for each block group, and the offset from
548the beginning of the block group.
549
550Mke2fs now distributes the inode and block bitmap blok so that the
551won't be concentrated in one or two disks in RAID/striping setups.
552Also, if the user chooses a 2k or 4k block group, mke2fs will try to
553choose the largest blocks per group that be chosen. (For 2k blocks,
554you can have up to 16384 blocks/group; for 4k blocks, you can have up
555to 32768 blocks/group.) Previously mke2fs would not allow
556specification of more than 8192 blocks per group, even if you were
557using a 2k or 4k block group.
558
559Programmer's notes:
560-------------------
561
562Added a new function ext2fs_create_icount2() which takes a "hint"
563argument. This hint argument presets the icount array with the list
564of inodes which actually need to be in the icount array. This really
565helps to speed up e2fsck.
566
567Added a new function ext2fs_icount_validate() which checks the rep
568invariant for the icount structure. This is used mostly for testing.
569
570The error mesasage given when a bad inode number is passed to
571test_generic_bitmap to reflect EXT2FS_TEST_ERROR (instead of
572EXT2FS_UNMARK_ERROR).
573
574Added a new function ext2fs_set_dir_block which sets the block of a
575dblist entry, given the directory inode and blockcnt.
576
577Added a new function ext2fs_get_library_version() which returns the
578current library version, and ext2fs_parse_version_string() which
579returns a version number based on a e2fsprogs version string.
580
581The icount functions will return EINVAL if the passed in inode number
582is out of bounds.
583
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000584E2fsprogs 1.07 (March 9, 1997)
585==============================
586
587E2fsck is now uses much less memory when checking really large
588filesystems (or rather, filesystems with a large number of inodes).
589Previously a filesystem with 1 million inodes required 4 megabytes of
590memory to store inode count statistics; that storage requirement has
591now been reduced to roughly half a megabyte.
592
593E2fsck can now properly deal with bad blocks appearing inside the
594inode table. Instead of trying to relocate the inode table (which
595often failed because there wasn't enough space), the inodes in the bad
596block are marked as in use.
597
598E2fsck will automatically try to use the backup superblocks if the
599primary superblocks have a bad magic number or have missing meta-data
600blocks (or meta-data blocks which are out of range).
601
602E2fsck's pass 3 has been made more efficient; most noticeable on
603filesystems with a very large number of directories.
604
605Completely revamped e2fsck's system of printing problem reports. It
606is now table driven, to make them more easily customizeable and
607extendable. Error messages which can be printed out during preen mode
608are now one line long.
609
610Fixed e2fsck's filesystem swapping code so that it won't try to swap
611fast symbolic links or deleted files.
612
613Fixed e2fsck core dumping when fixing a filesystem which has no
614directories (not even a root directory).
615
616Added a check to e2fsck to make sure that the length of every
617directory entry is a multiple of 4 (since the kernel complains if it
618isn't).
619
620Added a check to e2fsck to make sure that a directory entry isn't a
621link to the root directory, since that isn't allowed.
622
623Added a check to e2fsk to now make sure the '.' and '..' directory
624entries are null terminated, since the 2.0 kernel requires it.
625
626Added check to write_bitmaps() to make sure the superblock doesn't get
627trashed if the inode or block bitmap is marked as being block zero.
628
629Added checking of the new feature set fields in the superblock, to
630avoid dealing with new filesystem features that this package wasn't
631set up to handle.
632
633Fixed a fencepost error in ext2fs_new_block() which would occasionally
634try to allocate a block beyond the end of a filesystem.
635
636When the UUID library picks a random IEEE 802 address (because it
637can't find one from a network card), it sets the multicast bit, to
638avoid conflicting with a legitimate IEEE 802 address.
639
640Mke2fs now sets the root directory's owner to be the real uid of the
641user running mke2fs. If the real uid is non-zero, it also sets
642the group ownership of the root directory to be the real group-id of
643the user running mke2fs.
644
645Mke2fs now has more intelligent error checking when it is given a
646non-existent device.
647
648When badblocks is given the -vv option, it now updates the block that
649it is currently testing on every block.
650
651Fixed a bug in fsck where it wouldn't modify the PATH envirnoment
652currently correctly if PATH wasn't already set.
653
654Shared libraries now built with dependencies. This allows the shared
655library files to be used with dlopen(); it also makes the transition
656to libc 6 easier, since ld.so can tell which libc a particular shared
657library expects to use.
658
659Programmer's notes:
660-------------------
661
662Added new abstraction (defined in dblist.c) for maintaining a list of
663blocks which belongs to directories. This is used in e2fsck and other
664programs which need to iterate over all directories.
665
666Added new functions which test to see if a contiguous range of blocks
667(or inodes) are available. (ext2fs_*_bitmap_range).
668
669Added new function (ext2_inode_has_valid_blocks) which returns true if
670an inode has valid blocks. (moved from e2fsck code).
671
672Added new function (ext2fs_allocate_tables) which allocates the
673meta-data blocks as part of initializing a filesystem. (moved from
674mke2fs code).
675
676Added a new I/O manager for testing purposes. It will either allow a
677program to intercept I/O requests, or print debugging messages to
678trace the activity of a program using the I/O manager.
679
680The badblocks_list functions now store the bad blocks in a sorted
681order, and use a binary search to speed up badblocks_list_test.
682
683The inode scan function ext2fs_get_next_inode() may now return a soft
684error returns: MISSING_INODE_TABLE and BAD_BLOCK_IN_INODE_TABLE in
685those cases where part of an inode table is missing or there is a bad
686block in the inode table.
687
688Added a new function (ext2fs_block_iterate2) which adds new arguments to
689the callback function to return a pointer (block and offset) to the
690reference of the block.
691
692Added new function (ext2fs_inode_scan_goto_blockgroup) which allows an
693application to jump to a particular block group while doing an inode
694scan.
695
696The badblocks list functions were renamed from badblocks_* to
697ext2fs_badblocks_*. Backwards compatibility functions are available
698for now, but programs should be modified to use the new interface.
699
700Some of the library functions were reorganized into separate files to
701reduce the size of some programs which statically link against the
702ext2 library.
703
704Put in some miscellaneous fixes for the Alpha platform.
705
Theodore Ts'o5c576471997-04-29 15:29:49 +0000706
707E2fsprogs 1.06 (October 7, 1996)
708================================
709
710Fixed serious bug in e2fsck: if the block descriptors are bad, don't
711smash the backup copies in ext2fs_close(). (The problem was that when
712e2fsck -p discovered the problem, while it was closing the filesystem
713and exiting, it was also blowing away the backup superblocks on the
714disk, which was less than friendly.) We now make it the case that we
715only write out the backup superblock and the back block descriptors if
716the filesystem is completely free from problems.
717
718Fixed a bug in block_interate in the lib/ext2fs library which caused
719e2fsck to fail on GNU Hurd-created filesystems.
720
721Add support for Linux/FT's bootloader, which actually uses
722EXT2_BOOT_LOADER, and sets its mode bits which caused e2fsck to want
723to clear the inode.
724
725Add support for the "A" (no atime update) attribute. (Note: this
726attribute is not yet in production kernels.)
727
728The test suite is not automatically run when doing a "make all" from
729the top level directory. Users should manually run "make check" if
730they wish to run the test suite.
731
732Upon a preenhalt(), make the printed message more explicit that
733running e2fsck "MANAULLY" means without the -p or -a options.
734
735In e2fsck, if a disconnected inode is zero-length, offer to clear it
736instead of offering to connect it to lost+found.
737
738In e2fsck, if a filesystem was just unmounted uncleanly, and needs
739e2fsck to be run over it, change e2fsck to explicitly display this
740fact.
741
742For dumpe2fs and e2fsck, cause the -V option to print out which
743version of the ext2fs library is actually getting used. (This will
744help detect mismatches of using a 1.06 utility with a 1.05 library,
745etc.)
746
747Programmers' notes:
748-------------------
749
750EXT2_SWAP_BYTES was changed to EXT2_FLAG_SWAP_BYTES, which better fits
751the naming convention.
752
753In ext2fs_initialize(), make sure the description for the inode bitmap
754is correctly initialize.
755
756Fixed minor type typo in ext2fs_allocate_generic_bitmap();
757
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000758E2fsprogs 1.05 (September 7, 1996)
759==================================
760
761Add support for new fields in the ext2 superblock --- volume name,
762volume UUID, and last mounted field. Dumpe2fs displays these fields,
763tune2fs and mke2fs allows you to set them. E2fsck will automatically
764generate a UUID for those volumes that don't have them.
765
766Put in support for e2fsck to recognize HURD specific ext2 features ---
767most notably, the translator block. The e2fsprogs tools will now use
768the creator_os field in the superblock to correctly handle different
769OS-specific variants of the ext2 filesystem.
770
771E2fsck now fixes inodes which have a the deletion time set, but which
772have a non-zero i_link_count field by offering to clear the deletion
773time. Previously e2fsck assumed that the inode was deleted (per 0.3c
774ext2 kernel behavior) and offered to unlink the file.
775
776If e2fsck sets the clean bit, but nothing else, set the exit code
777FSCK_NONDESTRUCT. After all, e2fsck did fix a filesystem error --- it
778set the filesystem valid bit when it was previously cleared. :-) This
779was needed to make the HURD fsck driver happy.
780
781If the user refuses to attach an unattached inode, e2fsck will no
782longer set the inode's link count. Otherwise, the inode would end up
783getting marked as unused, which might cause loss of data later.
784
785Make the message issued by e2fsck when the superblock is corrupt less
786confusing for users. It now mentions that another reason for the
787"corrupt superblock" message might be that the partition might not be
788an ext2 filesystem at all (it might swap, msdos filesystem, ufs, etc.)
789
790Make the libext2 library more robuest so that e2fsck won't coredump on
791an illegal superblock where the blocksize is zero. (f_crashdisk is
792the test case).
793
794By default, create filesystems where the default checkinterval is 6
795months (180 days). Linux servers can be robust enough that 20 reboots
796can be a long, long time.
797
798Added configure flag --enable-old-bitops, which forces the bitops to
799use the old (native) bitmask operations. By default on the sparc
800platform, the standard ext2 bit ordering is now used.
801
802Added a new feature to e2fsck to byte-swap filesystems; this can be
803used to convert old m68k filesystems to use the standard byte-order
804storage for the superblock, inodes, and directory blocks. This
805function is invoked by using the '-s' option to e2fsck.
806
807Debugfs's "dump" command has been enhanced so that it writes out the
808exact size of the file so that the nulls at the end of the file are
809eliminated. The command also accept a new "-p" option which will
810attempt preserve to preserve the ownernship, permissions, and
811file modification/access times.
812
813Debugfs has two new options, -f and -R. The -R option allows the user
814to execute a single debugfs command from the command line. The -f
815option allows the user to specify a "command file" containing debugfs
816commands which will get executed.
817
818Dumpe2fs now pretty prints the check interval, instead of just
819printing the check interval as a number of seconds.
820
821Fix bugs in debugfs: the params command when no filesystem is opened
822no longer causes a core dump. It is now possible to unlink a file
823when a pathame containing a '/' is specified.
824
825Tune2fs has a new -C option which sets the number of times the
826filesystem has been mounted.
827
828Fix the chattr '-v' option so that it actually works. Chattr was
829being buggy about the -v option parsing.
830
831Programmers' notes:
832-------------------
833
834The directory lib/uuid contains a set of library routines to generate
835DCE compatible UUIDs.
836
837Extended ext2fs_namei() to handle symbolic links. Added new function
838ext2fs_nami_follow() which will follow last symbolic link in the case
839where the pathname points to a sym link.
840
841The ext2fs_block_iterate function will now return the HURD translator
842block, if present. The new flag BLOCK_FLAG_DATA_ONLY will cause the
843iterator to return data blocks only. The ext2fs.h file now defines
844constants BLOCK_COUNT_IND, BLOCK_COUNT_DIND, BLOCK_COUNT_TIND, and
845BLOCK_COUNT_TRANSLATOR, which are the magic values passed in the block
846count field of the iterator callback function.
847
848The test script driver now takes an optional second argument, which is
849the test case to be run. This allows you to run a test case without
850needing to run the entire test suite.
851
852On Linux ELF systems, install the .so files in the correct places
853(/usr/lib). The .so files must be stored in the same directory as the
854.a files.
855
856Fixed miscellaneous HURD compilation issues with header file being
857included in the right order.
858
859Fixed debugfs so that it resets optind to zero, not one, since setting
860optind to zero is more correct.
861
862
Theodore Ts'oa4d09611997-04-29 14:28:00 +0000863E2fsprogs 1.04 (May 16, 1996)
864=============================
865
866First "official" (1.03 was a limited release only) to support building
867e2fsprogs under Linux 2.0 kernels (as well as late model 1.3 and 1.99
868kernels).
869
870This package includes a RPM specs file, that it can be built using the
871RedHat Package Manager.
872
873E2fsck now prints a hint that if there are lots of incorrectly located
874inode bitmaps, block bitmaps, and inode table blocks, the user might
875want to try using e2fsck -b 8193 first, to see if that fares any
876better.
877
878For ext2 filesystem written with the hurd, debugfs will now print out
879the translator field when printing an inode structure.
880
881Lots of miscellaneous linking/installation cleanups:
882
883 Libraries are now linked using a relative pathname, instead of
884 relying on -L working correct. It doesn't, in many cases, including
885 current versions of GNU ld. This guarantees that the build tree is
886 linking with the right libraries, instead of the ones installed in
887 /usr/lib.
888
889 Header files, man pages, and the et/ss shell scripts are now
890 generated using a custom substitution script, instead of relying on
891 the configure script. This prevents needless recompilation of
892 files; in addition, the custom substitution script is much faster.
893
894 e2fsck may now be linked dynamically, by using the
895 --enable-dynamic-e2fsck flag to configure. This is not recommended,
896 since it increases e2fsck's dependence on other files, but some
897 people need to save disk space, and other critical programs on their
898 systems were being linked dynamically anyway.
899
900 Programs such as fsck which didn't need to be linked against
901 libext2fs (or mke2fs which didn't need to be linked against libe2p)
902 only link against libraries they actually need. Otherwise, those
903 programs would require the presense of libraries that otherwise
904 could be removed from a rescuse diskette.
905
906 The ss include files are now installed correctly so they can
907 actually be used by another package.
908
909 If the profiling libraries are built, they are now installed on a
910 "make install-libs".
911
912
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000913E2fsprogs 1.03 (March 27, 1996)
914===============================
915
916Change the m68k bit numbering for bitmasks to match the bit numbering
917used by all other ext2 implementations. (This change was requested by
918the m68k kernel development team.)
919
920Support (in-development) filesystem format revision which supports
921(among other things) dynamically sized inodes.
922
923Fixed a bug in the ext2 library so that an intelligent error is
924returned if mke2fs is run with a ridiculously small number of blocks
925for a partition.
926
927Fixed a bug in the ext2 library which required that the device be
928openable in read/write mode in order to determine its size. This
929caused e2fsck -n to require read/write access when it was not
930previously necessary.
931
932Fixed a bug in e2fsck which casued it to occasionally fail the test
933suite depending on which version of the floating point library it was
934using.
935
936Fixed a bug in e2fsck so that it now halts with a fatal error when
937certain superblock consistency checks fail. Previously it continued
938running e2fsck, with some potential confusing/damaging consequences.
939
940Added new flag to fsck which allows the root to be checked in parallel
941with other filesytems. This is not the safest thing in the world to
942do, but some system administrators really wanted it.
943
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +0000944Fixed -Wall flames in lib/ss.
945
Theodore Ts'o74becf31997-04-26 14:37:06 +0000946
947E2fsprogs 1.02 (January 16, 1996)
948=================================
949
950Fix to allow e2fsprogs to be compiled on recent 1.3 (pl45+) kernels.
951
952Change e2fsck to print statistics of how many non-contiguous files are
953on the system. Note that a file which is larger than 8k blocks, it is
954guaranteed to be non-contiguous.
955
956In mke2fs, print a warning message if a user tries to format a whole
957disk (/dev/hda versus /dev/hda1). If a user really wants to format a
958whole disk, the -F (force) option forces mke2fs to format a whole disk
959as a filesytem.
960
961Fix a bug in fsck where in some cases it might start checking
962partitions in the next pass before it finishes checking partitions in
963the current pass. This still won't cause two partitions on the same
964disk will be checked, so it's rarely a problem in real life.
965
966Patch lsattr so that it won't hang when checking a named pipe.
967
968Minor compilation fixes:
969 * Fix the order of libraries that were linked in debugfs.
970 * Allow the sources to be compiled with -ansi turned on.