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