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