1 2001-09-20 Theodore Tso <tytso@thunk.org>
3 * Release of E2fsprogs 1.25
5 2001-09-19 Theodore Tso <tytso@valinux.com>
7 * unix.c (main): If a superblock is specified explicitly by the
8 user, don't try to automatically fall back to an
11 2001-09-02 Theodore Tso <tytso@thunk.org>
13 * Release of E2fsprogs 1.24a
15 2001-08-30 Theodore Tso <tytso@thunk.org>
17 * Release of E2fsprogs 1.24
19 2001-08-30 Theodore Tso <tytso@valinux.com>
21 * pass1.c (e2fsck_pass1): For EXT2_RESIZE_INO, allow its i_mode to
22 either be zero or a regular file (for compatibility with
23 Andreas's on-line resizing programs).
25 2001-08-27 Theodore Tso <tytso@valinux.com>
27 * unix.c (main): Remove EXT2FS_VERSION from the version display,
28 since it only confuses people.
30 * pass1.c (strnlen): Provide strnlen if libc doesn't.
32 2001-08-15 Theodore Tso <tytso@valinux.com>
34 * Release of E2fsprogs 1.23
36 2001-08-13 Theodore Tso <tytso@valinux.com>
38 * super.c (release_orphan_inodes): If the filesystem contains
39 errors, don't run the orphan * list, since the orphan list
42 * pass1.c (check_size): Fix logic in check_size; the previous code
43 only offered to clear the inode size fields if both size
44 and i_size_high were zero.
45 (e2fsck_pass1_check_device_inode): If i_blocks is
46 non-zero, then assume that the device/socket/fifo inode
49 2001-08-09 Theodore Tso <tytso@valinux.com>
51 * pass1.c, pass2.c, problem.c, problem.h: Fix bug introduced by
52 Andreas's symlink code; check_blocks() was unconditionally
53 testing inode_bad_map without checking to see if it
54 existed first. Fixed problem a different way; we now no
55 longer check inode_bad_map at all, since the file might
56 not get deleted in pass 2 anyway. We move the large file
57 feature reconciliation code to to e2fsck_pass2(), and in
58 deallocate_inode() in pass2.c, we decrement the large
59 files counter if we're about to delete a large file.
61 * unix.c (show_stats): Print the number of large files in verbose
64 2001-08-07 Theodore Tso <tytso@valinux.com>
66 * journal.c (recover_ext3_journal): If s_errno is set in the
67 journal superblock, set the EXT2_ERROR_FS flag in the
68 filesystem superblock after the journal is run.
70 2001-08-04 Andreas Dilger <root@lynx.adilger.int>
72 * message.c: Change comments for %D and %d expansion in e2fsck
73 problem codes. It was not consistent which was for dirent
74 expansion, and which was for directory number expansion.
76 * problem.c (PR_2_FINAL_RECLEN, PR_2_BAD_FILETYPE): Fix problem
77 codes which got caught by the confusion between %D and %d.
79 2001-08-04 Theodore Tso <tytso@valinux.com>
81 * problem.c (PR_2_SYMLINK_SIZE): Change description to make it
82 more clear (and remove %s expansion). Also add missing
83 periods to the end of a number of problem descriptions.
85 * pass2.c (e2fsck_process_bad_inode): Remove unneeded problem
86 context string set now that the problem description for
87 PR_2_SYMLINK_SIZE has been changed.
89 * pass1.c (e2fsck_pass1_check_symlink): Consolidate some checks,
90 and check the validity of the symlink block here (so that
91 we detect this case here instead of later). Also use
92 sizeof(inode->i_block) instead EXT2_LINK_DIR.
94 2001-07-30 Theodore Tso <tytso@valinux.com>
96 * unix.c (check_mount): Remove the code which tested for the root
97 filesystem being mounted read-only, and depend on the
98 results flags from ext2fs_check_if_mounted.
100 2001-07-29 Theodore Tso <tytso@valinux.com>
102 * unix.c (check_if_skip): Free the e2fsck context structure on a
103 normal clean filesystem exit, to make it easier to find
105 (PRS): Only update the path to include /sbin at the
106 beginning if the -c option is given, again to make it
107 easier to find memory leaks.
108 (main): Move the final print_resource_track call after the
109 filesystem and the context are freed.
111 * journal.c (e2fsck_journal_init_dev): Avoid memory leak if we
112 need to search for the journal device.
113 (e2fsck_journal_release): Free the journal IO channel when
114 we release the journal handle, to avoid a memory leak.
116 * e2fsck.c (e2fsck_reset_context): Fix bug; only close the io
117 channel if it is *different* from the filesystem io
120 2001-07-27 Theodore Tso <tytso@valinux.com>
122 * problem.c (PR_1_SET_IMMUTABLE): Clarify problem message.
124 * pass1.c (e2fsck_pass1): Check for symlinks that have the
125 immutable flag set (and offer to clear them).
127 2001-07-26 Theodore Tso <tytso@valinux.com>
129 * pass1.c (e2fsck_pass1): Free ctx->block_ea_map at the end of
132 2001-07-25 Theodore Tso <tytso@valinux.com>
134 * pass1.c (check_ext_attr): Skip zero-length EA entries.
136 * problem.c: PR_1_EA_ALLOC_COLLISION shouldn't abort, but should
137 prompt to clear the EA block.
139 2001-07-22 Theodore Tso <tytso@valinux.com>
141 * journal.c (ll_rw_block): Use ctx->journal_io instead of the
142 filesystem's io_channel.
143 (e2fsck_journal_init_dev): New function which supports
144 initialization of the external journal.
145 (e2fsck_get_journal): Remove code which flagged an error
146 if the superblock reported the use of an external journal.
147 (ext3_journal_via_mount): Remove unsued, #ifdefed out function.
149 * problem.c, problem.h: Removed error codes no longer used
150 (PR_0_JOURNAL_UNSUPP_DEV, PR_0_JOURNAL_BAD_DEV,
151 PR_0_JOURNAL_UNSUPP_UUID) and replace them with new error
152 codes related with failures in loading the external
153 journal (PR_0_JOURNAL_UNSUPP_MULTIFS,
154 PR_0_CANT_FIND_JOURNAL, PR_0_EXT_JOURNAL_BAD_SUPER).
155 Also changed the text assocated with PR_0_JOURNAL_BAD_UUID
156 to reflect the case where the external journal isn't
157 correct for this filesystem.
159 * unix.c (PRS), e2fsck.8.in: Add new option -j which allows
160 the user to specify the pathname to find the external journal.
162 * e2fsck.c (e2fsck_reset_context): Close journal_io if it isn't
163 the same as the filesystem io_channel.
165 * e2fsck.h: Add new fields (journal_io and journal_name) in the
166 context structure to support external journals.
168 2001-07-20 Theodore Tso <tytso@valinux.com>
170 * unix.c (main): Add an explicit warning when the filesystem is
171 left not completely fixed when e2fsck exits. (Addresses
174 2001-07-19 Theodore Tso <tytso@valinux.com>
176 * pass1.c (check_ext_attr): The entire EA block is now checked to
177 make sure that parts of the EA block aren't being used for
180 * Makefile.in e2fsck.h, region.c: New file which is used to detect
181 collisions in extended attribute block.
183 * problem.h, problem.c (PR_1_EA_MULTI_BLOCK, PR_1_EA_ALLOC_REGION,
184 PR_1_EA_ALLOC_COLLISION, PR_1_EA_BAD_NAME,
185 PR_1_EA_BAD_VALUE): Add new problem codes.
187 2001-07-10 Theodore Tso <tytso@valinux.com>
189 * journal.c (e2fsck_run_ext3_journal): Only call ext3_flush() if
190 the superblock is dirty.
192 2001-07-07 Theodore Tso <tytso@valinux.com>
194 * pass1b.c (pass1b, process_pass1b_block): Change the num_bad
195 field calculation so that it only counts EA block entries
196 as a single multiply claimed block (since once we clone
197 the EA blocks for one inode, we fix the problem for all of
198 the other inodes). Also, I moved the num_bad calculation
199 from process_pass1b_block to the end of pass1b. This
200 fixes a *significant* performance bug in pass1b which hit
201 people who had to had a lot of multiply claimed blocks.
202 (Can you say O(n**3) boys and girls? I knew you could...
203 Fortunately, this case didn't happen that much in actual
206 * pass1.c (e2fsck_pass1): Defer inodes which have an extended
207 attribute block for later processing to avoid extra seeks
209 (process_inode_cmp): If there is no indirect block, sort
210 by the extended attribute (i_file_acl) block.
212 * pass1b.c (clone_file_block): Fix bugs when cloning extended
213 attribute blocks. Moved free of block_buf to after the
214 code which clones the extattr block, and fixed logic for
215 changing pointers to the extended attribute field in the
216 inodes which were affected.
217 (decrement_badcount): New function which is used whenever
218 we need to decrement the number of files which claim a
219 particular bad block. Fixed bug where delete_file wasn't
220 checking check_if_fs_block() before clearing the entry in
221 block_dup_map. This could cause a block which was claimed
222 by multiple files as well as the filesystem metadata to
223 not be completely fixed.
225 * pass1.c (adjust_extattr_refcount): Add new function which
226 adjusts the reference counts of extended attribute blocks
227 if needed, both up and down.
228 (e2fsck_pass1): If the refcount or refcount_extra
229 structure are present, call adjust_extattr_refcount(),
230 and free it afterwards.
232 * problem.h, problem.c (PR_1_EXTATTR_READ_ABORT,
233 PR_1_EXTATTR_REFCOUNT, PR_1_EXTATTR_WRITE): Add new
236 2001-07-02 Theodore Tso <tytso@valinux.com>
238 * pass1.c (e2fsck_pass1, check_ext_attr, check_blocks): Add
239 initial support for scanning extended attribute blocks.
241 * e2fsck.c (e2fsck_reset_context): free extended attribute
244 * e2fsck.h: Add new fields for accounting for the extended
247 * Makefile.in, ea_refcount.c, e2fsck.h: Add new file which
248 implements a reference count abstraction.
250 * problem.c, problem.h: Add new problem codes PR_1_ALLOCATE_REFCOUNT,
251 PR_1_READ_EA_BLOCK, PR_1_BAD_EA_BLOCK, PR_2_FILE_ACL_BAD
253 * message.c: Add "@a" as an abbreviation for "extended attribute"
255 * pass1b.c (clone_file): Add code which handles cloning an
256 extended attribute block.
258 * pass1b.c (delete_file):
259 * pass2.c (deallocate_inode): If the inode contains an extended
260 attribute block in the file_acl field, clear it and
261 deallocate the block.
263 2001-06-28 Theodore Tso <tytso@valinux.com>
265 * pass2.c (e2fsck_process_bad_inode): Deal with inodes which are
266 marked bad because of an invalid file_acl (either because
267 EXT2_FEATURE_COMPAT_EXT_ATTR is not set, or because the
268 block number in file_acl is bad.
270 2001-06-29 Theodore Tso <tytso@valinux.com>
272 * unix.c (show_stats): Use long long to calculate the percentage
273 of the number of blocks in use in the filesystem.
275 2001-06-23 Theodore Tso <tytso@valinux.com>
277 * Release of E2fsprogs 1.22
279 2001-06-22 Theodore Tso <tytso@valinux.com>
281 * flushb.c: Use platform independent method of defining the
282 BLKFLSBUF ioctl. Also include sys/mount.h since on newer
283 platforms BLKFLSBUF is defined there.
285 2001-06-19 Theodore Tso <tytso@valinux.com>
287 * super.c (release_inode_blocks): Don't try to release the blocks
288 if the orphaned inode is a device file, symlink, or some
289 other kind of special file that doesn't have a block list.
291 2001-06-15 Theodore Tso <tytso@valinux.com>
293 * Release of E2fsprogs 1.21
295 2001-06-13 Theodore Tso <tytso@valinux.com>
297 * unix.c (check_if_skip): Adapted patch from Andreas Dilger which
298 prints the number of mounts or days elapsed since the last
299 check when e2fsck is forced to check an otherwise clean
302 2001-06-12 Theodore Tso <tytso@valinux.com>
304 * badblocks.c: Stop using the compatibility badblocks function,
305 and use the ext2fs_badblocks_* functions instead.
307 2001-06-11 Theodore Tso <tytso@valinux.com>
309 * unix.c (PRS): Fix bug introduced in 1.20 which broke the -F
312 * Makefile.in: Add message.c and swapfs.c to the list of source
313 files to build the make depend.
315 * swapfs.c, unix.c: Only support the -s and -S options to e2fsck
316 if ENABLE_SWAPFS is defined.
318 2001-06-08 Theodore Tso <tytso@valinux.com>
320 * recover.c, revoke.c: Synchronize with ext3 0.7a
322 2001-06-02 Theodore Tso <tytso@valinux.com>
324 * recovery.c (scan_revoke_records): Fix bug in recovery code;
325 missing byte order conversion.
327 * pass1.c (mark_inode_bad): Replace alloc_bad_map with a function
328 which sets the bit in the bad inode bitmap.
329 (e2fsck_pass1): Check for fast symlinks with an invalid
330 size, and set the bad inode map in that case.
331 (check_size): Check i_size_high for special files and
332 prompt to clear it along with i_size if non-zero.
334 * pass2.c (e2fsck_process_bad_inode): Check for fast symlinks with
335 an invalid size and prompt the user if the inode should be
338 * problem.h, problem.c (PR_2_SYMLINK_SIZE): Added new problem code.
340 2001-06-01 Theodore Tso <tytso@valinux.com>
342 * problem.c, problem.h: Change PR_0_JOURNAL_UNSUPP_INCOMPAT and
343 PR_0_JOURNAL_UNSUPP_ROCOMPAT so they aren't fatal errors,
344 but prompt to see if the user should abort. Removed the
345 PR_0_JOURNAL_RESET_COMPAT problem code.
347 * journal.c (e2fsck_journal_load): If there are incompatible
348 journal flags, just return an error code.
349 (e2fsck_check_ext3_journal): If e2fsck_journal_load
350 returns an error code indicating that there are
351 incompatible journal flag, check to see if we should
352 abort, and then offer to clear the journal.
353 (Addresses Debian bug #98527.)
355 * Makefile.in: Move include/asm/types.h.in to
356 lib/ext2fs/ext2_types.h.in.
358 2001-06-01 Theodore Tso <tytso@valinux.com>
360 * pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode,
361 pass1_check_directory): Add a safety check to make sure
362 ctx->stashed_inode is non-zero.
364 * pass1b.c (pass1b): Use e2fsck_use_inode_shortcuts() to disable
365 the inode shortcut processing, instead of manually
366 clearing only half of the function pointers that needed to
367 be NULL'ed out. This caused nasty bugs if the last inode
368 in the filesystem needed dup block processing.
370 * pass1b.c (clone_file_block): When cloning a directory's metadata
371 block, don't try to update the directory block list
372 database, since indirect blocks aren't stored in the
373 database and the resulting error will abort the file clone
376 2001-05-25 Theodore Tso <tytso@valinux.com>
378 * Release of E2fsprogs 1.20
380 2001-05-25 Theodore Tso <tytso@valinux.com>
382 * journal.c (e2fsck_journal_reset_super): Remove extraneous line
384 2001-05-23 Theodore Tso <tytso@valinux.com>
386 * journal.c (e2fsck_journal_reset_super): Fix bug; the reset
387 journal wasn't getting written out to disk since the dirty
388 bit wasn't being set on the buffer.
389 (e2fsck_journal_load): Don't print an error message if the
390 journal version number is wrong; just return a error code
391 reflecting this fact. If the block type in the journal
392 superblcok is obviously not a version number, report the
393 journal is corrupted.
394 (e2fsck_check_ext3_journal): On an unsupported journal
395 version, prompt to abort by default, but then offer a
396 chance to clear the journal as corrupt.
398 * problem.c, problem.h (PR_0_JOURNAL_UNSUPP_VERSION): Added new
401 2001-05-14 Theodore Tso <tytso@valinux.com>
403 * pass1.c: Treat inodes with a low dtime (that were from a
404 corrupted orphan list) specially.
406 * problem.c, problem.h: Add new problem codes PR_1_LOW_DTIME and
407 PR_1_ORPHAN_LIST_REFUGEES, and a new latch group,
410 * problemP.h: Expand the size of the problem flag to be an int
411 instead of a short. Expand space in the flag word which
412 is reserved for problem latch flags from 3 bits to 8 bits.
414 * e2fsck.h, scantest.c: Change location of ext2_fs.h to be
417 * super.c (check_super_block): Be more strict on checking
418 s_r_blocks_count superblock field.
420 2001-05-13 Theodore Tso <tytso@valinux.com>
422 * problem.c, problem.h (PR_0_JOURNAL_UNSUPP_ROCOMPAT,
423 PR_0_JOURNAL_UNSUPP_INCOMPAT, PR_0_JOURNAL_RESET_COMPAT):
426 * journal.c (e2fsck_journal_load): Use a problem code to
427 report unsupported feature flags. There is code to
428 clear unsupported flags, but since this is dangerous,
429 it's not allowed in the problem code table.
431 2001-05-11 Andreas Dilger <adilger@turbolinux.com>
433 * journal.c (e2fsck_journal_reset_super): initialize the journal
434 sequence number to a random value to avoid recovering
435 bad transactions from a corrupt journal.
437 2001-05-13 Theodore Tso <tytso@valinux.com>
439 * journal.c: Code cleanup; initialize journal_enable_debug using
442 2001-05-12 Theodore Tso <tytso@valinux.com>
444 * unix.c (PRS): Skip validation of -C's file descriptor if it is
445 zero, since that is special case.
447 2001-05-09 Theodore Tso <tytso@valinux.com>
449 * super.c (release_orphan_inodes): Add gettext quoting around
450 "Truncating" and "Clearing" for i18n.
452 2001-05-05 Theodore Tso <tytso@valinux.com>
454 * util.c (fatal_error): Use the correct magic number when checking
455 the magic number for the io_channel data structure. Also
456 remove extraneous call to io_channel_flush() that was left
457 over from an editing session.
459 * pass2.c (check_dir_block): Ignore EXT2_ET_DIR_CORRUPTED errors
460 from ext2fs_read_dir_block().
462 2001-05-01 Theodore Tso <tytso@valinux.com>
464 * unix.c (PRS): Validate the completion information file
465 descriptor so that the completion bar won't get
466 accidentally written onto the disk.
468 * e2fsck.8.in: Add explanation that you can use mke2fs -n -b
469 blocksize to printout alternate superblock locations.
471 2001-04-26 Theodore Tso <tytso@valinux.com>
473 * unix.c (check_if_skip): If the max_mount_count is zero, treat it
474 as having no count set.
476 2001-04-16 Theodore Tso <tytso@valinux.com>
478 * super.c (check_super_block): Fix bad calculation of
479 inodes_per_block, and tighten min/max checks to be a bit
480 more paranoid. Thanks to Andreas Dilger for pointing out
483 2001-03-29 Theodore Tso <tytso@valinux.com>
485 * journal.c (mark_buffer_uptodate): Add emulation of kernel
486 function mark_buffer_uptodate.
488 * recovery.c, revoke.c: Synchronize with 0.6b ext3 files.
490 2001-02-12 Theodore Tso <tytso@valinux.com>
492 * journal.c (e2fsck_run_ext3_journal): Force a flush of the
493 filesystem and io_channel before replaying the journal.
495 2001-01-17 Theodore Ts'o <tytso@valinux.com>
497 * pass1.c (check_blocks): Fix large file checking code so that
498 files > 2GB are considered large files, and restrict
499 directories from being > 2GB.
501 2001-01-12 Theodore Ts'o <tytso@valinux.com>
503 * journal.c (e2fsck_journal_fix_unsupported_super): Remove unused
504 function. Add FIXME notes to e2fsck_get_journal(), from
507 * pass1.c (e2fsck_pass1): Cap the maximum legal size of a file by
508 the limit caused by the fact that i_blocks is in 512 byte
509 units, and that the Linux buffer cache also fundamentally
510 assumes 512 byte sectors.
511 Make sure that the journal inode is a regular file, and
512 when clearing an unused journal inode, make sure the
513 icount db is updated.
515 * problem.c, problem.h (PR_1_JOURNAL_BAD_MODE): Add new problem code.
517 * problem.c: For PR_1_RESERVED_BAD_MODE, print a description of
518 the reserved inode. In PR_0_JOURNAL_HAS_JOURNAL, prompt
519 to clear the journal, rather than deleting it (which is
520 more accurate). (From Andreas Dilger.)
522 * journal.c: Make sure all functions which return an error code
523 use the errcode_t return type, and not "int"
524 (e2fsck_journal_release): Add new parameter, "drop",
525 which is used when we just want to deallocate the journal
526 without trying to write out any changes.
527 (mark_buffer_clean): New function
528 (e2fsck_check_ext3_journal): If we fail loading the
529 journal, make sure we free all memory associated with it.
530 (recover_ext3_journal): If we fail to load the journal or
531 initialize the revoke data structures, make sure we free all
532 memory associated with the journal.
534 * message.c (special_inode_name): Add more special inode names
535 (From Andreas Dilger)
537 * util.c (fatal_error): Check to make sure the io_manager data
538 structure is sane before trying to flush the io_channel.
539 (From Andreas Dilger)
541 * mtrace.h, super.c, pass2.c: Minor whitespace cleanups, from
544 * journal.c (e2fsck_journal_fix_bad_inode): Set pctx->ino to the
547 * problem.c (PR_0_JOURNAL_BAD_INODE): Use pctx->ino instead of
548 pctx->num when printing the bad journal inode number.
550 2001-01-11 <tytso@snap.thunk.org>
552 * pass1.c (process_block): Remove dead code which was never
555 * iscan.c, unix.c, e2fsck.h: Don't use NOARGS, and use
556 ext2fs_sync_device() instead of using BLKFLSBUF.
558 * flushb.c: Don't use NOARGS anymore; everything is STDC these days.
560 * dirinfo.c, e2fsck.h, emptydir.c, iscan.c, jfs_user.h, journal.c,
561 message.c, pass1.c, pass1b.c, pass2.c, pass3.c, pass4.c,
562 pass5.c, problem.h, scantest.c, super.c, swapfs.c: Change
565 2001-01-09 <tytso@snap.thunk.org>
567 * problem.c: Fix another broken @F vs @f problem.
569 2001-01-06 <tytso@snap.thunk.org>
571 * journal.c, pass1.c, pass1b.c, pass3.c, recovery.c, revoke.c,
572 super.c, unix.c, util.c: Fix random gcc -Wall complaints.
574 * jfs_user.h: Use more sophisticated inline handling to allow
575 building with --enable-gcc-wall
577 2001-01-03 <tytso@snap.thunk.org>
579 * pass1.c (e2fsck_pass1): Moved journal inode handling out to its
580 own block; if the journal inode is not in use, and it
581 contains data, offer to clear it.
583 * problem.h, problem.c (PR1_JOURNAL_INODE_NOT_CLEAR): Add new
586 * problem.c: Modified problem table to use a new abbreviations.
588 * message.c: Add @j abbreviation for journal, and @v abbreviation
591 * jfs_user.h: Moved contents of jfs_e2fsck.h into jfs_user.h.
593 * journal.c (e2fsck_check_ext3_journal): Force a fsck if we remove
594 the journal stored on a reserved inode. Also force a fsck
595 if the journal appears to exist while !NEEDS_RECOVERY, and
596 we forcibly reset the journal.
598 2001-01-01 <tytso@snap.thunk.org>
600 * journal.c, pass1.c, super.c, unix.c: Replace use of struct
601 ext2fs_sb with struct ext2_super_block.
603 * pass1.c (check_blocks): Remove use of EXT2_HAS_*_FEATURE macros.
605 2000-12-31 <tytso@snap.thunk.org>
607 * jfs_compat.h: Remove uneeded header file.
609 2000-12-30 <tytso@snap.thunk.org>
611 * malloc.h, mtrace.c: Renamed malloc.h to mtrace.h to avoid
612 conflicts with the system header file.
614 * problem.h: Fixed numbering of pass1 error messages; an extra 0
615 had slipped into some of the numbers. (Pointed out by
618 * journal.c (e2fsck_journal_fix_corrupt_super): Clean up
619 unnecessary automatic variable. Add explanatory comment
620 about the kernel emulation routines. (Suggested by
623 2000-12-13 Theodore Ts'o <tytso@valinux.com>
625 * journal.c (e2fsck_check_ext3_journal): Check to make sure the
626 journal fields are consistent if any of the superblock
627 fields are set. (Backs out erroneous change made by sct,
628 pointed out by Andreas.)
630 * unix.c (main): Clarify coments (no code changes)
632 * super.c (release_orphan_inodes): Fix spelling typo in error message.
634 * pass1.c (e2fsck_pass1): Offer to update the filesystem revision
635 level if we need to set large files flag. Patch from
638 * super.c (check_super_block): If we have any of the compatibility
639 flags set, we need to have a revision 1 filesystem. Most
640 kernels will not check the flags on a rev 0 filesystem
641 and we may have corruption issues because of the
642 incompatible changes to the filesystem. Patch from Andreas
645 * problem.c, problem.h (PR_0_FS_REV_LEVEL, PR_1_FS_REV_LEVEL): Add
648 2000-12-09 <tytso@snap.thunk.org>
650 * flushb.c: Fix flushb so that it does something other than waste
651 disk space when built on systems with modern header files
652 and add a non-subtle Copyright Licensing restriction so
653 Yann will remove it from the Debian Distribution. (Now
654 violates the Debian Free Software Guidelines, on purpose.)
656 * journal.c (e2fsck_check_ext3_journal): If JFS_DEBUG is defined
657 at the top level, set the JFS debuging level to 2.
659 * jfs_e2fsck.h, jfs_user.h: Replaces jfs_compat.h. The jfs.h file
660 has been moved to the include/linux directory.
662 * journal.c, revoke.c, recovery.c: Updated files from Stephen to
663 support the V2 superblock and revoke processing. The
664 journal.c and revoke.c files are copies from the ext3
667 * Makefile.in: Added revoke.c to the list of source/object files.
669 2000-11-16 Theodore Ts'o <tytso@valinux.com>
671 * pass1b.c: Change routines to use PR_1B_BLOCK_ITERATE when
672 reporting problems rather than using com_err directly.
674 * problem.c, problem.h (PR_1B_BLOCK_ITERATE): Add new problem code.
676 * message.c (expand_percent_expression): Add safety check. If
677 ctx->str is NULL, print "NULL" instead of dereferencing
680 * pass1b.c, pass2.c, pass3.c: Change calls to ext2fs_block_iterate
681 to ext2fs_block_iterate2, to support 64-bit filesizes and
682 to speed things up slightly by avoiding the use of the
683 ext2fs_block_iterate's compatibility shim layer.
685 2000-10-30 <tytso@snap.thunk.org>
687 * util.c (get_backup_sb): Calculate backup superblock correctly
688 when the blocksize is > 1k.
690 2000-10-26 <tytso@snap.thunk.org>
692 * jfs.h, jfs_compat.h, journal.c: Updated to include the
693 definition of the new journal superblock format; still
694 only supports V1 superblocks for now. (From sct)
696 2000-10-24 <tytso@snap.thunk.org>
698 * super.c (release_inode_block, release_inode_blocks,
699 release_orphan_inodes): Add code to deal with truncating
700 inodes which are still in use (but which are on the orphan
701 list because they need truncation).
703 * problem.c, problem.h: Rename PR_0_CLEAR_ORPHAN_INODE to
704 PR_0_ORPHAN_CLEAR_INODE, and remove
705 PR_0_ORPHAN_INODE_INUSE.
707 * journal.c (e2fsck_run_ext3_journal): Add i18n support, and print
708 a message when the journal is being recovered.
710 * pass1.c (e2fsck_pass1): Don't check the i_mode field for the
711 journal inode, if it is in use.
713 2000-09-12 <tytso@valinux.com>
716 * flushb.c: Add include of nls-enable.h which is necessary so that
717 they can compile correctly.
719 2000-08-22 <tytso@valinux.com>
721 * unix.c (main): If we're doing a read-only check, skip the
722 journal playback, but don't abort the e2fsck run.
724 * super.c (release_orphan_inodes): Fix typo; should do bounds
725 checking on next_ino instead of ino.
727 * jfs_compat.h (J_ASSERT):
728 * journal.c (e2fsck_run_ext3_journal):
729 * pass3.c (adjust_inode_count): Use fatal_error() instead of exit().
731 * unix.c: Use fatal_error() instead of exit() whenever possible.
732 Also fix the fsck exit codes so that we use FSCK_USAGE
733 when it is appropriate. Rename global_signal_ctx to
734 e2fsck_global_ctx and let it be exported globally.
736 * util.c (fatal_error): Try to flush the I/O manager before
739 2000-08-20 <tytso@valinux.com>
741 * journal.c (e2fsck_journal_load): Fix **nasty** bug which caused
742 e2fsck_check_ext3_journal to smash the journal because
743 journal->j_transaction_sequence wasn't getting
746 * journal.c: (recover_ext3_journal, e2fsck_run_ext3_journal): Move
747 call to e2fsck_clear_recover from recover_ext3_journal to
748 after the filesystem has been closed and reopened.
749 Otherwise, the superblock in the filesystem handle will
750 probably be stale, and will overwrite the newer version of
751 the superblock written by the log recovery.
753 * message.c (expand_inode_expression): Add support for %Iu and %Ig
755 * problem.h (PR_0_CLEAR_ORPHAN_INODE): Add new problem code.
757 * super.c (release_orphan_inodes, release_inode_block,
758 release_inode_blocks): Update the block group descriptor
759 counts when freeing the orphan inode. Use
760 PR_0_CLEAR_ORPHAN_INODE to report when we clear an orphan.
762 * journal.c (e2fsck_run_ext3_journal): Fix a bug where we
763 attempted to reopen the filesystem using the device name
764 instead of the filesystem name.
766 2000-08-18 <tytso@valinux.com>
768 * Makefile.in: Update the make dependencies
770 * problem.c, problem.h: Add the problem codes:
771 PR_0_ORPHAN_ILLEGAL_BLOCK_NUM,
772 PR_0_ORPHAN_ALREADY_CLEARED_BLOCK,
773 PR_0_ORPHAN_ILLEGAL_HEAD_INODE,
774 PR_0_ORPHAN_ILLEGAL_INODE, PR_0_ORPHAN_INODE_INUSE
776 * super.c (release_inode_blocks, release_orphan_inodes,
777 check_super_block): Add support for clearing orphaned
778 inodes from the unmounted filesystem.
780 * journal.c (e2fsck_recover_ext3_journal): Remove the last orphan
781 check; this is now handled in check_super_block ---
782 non-journaled filesystems can use the orphan list in the
783 future. Also, move the the re-opening of the filesystem
784 to e2fsck_run_ext3_journal().
786 2000-07-12 Andreas Dilger <adilger@turbolinux.com>
788 * journal.c: implement loading of ext3 journal for recovery code
790 * problem.c (fix_problem): return answer from PR_AFTER_CODE to caller.
791 Add journal problems.
793 * recovery.c (journal_recover): user-space ext3 journal recovery code
795 * unix.c (main) : check journal and do recovery in separate steps
797 2000-08-07 <tytso@snap.thunk.org>
799 * unix.c (calc_percent): Make sure that we don't take a floating
800 exception if the max value is zero. (should normally
801 never happen, but...)
803 2000-07-13 <tytso@valinux.com>
805 * Release of E2fsprogs 1.19
807 2000-07-06 Theodore Ts'o <tytso@valinux.com>
809 * unix.c (check_if_skip): Modify algorithm for checking
810 s_max_mnt_count to match with the kernel. (If
811 s_max_mnt_count is negative, ignore the mnt_count check.)
813 * unix.c (e2fsck_update_progress): Adjust the width of the
814 progress bar dynamically, based on the filesystem name
815 that we need to display.
817 * unix.c (main): If the ext3 needs_recovery flag is set, call
818 e2fsck_run_ext3_journal() and then restart the e2fsck run.
820 * journal.c (e2fsck_run_ext3_journal): New file which contains
821 logic to recover the ext3 journal. This version relies on
822 the kernel being able to mount the filesystem in order to
825 2000-07-05 Theodore Ts'o <tytso@valinux.com>
827 * unix.c (e2fsck_update_progress): Only save and check the last
828 percentage after multiplying it by 10, nor 1000, since we
829 only need to save values to a tenth of a percent (and the
830 percentage is already from 0 .. 100%, not 0 .. 1).
831 Also, re-arrange the logic so that we do the time
832 check only after doing the percentage check, and we
833 only advance the spinner if we're about to display it.
835 2000-07-04 Theodore Ts'o <tytso@valinux.com>
837 * pass1.c (e2fsck_pass1): Check to see if the ext3 s_last_orphan
838 field is set; if so, clear it, so that ext3 mounting code
839 won't get confused by the fact that we've cleared out the
842 2000-06-10 Theodore Ts'o <tytso@valinux.com>
844 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Add error
845 checking for a "should never happen case".
847 * problem.c, problem.h (PR_5_COPY_IBITMAP_ERROR,
848 PR_5_COPY_BBITMAP_ERROR): Add new error codes.
850 2000-05-27 Theodore Ts'o <tytso@valinux.com>
852 * pass1.c (pass1, check_size): Apply patch from Chris Wedgewood
853 (cw@foof.org) which checks to see if special devices have
854 a non-zero size, and deals with it.
856 * problem.c, problem.h (PR1_SET_NONZSIZE): Add new problem code.
858 2000-05-18 Theodore Ts'o <tytso@valinux.com>
860 * Makefile.in (install): Create a symbolic link for fsck.ext3 as
863 2000-05-08 Theodore Ts'o <tytso@valinux.com>
865 * problem.c, problem.h (PR_0_HURD_CLEAR_FILETYPE): Add new problem
868 * super.c (check_super_block): If the OS type in the superblock is
869 the Hurd, check to see if the filetype feature is set, and
870 offer to clear it if so. This needs to be done since the
871 Hurd doesn't properly support the filetype feature.
872 (And since the hurd allows the transmogrification of files
873 to special files and vice versa --- for no good reason
874 that I can understand --- it can't support the filetype
875 feature for the forseeable future, either.)
877 2000-04-03 Theodore Ts'o <tytso@valinux.com>
879 * unix.c: For platforms that don't define optarg.h, manually
880 define optarg and optind.
882 2000-03-20 Theodore Ts'o <tytso@valinux.com>
884 * pass1.c (check_immutable, e2fsck_pass1_check_device_inode):
885 Check for the append-only as well as the immutable flag.
887 * problem.c (PR_1_SET_IMMUTABLE): Adjust message to include
888 append-only flag. Fix comment for compression flag.
890 2000-02-12 <tytso@snap.thunk.org>
892 * unix.c (e2fsck_update_progress): Limit the number of updates to
893 the progress bars to 8 times a second. This allows a 9600
894 baud console link to keep up.
896 2000-02-11 <tytso@snap.thunk.org>
898 * unix.c (main): If compression is enabled on the filesystem,
899 print a warning message (for now).
901 * message.c: Add new compression shortcut: @c == compress
903 * problem.c, problem.h (PR_1_COMPR_SET): Add new error code.
905 * pass1.c (check_blocks): If the inode has EXT2_COMPRBLK_FL flag
906 set, check to see if the filesystem supports compression.
907 If it does pass this information down to process_block()
908 so it can treat the compressed block flag words
909 correctly. If not, offer to clear the flag, since it
911 (process_block): If an inode has the compressed inode flag
912 set, allow EXT2FS_COMPRESSED_BLKADDR.
914 * pass1b.c (process_pass1b_block, delete_file_block,
916 * pass2.c (deallocate_inode_block): Use HOLE_BLKADDR to check to
917 see if the block can be skipped.
919 2000-02-08 <tytso@snap.thunk.org>
921 * util.c: Make resource tracking message more concise.
924 * pass1.c (mark_table_blocks, e2fsck_pass1): Remove
925 ctx->block_illegal_map, since it's not needed by pass1,
926 and pass1b has been modified to calculate it manually if
927 needed. This reduces the memory footprint needed by e2fsck.
929 * pass1b.c (check_if_fs_block): New static function which returns
930 whether or not a block overlaps with filesystem metadata.
931 This replaces consulting the block_illegal_map bitmap.
933 * Makefile.in: Call sync after finishing building all in this
936 * unix.c (PRS): sync the filesystem before trying to use
937 BLKFLSBUF, to minimize the chance of causing dirty blocks
940 * e2fsck.h: Manually define BLKFLSBUF if not defined, and we're on
943 * pass3.c (check_directory): Only do the loop detection algorithm
944 if we've searched over 2048 parent directories and haven't
945 found the end yet. This means that in the common case, we
946 don't allocate or clear the inode_loop_detection bitmap,
947 which for large systems, merely clearing the bitmap for
948 each directory was turning out to be quite expensive.
949 Thanks to Jani Jaakkola (jjaakkol@cs.helsinki.fi) for
950 identifying this problem.
952 2000-02-06 Theodore Ts'o <tytso@valinux.com>
954 * badblocks.c, e2fsck.h, ehandler.c, emptydir.c, extend.c,
955 flushb.c, iscan.c, message.c, pass1.c, pass1b.c, pass3.c
956 pass4.c, pass5.c, problem.c, scantest.c, swapfs.c,
957 unix.c, util.c: Add Internationalization support as
958 suggested by Marco d'Itri <md@linux.it>.
960 2000-02-02 Theodore Ts'o <tytso@valinux.com>
962 * e2fsck.h, flushb.c, scantest.c: Remove uneeded include of
965 2000-01-18 Theodore Ts'o <tytso@valinux.com>
967 * Makefile.in: Since LIBUUID can sometimes include "-lsocket"
968 we need a separate DEPLIBUUID that can be used in
969 Makefile's dependency rules.
971 1999-11-23 <tytso@valinux.com>
973 * e2fsck.8.in: Update language about where to find a backup
976 1999-11-19 <tytso@valinux.com>
978 * pass1.c (process_inodes): Add shortcut handling; if
979 process_inodes_count is zero, return right away, to avoid
980 calling qsort with a non-positive count.
982 * message.c (safe_print): Fix to properly display ^A, ^B, etc. and
983 to print Delete as ^?
985 * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
986 the source directory.
988 1999-11-10 <tytso@valinux.com>
990 * Release of E2fsprogs 1.18
992 1999-11-10 <tytso@valinux.com>
994 * problem.c (fix_problem): Support a new flag, PR_PREEN_NO which
995 means the answer is assumed to be no in preen mode. This
996 is now used in the PR_1_SET_IMMUTABLE code, so that in
997 preen mode we ignore these inodes and just print a warning
1000 1999-11-09 <tytso@valinux.com>
1002 * pass1.c (e2fsck_pass1): If the filesystem does not support
1003 imagic inodes, if an inode has the imagic flag set, offer
1004 to clear the imagic flag. If a valid device/fifo/socket
1005 has the immutable flag set, call the new helper function
1006 check_immutable() to offerto clear the immutable flag.
1008 * pass2.c (check_filetype): Use the new ext2_file_type() helper
1009 function instead of calculating the file_type information
1012 * pass3.c (e2fsck_reconnect_file): When adding a link to
1013 lost+found, calculate the filetype information so that
1014 ext2fs_link() can use the information if applicable.
1015 (get_lost_and_found): Create the /lost+found directory
1016 with the correct filetype information if applicable.
1018 * util.c (ext2_file_type), e2fsck.h: New function which returns
1019 the directory entry file type information given the
1022 * problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC
1023 and PR_1_SET_IMMUTABLE.
1025 1999-11-07 <tytso@valinux.com>
1027 * pass4.c (e2fsck_pass4): Clear inode_imagic_map after freeing it,
1028 to prevent it from getting freed twice.
1030 1999-11-06 <tytso@valinux.com>
1032 * unix.c (main): Close the filesystem before freeing the context,
1033 so that in the event of a free()-related segmentation
1034 violation, the filesystem is properly closed and written
1037 1999-10-27 <tytso@valinux.com>
1039 * e2fsck.c (e2fsck_reset_context): When freeing
1040 ctx->inode_reg_map, we weren't zero'ing
1041 ctx->inode_reg_map, which could cause a segfault later on
1044 1999-10-26 <tytso@valinux.com>
1046 * problem.h (PR_2_SPLIT_DOT): Fix excess zero in problem code (now
1047 matches the standard convention).
1049 1999-10-26 <tytso@valinux.com>
1051 * Release of E2fsprogs 1.17
1053 1999-10-26 <tytso@valinux.com>
1055 * message.c (safe_print): Make safe_print take an char instead of
1056 an unsigned char to fix gcc warnings.
1058 1999-10-25 <tytso@valinux.com>
1060 * util.c: For NT portability, don't redefine getchar(), since
1061 stdio defines that. Instead we introduce a new
1062 abstract macro read_a_char() which is #defined to the
1063 right function as necessary.
1065 * problem.c, problem.h (PR_2_NULL_NAME): Add new problem code.
1067 * pass2.c (check_dir_block): Require that the length of the
1068 directory entry be at least 12 bytes. Check to see if the
1069 filename is zero-length, and flag that as an error.
1071 1999-10-22 <tytso@valinux.com>
1073 * Release of E2fsprogs 1.16
1075 1999-10-22 <tytso@valinux.com>
1077 * pass2.c (check_filetype): If the filetype filesystem feature is
1078 not set, and a directory entry has a dirent feature, offer
1079 to clear it (since 2.0 kernels will do complain will
1080 interpret it as a very large name length field).
1082 * problem.c (PR_2_CLEAR_FILETYPE): Add new problem code.
1084 1999-10-21 <tytso@valinux.com>
1086 * e2fsck.8.in: Update man page to use a more standard format (bold
1087 option flags and italicized variables), as suggested by
1088 Andreas Dilger (adilger@enel.ucalgary.ca)
1090 * pass4.c (e2fsck_pass4): If an inode is set in the
1091 inode_imagic_map bitmap, don't check to see if it is
1092 disconnected from the inode tree (because it almost
1093 certainly will be). Free inode_imagic_map at the end of
1096 * pass2.c (check_dir_block, check_filetype): If the FILETYPE
1097 feature is set, check the directory entry's filetype
1098 information field, and fix/set it if necessary.
1099 (e2fsck_pass2): Free the inode_reg_map bitmap at the end
1102 * pass1.c (e2fsck_pass1, alloc_imagic_map): Allocate and fill in
1103 information for inode_reg_map and inode_imagic_map, which
1104 indicates which inodes are regular files and AFS inodes,
1106 Since only the master superblock is written during a
1107 restart, force that superblock to be used after a restart;
1108 otherwise changes to the block group descriptors end up
1111 * problem.c, problemP.h: If e2fsck is run -n, make def_yn variable
1112 be 0 for "no". Add support for a new flag, PR_NO_NOMSG,
1113 which supresses the problem message if e2fsck is run with
1116 * problem.c, problem.h (PR_2_SET_FILETYPE, PR_2_BAD_FILETYPE): Add
1119 * message.c (expand_dirent_expression): Add support for %dt which
1120 prints the dirent type information.
1122 * e2fsck.c (e2fsck_reset_context): Free new bitmaps (inode_reg_map
1123 and inode_imagic_map).
1125 * e2fsck.h (e2fsck_t): Add new inode_reg_map and inode_magic_map
1126 to the context structure.
1128 1999-09-24 <tytso@valinux.com>
1130 * unix.c (PRS), util.c (ask_yn): Add #ifdef's to make
1131 e2fsprogs easier to port to non-Unix platforms.
1133 1999-09-07 <tytso@valinux.com>
1135 * pass3.c (adjust_inode_count): Fix bug where we didn't keep the
1136 internal and external inode counts in sync when we
1137 decremented an inode whose link count was already zero.
1138 Now we skip incrementing or decrementing both link counts
1139 if we would cause an overflow condition.
1140 (expand_dir, expand_dir_proc): Change where we update the
1141 inode block count and size files so that the block count
1142 field is updated correctly when we create an indirect block.
1144 1999-08-05 <tytso@valinux.com>
1146 * super.c (check_super_block): Check to see whether the
1147 inodes_per_group value in the superblock is insanely too
1150 1999-08-02 <tytso@valinux.com>
1152 * pass1b.c (clone_file_block): Don't clear the dup_map flag if
1153 the block also shares data with the fs metadata when
1154 the count drops to 1, since the block should still be
1155 cloned, as fs metadata isn't included in the count.
1157 1999-07-18 Theodore Ts'o <tytso@valinux.com>
1159 * Release of E2fsprogs 1.15
1161 1999-07-19 <tytso@valinux.com>
1163 * unix.c (usage): Add minimalist emergency help to the usage
1166 1999-07-18 <tytso@valinux.com>
1168 * unix.c: Add support for calculating a progress bar if the -C0
1169 option is given. The function e2fsck_clear_progbar()
1170 clears the progress bar and must be called before any
1171 message is issued. SIGUSR1 will enable the progress bar,
1172 and SIGUSR2 will disable the progress bar. This is used
1173 by fsck to handle parallel filesystem checks. Also, set
1174 the device_name from the filesystem label if it is
1177 * e2fsck.h: Add new flags E2F_FLAG_PROG_BAR and
1178 E2F_FLAG_PROG_SUPRESS. Add new field in the e2fsck
1179 structure which contains the last tenth of a percent
1180 printed for the user.
1182 * message.c (print_e2fsck_message): Add call to
1183 e2fsck_clear_progbar().
1185 * pass1.c (e2fsck_pass1):
1186 * pass2.c (e2fsck_pass2):
1187 * pass3.c (e2fsck_pass3):
1188 * pass4.c (e2fsck_pass4):
1189 * pass5.c (e2fsck_pass5): Add call to e2fsck_clear_progbar when
1190 printing the resource tracking information.
1192 * pass5.c (check_block_bitmaps, check_inode_bitmaps): If there is
1193 an error in the bitmaps, suppress printing the progress
1194 bar using the suppression flag for the remainder of the
1195 check, in order to clean up the display.
1197 1999-06-30 <tytso@valinux.com>
1199 * unix.c (check_mount): Clean up the abort message displayed when
1200 the filesystem is mounted and either stdout or stdin isn't
1203 1999-06-25 <tytso@valinux.com>
1206 * pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode,
1207 pass1_check_directory, e2fsck_use_inode_shortcuts): Make
1208 pass1_* be private static functions, and create new
1209 function e2fsck_use_inode_shortcuts which sets and clears
1210 the inode shortcut functions in the fs structure.
1213 * pass2.c (e2fsck_process_bad_inode): Make process_bad_inode() an
1216 * pass4.c (e2fsck_pass4): Call e2fsck_process_bad_inode to check
1217 if a disconnected inode has any problems before
1218 connecting it to /lost+found. Bug and suggested fix by
1219 Pavel Machek <pavel@bug.ucw.cz>
1221 1999-06-21 <tytso@valinux.com>
1223 * unix.c (main): Add missing space in the disk write-protected
1226 1999-05-22 <tytso@rsts-11.mit.edu>
1228 * problem.c, problem.h (PR_0_INODE_COUNT_WRONG): Add new problem
1231 * super.c (check_super_block): Add check to make sure the total
1232 number of inodes is sane, since this can be calculated
1233 from the number of groups times the number of inodes per
1234 group. Offer to correct it if it is incorrect.
1236 1999-03-19 <tytso@rsts-11.mit.edu>
1238 * pass5.c (check_block_end): Fix fencepost condition where when
1239 clearing the block padding we were missing the last position
1242 1999-05-17 <tytso@rsts-11.mit.edu>
1244 * unix.c (reserve_stdio_fds): Add safety check in case
1245 reserve_stdio_fds couldn't open /dev/null.
1247 1999-03-14 Theodore Ts'o <tytso@rsts-11.mit.edu>
1249 * util.c (print_resource_track): Use mallinfo if present to get
1250 more accurate malloc statistics.
1252 * pass3.c (get_lost_and_found): Check to see if lost+found is a
1253 plain file; if so, offer to unlink it.
1255 * problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code.
1257 1999-03-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1259 * problem.c: Fix problem message for PR_1_BAD_GROUP_DESCRIPTORS so
1260 that the block group number is printed. Add new prompt,
1263 1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1265 * Release of E2fsprogs 1.14
1267 1999-01-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1269 * message.c (safe_print): New function which prints strings,
1270 converting non-printable characters using the '^' and
1271 M-notation. This function is now used to print directory
1272 name entries and pathnames.
1274 Mon Jan 4 02:28:59 1999 Theodore Y. Ts'o <tytso@mit.edu>
1276 * unix.c (main): Reset the context before calling ext2fs_close(),
1277 to avoid referencing already freed memory.
1279 1998-12-15 Theodore Ts'o <tytso@rsts-11.mit.edu>
1281 * Release of E2fsprogs 1.13
1283 1998-12-03 Theodore Ts'o <tytso@rsts-11.mit.edu>
1285 * Makefile.in: Updated dependencies.
1287 1998-11-27 Theodore Ts'o <tytso@rsts-11.mit.edu>
1289 * pass3.c (get_lost_and_found): If the filesystem is not opened
1290 read-only, then force /lost+found to be created if it is
1293 * problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen
1296 1998-10-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
1298 * unix.c (main): Move ext2fs_close() after e2fsck_free_context()
1299 since e2fsck_free_context may reference data in ctx->fs.
1301 * e2fsck.c (e2fsck_reset_context): Make sure ctx->fs is non-NULL
1302 before checking ctx->fs->dblist.
1304 1998-10-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1306 * pass1.c (e2fsck_pass1): Use the device check subroutine on
1307 FIFO's and Socket's, so that we catch bogus immutable inodes.
1309 * pass2.c (process_bad_inode): Process bad socket and fifo's.
1311 * problem.h, problem.c: Define new problem codes PR_2_BAD_FIFO and
1314 1998-09-02 Theodore Ts'o <tytso@rsts-11.mit.edu>
1316 * problem.c: Add PR_3_NO_DIRINFO error code.
1318 * super.c (check_super_value): Rename min and max to min_val and
1319 max_val to avoid possible cpp macro conflicts.
1321 * pass4.c (e2fsck_pass4): Rename max to maxgroup, to avoid
1322 possible cpp macro conflicts.
1324 * pass3.c (e2fsck_pass3): Rename max to maxdirs, to avoid possible
1325 cpp macro conflicts.
1326 (check_directory): Fix logic to avoid possible core dump
1327 in the case of ext2fs_get_dir_info returning NULL. (By
1328 the time we get here, it should never happen, but...).
1329 Also simply/streamline the control flow of the function.
1331 1998-08-17 Theodore Ts'o <tytso@rsts-11.mit.edu>
1333 * unix.c (check_if_skip): Move the "not cleanly mounted" check
1334 ahead of the maximal mount and too long since checked tests.
1335 (reserve_stdio_fds): Make sure 0,1,2 file descriptors are
1336 open, so that we don't open the filesystem using the same
1337 file descriptor as stdout or stderr.
1339 1998-08-01 Theodore Ts'o <tytso@rsts-11.mit.edu>
1341 * pass2.c (e2fsck_pass2): Fix the progress accounting so that we
1344 * pass3.c (e2fsck_pass3): Change progress accounting to be
1345 consistent with the other e2fsck passes.
1347 * e2fsck.c (e2fsck_run): At the end of each pass, call the
1348 progress function with the pass number set to zero.
1350 * unix.c (e2fsck_update_progress): If the pass number is zero,
1351 ignore the call, since that indicates that we just want to
1352 deallocate any progress structures.
1354 1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1356 * Release of E2fsprogs 1.12
1358 1998-07-09 Theodore Ts'o <tytso@rsts-11.mit.edu>
1360 * unix.c (main): Fix typo in checking the incompat feature set; it
1361 should be checked against EXT2_LIB_FEATURE_INCOMPAT_SUPP.
1363 1998-07-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
1365 * badblocks.c (test_disk): Don't clear the existing bad blocks
1366 list when using e2fsck -c, since it may cause blocks with
1367 marginal errors to be dropped from the bad blocks list.
1369 Mon Jul 6 10:32:11 1998 Theodre Ts'o <tytso@lurch.mit.edu>
1371 * pass1.c (e2fsck_pass1): Use ext2fs_sb structure for
1372 compatibility with older kernels.
1374 1998-06-25 Theodore Ts'o <tytso@rsts-11.mit.edu>
1376 * unix.c (e2fsck_update_progress): Remove unused variables.
1378 1998-06-10 Theodore Ts'o <tytso@rsts-11.mit.edu>
1380 * pass1.c, problem.h: Change blkcnt_t to be e2_blkcnt_t to avoid
1381 collision with LFS API.
1383 * pass1.c (e2fsck_pass1): Fix bug so that ext2_max_sizes is
1384 properly initialized.
1385 (e2fsck_pass1): Don't allow the the boot loader inode to
1386 be a directory (clear the inode mode field if so).
1388 1998-05-07 Theodore Ts'o <tytso@rsts-11.mit.edu>
1390 * unix.c (PRS): Added new option -C, which causes e2fsck to print
1391 progress updates so that callers can keep track of the
1392 completion progress of e2fsck. Designed for use by
1393 progress, except for -C 0, which prints a spinning report
1394 which may be useful for some users.
1396 * pass5.c (e2fsck_pass5): Use a finer-grained progress reporting
1397 scheme (useful for larger filesystems).
1399 * e2fsck.h: Add progress_fd and progress_pos, for use by the Unix
1400 progress reporting functions.
1402 1998-04-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
1404 * pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the
1405 appropriate return type for comparison functions for qsort.
1407 * e2fsck.h: Add #ifdef protection for unistd.h
1409 * super.c: Remove header files already included by e2fsck.h
1411 1998-04-26 Theodore Ts'o <tytso@rsts-11.mit.edu>
1413 * dirinfo.c (e2fsck_add_dir_info): Update function to pass the old
1414 size of the memory to be resized to ext2fs_resize_mem().
1416 1998-03-30 Theodore Ts'o <tytso@rsts-11.mit.edu>
1418 * Makefile.in: Change to use new installation directory variables
1419 convention. Fix uninstall rules to take $(DESTDIR) into
1420 account. Remove cat8dir from the installdirs target,
1421 since modern man package don't necessarily put the cat
1422 directory in /usr/man/cat?.
1424 1998-03-29 Theodore Ts'o <tytso@rsts-11.mit.edu>
1426 * super.c, e2fsck.h: Always declare e2fsck_get_device_size() as an
1427 extern in e2fsck.h to prevent -Wall warnings.
1429 * pass4.c (e2fsck_pass4): Remove unused variable 'j'.
1431 1998-03-28 Theodore Ts'o <tytso@rsts-11.mit.edu>
1433 * super.c (check_super_block): Fix broken superblock sanity check
1434 when calculating blocks_per_group if s_log_frag_size !=
1435 s_log_block_size. Since we don't support fragments, this
1436 isn't a bug deal, but it's good to get it fixed.
1438 1998-03-23 Theodore Ts'o <tytso@rsts-11.mit.edu>
1440 * unix.c: Fix bug in check of feature set, to make sure we can
1441 really fix this filesystem.
1443 * problem.h: Make blkcount type to be of type blkcnt_t. Make the
1444 num field be a 64 bit type. Add the problem code
1445 PR_1_FEATURE_LARGE_FILES
1447 * problem.c: Add table entry for the problem code
1448 PR_1_FEATURE_LARGE_FILES.
1450 * pass1.c (e2fsck_pass1): A non-zero i_dir_acl field is only
1451 a problem for directory inodes. (Since it is also
1452 i_size_high now.) If there are no large_files, then
1453 clear the LARGE_FLAG feature flag. If there are
1454 large_files, but the LARGE_FLAG feature flag is not set,
1455 complain and offer to fix it.
1456 (check_blocks): Add support to deal with non-directory
1457 inodes that have i_size_high set (i.e., large_files).
1458 Don't give an error if a directory has preallocated
1459 blocks, to support the DIR_PREALLOC feature.
1460 (process_block, process_bad_block): The blockcnt variable
1461 is a type of blkcnt_t, for conversion to the new
1464 * pass2.c (process_bad_inode): A non-zero i_dir_acl field is only
1465 a problem for directory inodes. (Since it is also
1468 * message.c (expand_inode_expression): Print a 64-bits of the
1469 inode size for non-directory inodes. (Directory inodes
1470 can only use a 32-bit directory acl size, since
1471 i_size_high is shared with i_dir_acl.) Add sanity check
1472 so that trying to print out the directory acl on a
1473 non-directory inode will print zero.
1474 (expand_percent_expression): %B and %N, which print
1475 pctx->blkcount and pctx->num, can now be 64 bit
1476 variables. Print them using the "%lld" format if
1477 EXT2_NO_64_TYPE is not defined.
1479 * e2fsck.h: Add the large_flagsfield to the e2fsck context.
1481 * e2fsck.c (e2fsck_reset_context): Clear the large_flags
1484 Sun Mar 8 23:08:08 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1486 * pass3.c (fix_dotdot_proc):
1487 * pass2.c (check_dot, check_dotdot, check_name, check_dir_block):
1488 * message.c (expand_dirent_expression): Mask off the high eight
1489 bits of the directory entry's name_len field, so that it
1490 can be used for other purposes.
1492 Fri Feb 27 00:01:39 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1494 * e2fsck.c (e2fsck_run): Since E2F_FLAG_SIGNAL_MASK doesn't
1495 include EXT2_FLAG_RESTART anymore, we need to adjust this
1496 routine so that it *does* return in the case of it seeing
1499 * pass1.c (e2fsck_pass1): ext2_get_next_inode() may call the group
1500 done callback function, which may set context abort
1501 flags. So we need to test the context abort flags after
1502 we call ext2_get_next_inode().
1503 (process_inodes): If we abort due out of process_inodes,
1504 do a clean exit by breaking out of the for loop instead of
1507 * e2fsck.h (E2F_FLAG_SIGNAL_MASK): EXT2_FLAG_RESTART shouldn't be
1508 considered a SIGNAL mask (i.e., requiring an immediate
1509 abort of processing to restart). FLAG_RESTART just means
1510 that we want to restart once pass 1 is complete.
1512 Tue Feb 24 15:19:40 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1514 * Change the progress function to return an integer; if returns 1,
1515 then the progress function is expected to have set the
1516 e2fsck context flag signalling a user abort, and the
1517 caller should also initiate a user abort.
1519 Tue Feb 17 19:03:44 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1521 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Don't call
1522 end_problem_latch() unless there was actually a problem
1523 latched. Simplifies semantics of the latch processing.
1525 Mon Feb 16 17:31:44 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1527 * e2fsck.h: Add new field, priv_data to the e2fsck context
1528 structure. It should be used by callers of the e2fsck
1529 functions only, and not by anything in e2fsck itself.
1531 Mon Feb 7 17:31:04 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1533 * super.c: Instead of call ext2fs_get_device_size(), define and call
1534 e2fsck_get_device_size(). (This function may be stubbed
1535 out in special versions of e2fsck.)
1537 * pass3.c, pass4.c: Remove extra calls to the progress function
1538 that weren't needed.
1540 * mke2fs.8.in: Update man page to note that the format of the bad
1541 block file is the same as the one generated by badblocks.
1543 Sun Feb 1 07:57:14 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1545 * dirinfo.c, e2fsck.c: Don't include com_err.h; it isn't needed.
1547 * e2fsck.h: Include <time.h> since it is needed
1549 * super.c: If EXT2_SKIP_UUID is defined, then skip the UUID
1552 Tue Jan 20 15:37:01 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1554 * unix.c (main): In the case where the filesystem revision is too
1555 high, print the message about the superblock possibly
1558 * e2fsck.8.in: Add expanded comments about how the -b option
1561 Sat Jan 17 13:02:16 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1563 * e2fsck.h: If EXT2_FLAT_INCLUDES is defined, then assume all of
1564 the ext2-specific header files are in a flat directory.
1566 * dirinfo.c, ehandler.c, pass1.c, pass1b.c, pass2.c, pass5.c,
1567 super.c, swapfs.c, unix.c: Explicitly cast all assignments
1568 from void * to be compatible with C++.
1570 Tue Jan 6 11:30:24 1998 Theodore Ts'o <tytso@rsts-11.mit.edu>
1572 * unix.c (sync_disk): Remove sync_disk and calls to that function,
1573 since ext2fs_close() now takes care of this.
1575 Mon Dec 29 14:45:42 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1577 * pass1.c, pass1b.c, pass2.c, pass3.c, swapfs, badblocks.c,
1578 ehandler.c, unix.c: Change use of private to be priv_data,
1579 to avoid C++ reserved name clash.
1581 Fri Nov 28 09:30:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1583 * dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead
1584 of e2fsck_get_num_dirs, which has been removed.
1586 Tue Nov 25 15:54:35 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1588 * Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want
1589 to compile and install flushb.
1591 Mon Nov 24 06:48:00 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1593 * pass1.c (e2fsck_pass1_check_device_inode): For now, only check
1594 to make sure the extra i_blocks in a device are cleared if
1595 the immutable flag is set.
1597 * util.c (print_resource_track): Fix typo which caused the
1598 time/resource tracking to print "Pass 1 :" instead of
1601 Thu Nov 20 16:02:23 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1603 * pass3.c (expand_directory): Fix bug which could cause core dump
1604 when expanding the directory, and the bitmaps hadn't yet
1605 been read in. Also, only use ext2fs_write_dir_block when
1606 writing a directory block, not when writing out a fresh
1609 Wed Nov 19 16:15:44 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1611 * pass1.c (process_bad_block): Fix bug where first_block wasn't
1612 getting incremented, which caused user to get a
1613 "Programming error?" warning if there was a bad block in a
1614 non-primary superblock/group_descriptor. Also fixed
1615 another bug so that ext2fs_bg_has_super() is consulted, to
1616 avoid problems when using a filesystem with the
1617 sparse_groups option set and there are bad blocks at the
1618 beginning of a group which doesn't have a superblock.
1620 Thu Nov 6 16:10:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1622 * pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the
1623 progress indicator function.
1625 * pass1.c (scan_callback): Add call to the progress feedback
1626 function (if it exists).
1628 Tue Nov 4 09:45:36 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1630 * super.c (check_super_block): Skip the device size check if the
1631 get_device_size returns EXT2_EXT_UNIMPLEMENTED.
1633 * iscan.c (main): Don't use fatal_error() anymore.
1635 * pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of
1636 calling fatal_error(0).
1638 * problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT,
1639 PR_3_NO_ROOT_INODE_ABORT): New problem codes.
1641 * problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
1643 * problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
1645 * problemP.h: New file which separates out the private fix_problem
1648 * util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
1649 swapfs.c util.c: allocate_memory() now takes a e2fsck
1650 context as its first argument, and rename it to be
1651 e2fsck_allocate_memory().
1653 Mon Nov 3 14:35:29 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1655 * unix.c (main): Add a special case check for the error code EROFS
1656 and display an appropriate error message for this case.
1658 * [lots of files]: Change ext2fs_read_inode, ext2fs_write_inode
1659 to take the e2fsck context as their first argument.
1660 Change dir_info.c routines to take an e2fsck_context,
1661 renamed them to start with e2fsck_ to avoid namespace
1662 issues, and changed them to store the directory
1663 information inside the e2fsck context.
1664 Added e2fsck_run() which calls all of the e2fsck passes in
1665 the correct order, and which handles the return of abort
1666 codes. Added abort processing, both via setjmp/longjmp
1667 and via flags in the e2fsck context. Use a flag in the
1668 e2fsck context instead of the restart_e2fsck global
1669 variable. Change uses of free and malloc to
1670 ext2fs_free_mem and ext2fs_get_mem.
1672 Fri Oct 31 01:12:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1674 * pass1.c, pass3.c: Rename new error codes to _ET_ in them for
1677 Sat Oct 25 00:10:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1679 * pass3.c (get_lost_and_found): Check error return of
1680 EXT2_FILE_NOT_FOUND instead of ENOTDIR
1682 * pass1.c (pass1_check_directory): Return EXT2_NO_DIRECTORY
1685 Fri Oct 24 00:12:39 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1687 * unix.c (PRS): Make the variable which getopt returns into be
1688 an int, so that it won't lose on platforms where char is
1691 * pass1b.c (clone_file): Fix bug in error reporting in the case
1692 where cs.errcode is non-zero.
1694 Sun Oct 19 21:12:11 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1696 * pass*.c, super.c, unix.c, util.c, e2fsck.h: Place #ifdef
1697 RESOURCE_TRACK around code which uses init_resource_track
1698 and print_resource_track. (Not all systems have timeval)
1700 * super.c: Remove excess #includes which are not necessary.
1702 * e2fsck.h: Add #ifdef's for HAVE_SYS_TYPES_H and HAVE_SYS_TIME_H
1704 Fri Oct 3 13:40:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1706 * pass*.c, super.c: Massive changes to avoid using printf and
1707 com_err routines. All diagnostic messages are now routed
1708 through the fix_problem interface.
1710 Sat Sep 6 17:13:28 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1712 * pass2.c (check_dir_block): Check for duplicate '.' and '..'
1715 * problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and
1718 Tue Sep 2 09:04:51 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1720 * problem.c: Added new problem codes for some of the
1721 superblock corruption checks, and for the pass header
1722 messages. ("Pass 1: xxxxx")
1724 * util.c (print_resource_track): Now takes a description
1727 Mon Aug 25 10:23:13 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1729 * super.c, unix.c, e2fsck.c: New files to separate out the
1730 operating-specific operations out from e2fsck.c.
1731 e2fsck.c now contains the global e2fsck context management
1732 routines, and super.c contains the "pass 0" initial
1733 validation of the superblock and global block group
1736 * pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate
1737 (nearly) all global variables and moved them to the e2fsck
1740 * problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT,
1741 PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS,
1742 PR_0_BLOCKS_PER_GROUP, PR_0_FIRST_DATA_BLOCK
1744 Thu Aug 14 10:55:21 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1746 * message.c: Add compression for the word "Illegal"
1748 * problem.c: Added entries for PR_2_BAD_CHAR_DEV and
1751 Wed Aug 13 09:55:57 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1753 * pass1.c (pass1, check_device_inode), pass2.c
1754 (process_bad_inode): Use a more stringent test for a valid
1757 Sun Aug 10 18:58:02 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1759 * e2fsck.c (check_mount): Add stronger warning message about the
1760 perils of running e2fsck on a mounted filesystem.
1762 Tue Jun 17 01:33:20 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1764 * Release of E2fsprogs 1.11
1766 Thu Jun 12 00:25:31 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1768 * pass1.c (mark_table_blocks): Mark the superblock and group
1769 descriptor blocks first, so that any conflicts between
1770 these and the bitmap or inode table blocks is noticed.
1772 * problem.c: Fix message printed out when a block or inode bitmap
1773 conflicts with other fs data, has the correct group number
1776 Tue Jun 10 12:07:37 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1778 * pass2.c (pass2): Check the error return from ext2fs_dblist_iterate.
1780 Thu May 8 22:45:27 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1782 * e2fsck.8.in: Fix minor typos and grammer oops found by Bill
1783 Hawes (whawes@star.net).
1785 * badblocks.c (read_bad_blocks_file): Pass the blocksize to the
1786 bad blocks command so that all of the filesystem gets
1787 tested in the case where the blocksize 2048 or 4096.
1789 Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
1791 * Release of E2fsprogs version 1.10
1793 Mon Apr 21 22:43:08 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1795 * pass1b.c (pass1b): While scanning for inodes, simply skip inodes
1796 where ext2fs_get_next_inode returns the
1797 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE error.
1799 Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1801 * Release of E2fsprogs version 1.09
1803 Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1805 * Release of E2fsprogs version 1.08
1807 Thu Apr 10 13:51:16 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1809 * pass1b.c (clone_file_block): If we clone a directory, we need to
1810 update the dblist entry so that we check (and correct) the
1811 right directory block.
1813 Sun Apr 6 09:13:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1815 * pass1.c (process_block): Don't clear blocks references to
1816 filesystem metadata; let pass 1B handle this case.
1818 * problem.c, problem.h: Add new problem, PR_1B_SHARE_METADATA.
1820 * pass1b.c (pass1d): Deal with a block which is shared with
1821 filesystem metadata.
1823 * e2fsck.h: Make block_illegal_map be a global variable
1825 Sat Apr 5 11:51:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1827 * e2fsck.c, pass1.c (mark_table_blocks): Support the sparse_super
1829 (get_backup_sb): New function which attempts to obtain the
1830 correct backup superblock (if possible).
1832 Fri Apr 4 10:46:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1834 * e2fsck.c (main): Check the version of the library, and warn if
1835 the library is out of date; this happens generally due to
1836 users who manually install e2fsprogs.
1838 * pass1.c (pass1_get_blocks): If the passed in inode number for
1839 get_blocks isn't what we're expecting pass back
1840 EXT2_ET_CALLBACK_NOT_HANDLED.
1842 Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
1844 * Release of E2fsprogs version 1.07
1846 Tue Mar 11 10:31:47 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1848 * icount.c: New file which implements an inode count abstraction.
1849 This significantly reduces amount of memory needed to
1850 check really large filesystems.
1852 * pass1.c, pass2.c, pass3.c, pass4.c: Modified to use the icount
1855 Fri Mar 7 08:28:55 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1857 * dirinfo.c (dir_info_iter): New function which allows iteration
1858 over the directories in the dir_info map.
1860 * pass3.c (pass3, check_directory): Speed up pass 3 by iterating
1861 over all directories in the dir_info structure, instead of
1862 iterating all inodes looking for directories, and then
1863 looking up the directories using get_dir_info().
1865 Sat Feb 1 11:33:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1867 * pass1.c (pass1, process_block):
1868 * pass2.c (pass2): Use the ext2_dblist abstraction instead of
1869 manual code to manage the directory block list information.
1871 * pass1.c (check_blocks), pass1b.c (pass1b), pass2.c
1872 (deallocate_inode): Call the ext2 library routine
1873 ext2_inode_has_valid_blocks() instead of
1874 inode_has_valid_blocks().
1876 * swapfs.c (swap_inodes): Add check so that we don't try to call
1877 swap_inode_blocks unless the inode has valid blocks.
1878 (Otherwise a long fast symlink might cause
1879 swap_inode_blocks to erroneously get called.)
1881 Wed Jan 22 14:42:53 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1883 * problem.c, problem.h: Added entries for PR_2_DOT_NULL_TERM and
1884 PR_2_DOT_DOT_NULL_TERM.
1886 * pass2.c (check_dot, check_dot_dot): Make sure the new . and
1887 .. entries are null-terminated, since the 2.0 kernel
1888 requires this (for no good reason).
1890 Mon Jan 20 20:05:11 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1892 * pass1.c (pass1): Set the EXT2_SF_SKIP_MISSING_ITABLE flag so
1893 that we can recover from missing inode tables.
1895 * dirinfo.c (get_dir_info): If there are no directories in the
1896 dir_info abstraction, don't core dump (because dir_info is
1899 * e2fsck.c (main): Don't try using the backup superblocks if there
1901 (check_super_block): If there are illegal inode table or
1902 bitmaps, set the filesystem as being in error.
1904 Wed Jan 15 11:32:01 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
1906 * pass2.c (check_dir_block): Added check to make sure that rec_len
1907 is a a multiple of 4 (so that the directory entries are
1910 Sat Dec 28 12:16:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1912 * Makefile.in (uninstall): Uninstall all programs in the PROGS
1914 (PROGS): Don't build and install the extend program by
1918 Sat Dec 7 16:41:02 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1920 * pass1.c (process_inodes): Make sure the stashed_ino variable is
1921 saved and restored as well.
1922 (pass1): For fast sym links, skip the check_blocks
1923 processing step altogether.
1925 Mon Dec 2 09:28:24 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1927 * problem.c, message.c: New files, to completely refurbish how
1928 filesystem problems are reported to the user. The
1929 diagnostic messages are now encoded out in an easily
1930 customizable, extensible format. The messages printed out
1931 in preen mode are all on one line, and contain the device
1934 Fri Nov 29 20:26:08 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1936 * swapfs.c (swap_inodes): When swapping a filesystem, ignore
1939 * pass1.c (pass1): Ignore missing inode table errors during the
1940 scan, and just skip past those inodes.
1942 * pass3.c (check_root): Remove root_ino argument, and assume that
1943 the root inode must be EXT2_ROOT_INO. Move responsibility
1944 of setting the parent of the root inode in the directory
1945 inode structure to pass2().
1947 * pass2.c (check_dir_block): Don't allow links to the root
1950 * dirinfo.c (add_dir_info): Remove last argument to add_dir_info,
1951 since the inode is no longer used.
1953 Tue Oct 15 00:06:49 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1955 * e2fsck.c (main): If the superblock magic number is wrong, or the
1956 block group fails a sanity check, then automatically
1957 restart trying to use the backup superblocks.
1959 * pass1.c (mark_table_blocks): Make the inode tables ahead of
1960 everything else; in the case where a bitmap block overlays
1961 the inode table, the inode table should take precedence.
1963 * pass2.c (maybe_clear_entry): Make the deleted/unused error
1964 message fit on one line, since the error can happen during
1965 a preen pass. (We eventually need to revamp the whole
1966 e2fsck error reporting and prompting system, but that's a
1967 job for another day.)
1969 Mon Oct 14 22:29:49 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1971 * e2fsck.c (main): Read in the list badblocks into fs->badblocks
1972 for the benefit of the inode scan functions.
1974 * pass1.c (pass1): If ext2fs_get_next_inode() returns an error
1975 indicating that an inode is in a bad block, mark that
1976 inode as being used, as well as in the inode "bb" map.
1978 * pass2.c (maybe_clear_entry): New function which generalizes the
1979 error cases when a directory entry needs to be cleared.
1980 (check_dir_block): If an inode is in the "bb" map, offer
1981 to clear the directory entry, since the inode is in a bad
1984 * pass4.c (pass4): If an inode is marked as used, but is is marked
1985 in the "bb" map, don't process it as a disconnected inode.
1987 Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1989 * Release of E2fsprogs version 1.06
1991 Mon Oct 7 00:45:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
1993 * e2fsck.c (main): Print out the version number of the shared
1994 library when using the -V option.
1996 * swapfs.c (swap_filesys): Change EXT2_SWAP to EXT2_FLAG_SWAP for
1999 * e2fsck.c (main): By setting EXT2_FLAG_MASTER_SB_ONLY, only write
2000 out the backup superblocks when we know we have a valid
2003 Tue Oct 1 22:00:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2005 * util.c (preenhalt): Make it explicit on preenhalt that running
2006 e2fsck manually means without the -a or -p flag.
2008 Fri Sep 27 14:41:08 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2010 * pass1.c (pass1): Add support for the EXT2_BOOT_LOADER inode.
2011 (Linux/FT actually sets the mode bits, so we have to
2012 handle it specially.)
2014 * e2fsck.c (check_if_skip): Print a message if the filesystem is
2015 just dirty, so that the user knows that it's about to be
2016 checked (since this will take a while).
2018 Mon Sep 16 17:00:01 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2020 * pass4.c: If a disconnected inode is zero-length, prompt to
2021 delete it instead of connecting it to lost+found.
2023 Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2025 * Release of E2fsprogs version 1.05
2027 Fri Aug 30 20:24:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2029 * pass4.c (pass4): If the user refuses to connect an unattached
2030 inode to lost+found, don't try to set i_links_count. This
2031 is bad, since if the user says yes, the inode will be
2032 marked as unused, which is not necessarily the right
2033 thing, especially since the rest of the cleanup doesn't
2036 * pass2.c (deallocate_inode): Set inode_link_info[ino] when
2037 dellocating an inode. (Not strictly necessary, but...)
2039 * pass4.c (pass4): Add "bonehead" explanation to the "programming
2042 Tue Aug 27 11:26:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2044 * e2fsck.c (PRS,main): Added new options -s and -S. -s will
2045 byte-swap the filesystem so that it is normalized. -S
2046 will byte-swap the filesystem regardless of its current
2049 * swapfs.c: New file, which will byte-swap a filesystem.
2051 Tue Aug 20 09:41:37 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2053 * pass1.c (pass1): Change handling on files with non-zero dtime
2054 and non-zero i_link_count; before we treated them as
2055 deleted file per botched ext2 0.3c kernel behavior. We
2056 now clear dtime instead.
2058 Mon Aug 19 23:33:57 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2060 * e2fsck.c (main): If e2fsck sets the clean bit, even if
2061 nothing else is changed, make sure FSCK_NONDESTRUCT is
2062 set (since after all having the filesystem set to
2063 invalid is an error. :-)
2065 Fri Aug 9 10:25:13 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2067 * pass1.c (process_block): Make sure that meta data doesn't get
2068 accidentally set in the dir_blocks array (which could
2069 happen in some error condtions).
2072 * pass2.c (process_bad_inode): Check for fragments in a
2073 OS-independent fashion.
2075 Thu Aug 8 15:20:54 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2077 * e2fsck.c (check_if_skip): Close the filesystem when skipping the
2078 cleanup for the filesystem.
2080 Mon Jul 22 22:03:28 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2082 * e2fsck.c: Improve corrupt_msg, so that it's less confusing.
2084 Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2086 * Release of E2fsprogs version 1.04
2088 Wed May 15 21:41:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2090 * e2fsck.c (relocate_hint): Issue a hint that the user may wish to
2091 try "e2fsck -b 8193" before allowing e2fsck to relocate
2094 * Makefile.in (e2fsck): Build e2fsck statically or dynamically
2095 depending on the option to configure. Added targets for
2096 e2fsck.static and e2fsck.shared for people who want to
2097 build a static or shared variant manually.
2099 Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
2101 * Release of E2fsprogs version 1.03
2103 Tue Mar 26 12:03:42 1996 <tytso@rsts-11.mit.edu>
2105 * e2fsck.c (show_stats): Don't use floating point to display
2106 percentage of non-contiguous files, as different libc
2107 handle result truncation differently, and this causes the
2108 test suite to bomb out depending on which libc you are
2111 * util.c (allocate_memory): Fix error message to omit extraneous
2114 Tue Mar 5 03:50:40 1996 <tytso@rsts-11.mit.edu>
2117 * pass2.c (check_dir_block):
2118 * pass1.c (pass1): Add support for dynamic first inode revision.
2120 Wed Feb 14 16:27:30 1996 <tytso@rsts-11.mit.edu>
2122 * pass3.c (check_root): Fix spelling typo
2124 Mon Feb 5 22:30:30 1996 <tytso@rsts-11.mit.edu>
2126 * e2fsck.c (check_super_block): If the superblock fails certain
2127 internal consistency checks, exit with a fatal error after
2128 printing the "superblock is corrupt message".
2130 Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
2132 * Release of E2fsprogs version 1.02
2134 Wed Dec 15 21:24:26 1996 <tytso@rsts-11.mit.edu>
2136 * pass1.c (process_block): Check to see if a file is "fragmented".
2137 i.e., non-contiguous. Note that any file which is larger
2138 than the block group is guaranteed to be non-contiguous.
2139 We may want to use a different hueristic for deciding
2140 whether or not a file is "fragmented".
2142 * e2fsck.c (show_stats): Print statistics of how many
2143 non-contiguous files are on the system.
2145 Fri Dec 15 19:19:47 1995 <tytso@rsts-11.mit.edu>
2147 * badblocks.c (read_bad_blocks_file, test_disk): Fold
2148 functionality of test_disk() (which runs badblocks) into
2149 read_bad_blocks_file(); test_disk() now calls
2150 read_bad_blocks_file() with a NULL bad_blocks_file
2153 Mon Nov 20 18:30:10 1995 <tytso@rsts-11.mit.edu>
2155 * e2fsck.c (check_mount): Use #if defined(__linux__) instead of
2156 #if defined(linux). The latter won't work if we're
2159 Mon Oct 30 20:31:17 1995 <tytso@rsts-11.mit.edu>
2161 * e2fsck.c (check_mount): For Linux systems, the check to see if
2162 the root is mounted read-only has to be done for all
2163 filesystems, not just for the root filesystem, due to the
2164 way that some /etc/rc scripts are set up.
2166 Thu Oct 26 12:05:30 1995 <tytso@rsts-11.mit.edu>
2168 * Makefile.in (install): Strip programs when they are installed.
2169 (e2fsck): Build e2fsck statically.
2171 Wed Oct 25 21:18:16 1995 <tytso@rsts-11.mit.edu>
2173 * util.c (preenhalt): Preenhalt now takes an argument, which is an
2174 ext2fs_filsys; this allows it to set the EXT2_ERROR_FS
2175 flag in the superblock in cases where preenhalt is called.
2176 All calls to preenhalt() were changed to either
2177 preenhalt(fs) or preenhalt(NULL) in a few cases where the
2178 fs pointer was not available. (Most notable, for block
2181 Mon Sep 4 21:41:03 1995 Remy Card <card@bbj>
2184 util.c: Include <sys/time.h> before <sys/resource.h>. BSD needs it.
2186 Mon Sep 4 10:14:49 1995 <tytso@rsts-11.mit.edu>
2188 * e2fsck.c (show_stats): Show statistics about how many inodes
2189 have indirect, doubly indirect, and triply indirect
2190 blocks. Allow up to 8 digits for statistics, instead of
2191 merely 6, so things look pretty for large filesystems.
2193 * pass1.c (pass1): Keep statistics about indirect, doubly
2194 indirect, and triply indirect blocks.
2196 * pass1.c (unwind_pass1): Clear the above statistics when unwinding
2199 Fri Aug 18 15:17:10 1995 Theodore Y. Ts'o <tytso@dcl>
2201 * util.c, ehandler.c: Move #include of <sys/resource.h> after
2202 #include of "e2fsck.h", since sys/resource.h may depend on
2203 sys/time.h, which is #included in e2fsck.h.
2205 Thu Aug 17 22:33:37 1995 <tytso@rsts-11.mit.edu>
2207 * e2fsck.c (check_mount): Use the new ext2fs_check_if_mounted()
2208 function to determine if the device is mounted.
2210 * e2fsck.c (main): Add better error messages if ext2fs_open()
2213 Wed Aug 16 16:25:02 1995 <tytso@rsts-11.mit.edu>
2215 * pass1.c (check_blocks): If we're clearing a directory, clear
2216 pb.is_dir so we don't do the following check of making
2217 sure the directory size matches; this is pointless, since
2218 we've already cleared the inode.
2220 Fri Aug 11 09:08:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2222 * pass1.c (bad_primary_block): New function, called by
2223 process_bad_block, which explains the facts of life to the
2224 user when a block in the primary superblock or primary
2225 group descriptors is bad.
2227 * pass2.c (check_dot): Handle the case where the first directory
2228 entry is used, but not ".".
2230 * pass2.c (check_dotdot): Handle the case where the second directory
2231 entry is used, but is not "..".
2233 Thu Aug 10 10:05:10 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2235 * e2fsck.c (check_super_block): Get the size of the physical
2236 device and if it is smaller than the reported size of the
2237 filesystem, report an error.
2239 Sat Aug 12 03:39:18 1995 Remy Card <card@bbj>
2241 * e2fsck.c (check_if_skip): Print the number of allocated files and
2242 blocks on clean filesystems.
2244 Fri Aug 11 14:15:36 1995 Remy Card <card@bbj>
2246 * e2fsck.8: Updated date and version number.
2248 Thu Aug 10 14:26:01 1995 Remy Card <card@bbj>
2250 * pass1.c (check_blocks): Check that directory size matches *exactly*
2251 the count of allocated blocks.
2253 Wed Aug 9 21:21:24 1995 Theodore Y. Ts'o <tytso@dcl>
2255 * pass1b.c (pass1d): Free the shared[] array when we're done with
2256 it to avoid a memory leak.
2258 * pass1.c (unwind_pass1): Use ext2fs_free_block_bitmap to free the
2261 * pass2.c (process_bad_inode): When clearing the inode, make sure
2262 the pathname is freed, to prevent a memory leak.
2264 * pass5.c (check_inode_bitmaps): Free free_array and dir_array
2265 when we're finished with them.
2266 (check_block_bitmaps): Free free_array when we're finished
2269 * Makefile.in (e2fsck, flushb): Use $(LD) instead of $(CC) when
2270 linking the executable.
2272 * pass2.c (process_bad_inode): Even on OS's that don't support the
2273 fragment fields, make sure the Linux equivalent fields are
2274 set to zero. If an OS wants to reuse these fields, which
2275 is probably a bad idea (although we may get desperate in
2276 the future) this code will have to be changed.
2278 * pass1.c (dir_block_cmp): If the block numbers are equal, compare
2279 on the inode field, and then blockcnt field. This is just
2280 to keep the ordering of dir_blocks the same on all
2281 platforms when there are more than on missing directory
2282 blocks, which are indicated directories with holes, which
2283 are indicated with the block number being set to zero.
2285 Sun Aug 6 15:40:58 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2287 * pass1.c (check_blocks, process_block): check_blocks() modified
2288 to call the ext2fs_block_iterate() with BLOCK_FLAG_HOLE if
2289 the inode is a directory. process_block() now checks to
2290 see if a directory has a "hole", or missing block. If so,
2291 this fact is recorded in the directory block list so that
2292 the problem can be resolved in pass #2.
2294 * pass2.c (allocate_dir_block): Added allocate_dir_block() to
2295 allocate new blocks for directories with "holes". Called
2296 out of check_dir_block if a block in the directory block
2299 * pass3.c (get_lost_and_found): Move location of free(block) to
2300 prevent possible memory leak.
2302 Sat Aug 5 12:42:22 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2304 * pass2.c (check_dir_block): Use a automatic, fixed-saize array
2305 instead of alloca() --- alloca is not portable! Check to
2306 make sure the filename is not longer than EXT2_NAME_LEN,
2307 and offer to fix it by truncating it, since it should
2310 * e2fsck.c (PRS): Use malloc() instead of alloca() --- alloca() is
2311 not portable!! In any case putenv() in some systems must
2312 take a static character array or malloc()'ed memory;
2313 passing memory allocated using alloca() to putenv() is not
2316 * pass2.c (check_dot, check_dotdot): Use malloc() instead of
2317 alloca() --- alloca() is not portable!!!
2319 Tue Jul 18 20:04:02 1995 <tytso@rsx-11.mit.edu>
2321 * pass1b.c (pass1c):
2322 * pass3.c (check_root, get_lost_and_found):
2323 * pass2.c (check_dir_block): Use ext2fs_{read,write}_dir_block
2324 to read/write the directory block.
2326 Mon Jul 17 04:00:56 1995 <tytso@rsx-11.mit.edu>
2328 * util.c (ask_yn): Apply patch supplied by Peter A. Zaitcev to
2329 make sure VMIN and VTIME are set correct.
2331 Fri Jul 14 19:26:29 1995 <tytso@rsx-11.mit.edu>
2333 * pass1.c (mark_block_used): Change to be an inline function.
2334 Assume that the block validity checks are already done,
2335 and use the fast variant of the bitmap functions.
2337 Thu Jul 13 08:10:55 1995 <tytso@rsx-11.mit.edu>
2339 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Check the
2340 bounds of the bitmaps in advance, and then use the fast
2341 variant of e2fs_test_{block,inode}_bitmap.
2343 * pass1.c (mark_block_used): Use ext2_fast_mark_block_bitmap since
2344 the bounds checking has already been done earlier.
2346 Wed Jul 12 02:22:46 1995 <tytso@rsx-11.mit.edu>
2348 * pass1.c (pass1): Allocate and free the block_illegal_map, which
2349 is used for shortcut processing in process_block.
2350 (mark_table_blocks): Initialize block_illegal_map with the
2352 (describe_illegal_block): New helper function that
2353 describes why a block is illegal.
2354 (process_block): Use block_illegal_map as a shortcut
2355 to determine whether a block is bad. Use
2356 describe_illegal_block to print out why the block is illegal.
2358 Mon Jun 12 19:11:06 1995 Theodore Y. Ts'o (tytso@dcl)
2360 * flushb.c: Don't include <linux/fs.h> if it doesn't exist.
2362 * scantest.c: Don't include <linux/fs.h>, <getopt.h>, or
2363 <mntent.h> if they don't exist. (Mostly so that "make
2366 * pass1.c, pass1b.c, pass3.c, badblocks.c: Include <errno.h> (if
2369 * e2fsck.c, scantest.c: Don't include <getopt.h> if it doesn't
2372 Mon Jun 12 08:37:49 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2374 * pass2.c (process_bad_inode, check_for_zero_long,
2375 check_for_zero_char): Change long to u32, and char to u8.
2377 Sun Jun 11 15:05:57 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
2379 * util.c (inode_has_valid_blocks):
2380 * pass2.c (process_bad_inode):
2381 * pass1.c (pass1, check_blocks, pass1_check_directory): Use
2382 LINUX_S_IS* instead of S_IS*.
2384 * e2fsck.h: Don't #include <sys/stat.h>
2386 * flushb.c (main): Add #ifdef BLKFLSBUF around ioctl. (Although
2387 this program is pretty much useless if BLKFLSBUF isn't
2390 * e2fsck.c, badblocks.c: Add #include <errno.h>, since errno is
2393 Thu Jun 8 12:31:19 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
2395 * pass2.c (check_dot, check_dotdot, check_dir_block): Use alloca
2396 to allocate space for file names instead of using fixed size buffers.
2397 (process_bad_inode): Only check inode frag fields if
2398 HAVE_EXT2_FRAGS is defined (by configure).
2399 * pass1.c (pass1): Only check the inode frag fields if
2400 HAVE_EXT2_FRAGS is defined (by configure).
2402 * e2fsck.c (check_mount): Only check for a mounted filesystem if
2403 HAVE_MNTENT_H is defined (by configure).
2404 (PRS): Use alloca to allocate the new path string, instead of
2405 having a fixed size buffer (which was the wrong size anyway).
2406 (PRS): Only support the -F (flush) option if the BLKFLSBUF ioctl
2409 * e2fsck.h: Only include <linux/fs.h> if HAVE_LINUX_FS_H is
2410 defined (by configure).
2412 * Makefile.in: Rewritten to conform to GNU coding standards and
2413 support separate compilation directories.
2415 Thu Apr 6 15:04:36 1995 Remy Card <card@bbj.ibp.fr>
2417 * pass1.c (pass1): Test the mode in reserved inodes (must be zero).
2419 Sat Mar 11 13:12:16 1995 Theodore Y. Ts'o <tytso@localhost>
2421 * pass1.c (unwind_pass1): Clear the file type statistics counter
2422 when pass 1 needs to be restarted from scratch.
2424 * pass1.c (handle_fs_bad_blocks): Fix bug where bitmap blocks were
2425 being reallocated to blocks in the next block group,
2426 instead of the current block grup.
2428 * pass1.c (pass1, check_blocks): Set inode_link_info[ino] whenever
2429 inode.i_links_count is set.
2431 Tue Feb 14 01:38:04 1995 Theodore Y. Ts'o (tytso@rt-11)
2433 * pass1.c (process_block): Add checks for if the block is
2434 trepassing on a superblock or group descriptor table.
2436 Sat Dec 31 00:52:11 1994 <tytso@rsx-11.mit.edu>
2438 * main.c (corrupt_msg): Extend the message which is printed out
2439 when the superblock is corrupt, to include the suggestion
2440 of using the -b option to specify an alternate superblock.
2442 Thu Nov 24 09:29:58 1994 Theodore Y. Ts'o (tytso@rt-11)
2444 * badblocks.c (read_bad_blocks_file): If we are adding or
2445 replacing bad blocks in the bad blocks inode, sanity check
2446 the bad block inode first, and clear out any illegal blocks.
2448 * pass2.c (check_name): Don't bomb out if the attempt to get the
2449 pathname of the containing directory returns an error; the
2450 directory may be too badly damaged to expect that
2451 ext2fs_get_pathname will always succeed. Use "???" if the
2452 pathname can't be obtained (it's only for a printf to the
2455 The name of the containing directory and the bad filename
2456 were incorrectly interchanged in the user message. Fixed.
2458 * pass2.c (check_name, check_dir_block): Use a common static
2459 string for the unknown pathname.
2461 Mon Nov 7 22:30:54 1994 Remy Card <card@bbj>
2463 * Fixed lots of printf formats to make sure that block and inode
2464 numbers are printed as unsigned integers.
2466 Mon Oct 24 14:10:46 1994 (tytso@rsx-11)
2468 * pass5.c (check_block_end): Fix calculation of how the last block
2469 in the block bitmap should be calculated.
2471 Wed Sep 7 10:01:13 1994 (tytso@rsx-11)
2473 * pass1b.c (pass1_dupblocks): Fix declaration of dup_inode_map to
2474 be an ext2fs_inode_bitmap, and free it properly.
2477 * e2fsck.c (main): Folded in Remy Card's changes to add a revision
2478 level to the superblock.
2480 Wed Aug 17 22:00:20 1994 Remy Card (card@bbj)
2482 * e2fsck.c (usage): Fixed bogus usage message.
2484 Wed Aug 17 11:21:45 1994 Theodore Y. Ts'o (tytso@rt-11)
2486 * pass1.c (process_bad_block): Fixed bug so that blocks in the
2487 backup superblocks and group descriptors are handled gracefully.