1 Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
3 * Release of E2fsprogs version 1.02
5 Wed Dec 15 21:24:26 1996 <tytso@rsts-11.mit.edu>
7 * pass1.c (process_block): Check to see if a file is "fragmented".
8 i.e., non-contiguous. Note that any file which is larger
9 than the block group is guaranteed to be non-contiguous.
10 We may want to use a different hueristic for deciding
11 whether or not a file is "fragmented".
13 * e2fsck.c (show_stats): Print statistics of how many
14 non-contiguous files are on the system.
16 Fri Dec 15 19:19:47 1995 <tytso@rsts-11.mit.edu>
18 * badblocks.c (read_bad_blocks_file, test_disk): Fold
19 functionality of test_disk() (which runs badblocks) into
20 read_bad_blocks_file(); test_disk() now calls
21 read_bad_blocks_file() with a NULL bad_blocks_file
24 Mon Nov 20 18:30:10 1995 <tytso@rsts-11.mit.edu>
26 * e2fsck.c (check_mount): Use #if defined(__linux__) instead of
27 #if defined(linux). The latter won't work if we're
30 Mon Oct 30 20:31:17 1995 <tytso@rsts-11.mit.edu>
32 * e2fsck.c (check_mount): For Linux systems, the check to see if
33 the root is mounted read-only has to be done for all
34 filesystems, not just for the root filesystem, due to the
35 way that some /etc/rc scripts are set up.
37 Thu Oct 26 12:05:30 1995 <tytso@rsts-11.mit.edu>
39 * Makefile.in (install): Strip programs when they are installed.
40 (e2fsck): Build e2fsck statically.
42 Wed Oct 25 21:18:16 1995 <tytso@rsts-11.mit.edu>
44 * util.c (preenhalt): Preenhalt now takes an argument, which is an
45 ext2fs_filsys; this allows it to set the EXT2_ERROR_FS
46 flag in the superblock in cases where preenhalt is called.
47 All calls to preenhalt() were changed to either
48 preenhalt(fs) or preenhalt(NULL) in a few cases where the
49 fs pointer was not available. (Most notable, for block
52 Mon Sep 4 21:41:03 1995 Remy Card <card@bbj>
55 util.c: Include <sys/time.h> before <sys/resource.h>. BSD needs it.
57 Mon Sep 4 10:14:49 1995 <tytso@rsts-11.mit.edu>
59 * e2fsck.c (show_stats): Show statistics about how many inodes
60 have indirect, doubly indirect, and triply indirect
61 blocks. Allow up to 8 digits for statistics, instead of
62 merely 6, so things look pretty for large filesystems.
64 * pass1.c (pass1): Keep statistics about indirect, doubly
65 indirect, and triply indirect blocks.
67 * pass1.c (unwind_pass1): Clear the above statistics when unwinding
70 Fri Aug 18 15:17:10 1995 Theodore Y. Ts'o <tytso@dcl>
72 * util.c, ehandler.c: Move #include of <sys/resource.h> after
73 #include of "e2fsck.h", since sys/resource.h may depend on
74 sys/time.h, which is #included in e2fsck.h.
76 Thu Aug 17 22:33:37 1995 <tytso@rsts-11.mit.edu>
78 * e2fsck.c (check_mount): Use the new ext2fs_check_if_mounted()
79 function to determine if the device is mounted.
81 * e2fsck.c (main): Add better error messages if ext2fs_open()
84 Wed Aug 16 16:25:02 1995 <tytso@rsts-11.mit.edu>
86 * pass1.c (check_blocks): If we're clearing a directory, clear
87 pb.is_dir so we don't do the following check of making
88 sure the directory size matches; this is pointless, since
89 we've already cleared the inode.
91 Fri Aug 11 09:08:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
93 * pass1.c (bad_primary_block): New function, called by
94 process_bad_block, which explains the facts of life to the
95 user when a block in the primary superblock or primary
96 group descriptors is bad.
98 * pass2.c (check_dot): Handle the case where the first directory
99 entry is used, but not ".".
101 * pass2.c (check_dotdot): Handle the case where the second directory
102 entry is used, but is not "..".
104 Thu Aug 10 10:05:10 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
106 * e2fsck.c (check_super_block): Get the size of the physical
107 device and if it is smaller than the reported size of the
108 filesystem, report an error.
110 Sat Aug 12 03:39:18 1995 Remy Card <card@bbj>
112 * e2fsck.c (check_if_skip): Print the number of allocated files and
113 blocks on clean filesystems.
115 Fri Aug 11 14:15:36 1995 Remy Card <card@bbj>
117 * e2fsck.8: Updated date and version number.
119 Thu Aug 10 14:26:01 1995 Remy Card <card@bbj>
121 * pass1.c (check_blocks): Check that directory size matches *exactly*
122 the count of allocated blocks.
124 Wed Aug 9 21:21:24 1995 Theodore Y. Ts'o <tytso@dcl>
126 * pass1b.c (pass1d): Free the shared[] array when we're done with
127 it to avoid a memory leak.
129 * pass1.c (unwind_pass1): Use ext2fs_free_block_bitmap to free the
132 * pass2.c (process_bad_inode): When clearing the inode, make sure
133 the pathname is freed, to prevent a memory leak.
135 * pass5.c (check_inode_bitmaps): Free free_array and dir_array
136 when we're finished with them.
137 (check_block_bitmaps): Free free_array when we're finished
140 * Makefile.in (e2fsck, flushb): Use $(LD) instead of $(CC) when
141 linking the executable.
143 * pass2.c (process_bad_inode): Even on OS's that don't support the
144 fragment fields, make sure the Linux equivalent fields are
145 set to zero. If an OS wants to reuse these fields, which
146 is probably a bad idea (although we may get desperate in
147 the future) this code will have to be changed.
149 * pass1.c (dir_block_cmp): If the block numbers are equal, compare
150 on the inode field, and then blockcnt field. This is just
151 to keep the ordering of dir_blocks the same on all
152 platforms when there are more than on missing directory
153 blocks, which are indicated directories with holes, which
154 are indicated with the block number being set to zero.
156 Sun Aug 6 15:40:58 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
158 * pass1.c (check_blocks, process_block): check_blocks() modified
159 to call the ext2fs_block_iterate() with BLOCK_FLAG_HOLE if
160 the inode is a directory. process_block() now checks to
161 see if a directory has a "hole", or missing block. If so,
162 this fact is recorded in the directory block list so that
163 the problem can be resolved in pass #2.
165 * pass2.c (allocate_dir_block): Added allocate_dir_block() to
166 allocate new blocks for directories with "holes". Called
167 out of check_dir_block if a block in the directory block
170 * pass3.c (get_lost_and_found): Move location of free(block) to
171 prevent possible memory leak.
173 Sat Aug 5 12:42:22 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
175 * pass2.c (check_dir_block): Use a automatic, fixed-saize array
176 instead of alloca() --- alloca is not portable! Check to
177 make sure the filename is not longer than EXT2_NAME_LEN,
178 and offer to fix it by truncating it, since it should
181 * e2fsck.c (PRS): Use malloc() instead of alloca() --- alloca() is
182 not portable!! In any case putenv() in some systems must
183 take a static character array or malloc()'ed memory;
184 passing memory allocated using alloca() to putenv() is not
187 * pass2.c (check_dot, check_dotdot): Use malloc() instead of
188 alloca() --- alloca() is not portable!!!
190 Tue Jul 18 20:04:02 1995 <tytso@rsx-11.mit.edu>
193 * pass3.c (check_root, get_lost_and_found):
194 * pass2.c (check_dir_block): Use ext2fs_{read,write}_dir_block
195 to read/write the directory block.
197 Mon Jul 17 04:00:56 1995 <tytso@rsx-11.mit.edu>
199 * util.c (ask_yn): Apply patch supplied by Peter A. Zaitcev to
200 make sure VMIN and VTIME are set correct.
202 Fri Jul 14 19:26:29 1995 <tytso@rsx-11.mit.edu>
204 * pass1.c (mark_block_used): Change to be an inline function.
205 Assume that the block validity checks are already done,
206 and use the fast variant of the bitmap functions.
208 Thu Jul 13 08:10:55 1995 <tytso@rsx-11.mit.edu>
210 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Check the
211 bounds of the bitmaps in advance, and then use the fast
212 variant of e2fs_test_{block,inode}_bitmap.
214 * pass1.c (mark_block_used): Use ext2_fast_mark_block_bitmap since
215 the bounds checking has already been done earlier.
217 Wed Jul 12 02:22:46 1995 <tytso@rsx-11.mit.edu>
219 * pass1.c (pass1): Allocate and free the block_illegal_map, which
220 is used for shortcut processing in process_block.
221 (mark_table_blocks): Initialize block_illegal_map with the
223 (describe_illegal_block): New helper function that
224 describes why a block is illegal.
225 (process_block): Use block_illegal_map as a shortcut
226 to determine whether a block is bad. Use
227 describe_illegal_block to print out why the block is illegal.
229 Mon Jun 12 19:11:06 1995 Theodore Y. Ts'o (tytso@dcl)
231 * flushb.c: Don't include <linux/fs.h> if it doesn't exist.
233 * scantest.c: Don't include <linux/fs.h>, <getopt.h>, or
234 <mntent.h> if they don't exist. (Mostly so that "make
237 * pass1.c, pass1b.c, pass3.c, badblocks.c: Include <errno.h> (if
240 * e2fsck.c, scantest.c: Don't include <getopt.h> if it doesn't
243 Mon Jun 12 08:37:49 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
245 * pass2.c (process_bad_inode, check_for_zero_long,
246 check_for_zero_char): Change long to u32, and char to u8.
248 Sun Jun 11 15:05:57 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
250 * util.c (inode_has_valid_blocks):
251 * pass2.c (process_bad_inode):
252 * pass1.c (pass1, check_blocks, pass1_check_directory): Use
253 LINUX_S_IS* instead of S_IS*.
255 * e2fsck.h: Don't #include <sys/stat.h>
257 * flushb.c (main): Add #ifdef BLKFLSBUF around ioctl. (Although
258 this program is pretty much useless if BLKFLSBUF isn't
261 * e2fsck.c, badblocks.c: Add #include <errno.h>, since errno is
264 Thu Jun 8 12:31:19 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
266 * pass2.c (check_dot, check_dotdot, check_dir_block): Use alloca
267 to allocate space for file names instead of using fixed size buffers.
268 (process_bad_inode): Only check inode frag fields if
269 HAVE_EXT2_FRAGS is defined (by configure).
270 * pass1.c (pass1): Only check the inode frag fields if
271 HAVE_EXT2_FRAGS is defined (by configure).
273 * e2fsck.c (check_mount): Only check for a mounted filesystem if
274 HAVE_MNTENT_H is defined (by configure).
275 (PRS): Use alloca to allocate the new path string, instead of
276 having a fixed size buffer (which was the wrong size anyway).
277 (PRS): Only support the -F (flush) option if the BLKFLSBUF ioctl
280 * e2fsck.h: Only include <linux/fs.h> if HAVE_LINUX_FS_H is
281 defined (by configure).
283 * Makefile.in: Rewritten to conform to GNU coding standards and
284 support separate compilation directories.
286 Thu Apr 6 15:04:36 1995 Remy Card <card@bbj.ibp.fr>
288 * pass1.c (pass1): Test the mode in reserved inodes (must be zero).
290 Sat Mar 11 13:12:16 1995 Theodore Y. Ts'o <tytso@localhost>
292 * pass1.c (unwind_pass1): Clear the file type statistics counter
293 when pass 1 needs to be restarted from scratch.
295 * pass1.c (handle_fs_bad_blocks): Fix bug where bitmap blocks were
296 being reallocated to blocks in the next block group,
297 instead of the current block grup.
299 * pass1.c (pass1, check_blocks): Set inode_link_info[ino] whenever
300 inode.i_links_count is set.
302 Tue Feb 14 01:38:04 1995 Theodore Y. Ts'o (tytso@rt-11)
304 * pass1.c (process_block): Add checks for if the block is
305 trepassing on a superblock or group descriptor table.
307 Sat Dec 31 00:52:11 1994 <tytso@rsx-11.mit.edu>
309 * main.c (corrupt_msg): Extend the message which is printed out
310 when the superblock is corrupt, to include the suggestion
311 of using the -b option to specify an alternate superblock.
313 Thu Nov 24 09:29:58 1994 Theodore Y. Ts'o (tytso@rt-11)
315 * badblocks.c (read_bad_blocks_file): If we are adding or
316 replacing bad blocks in the bad blocks inode, sanity check
317 the bad block inode first, and clear out any illegal blocks.
319 * pass2.c (check_name): Don't bomb out if the attempt to get the
320 pathname of the containing directory returns an error; the
321 directory may be too badly damaged to expect that
322 ext2fs_get_pathname will always succeed. Use "???" if the
323 pathname can't be obtained (it's only for a printf to the
326 The name of the containing directory and the bad filename
327 were incorrectly interchanged in the user message. Fixed.
329 * pass2.c (check_name, check_dir_block): Use a common static
330 string for the unknown pathname.
332 Mon Nov 7 22:30:54 1994 Remy Card <card@bbj>
334 * Fixed lots of printf formats to make sure that block and inode
335 numbers are printed as unsigned integers.
337 Mon Oct 24 14:10:46 1994 (tytso@rsx-11)
339 * pass5.c (check_block_end): Fix calculation of how the last block
340 in the block bitmap should be calculated.
342 Wed Sep 7 10:01:13 1994 (tytso@rsx-11)
344 * pass1b.c (pass1_dupblocks): Fix declaration of dup_inode_map to
345 be an ext2fs_inode_bitmap, and free it properly.
348 * e2fsck.c (main): Folded in Remy Card's changes to add a revision
349 level to the superblock.
351 Wed Aug 17 22:00:20 1994 Remy Card (card@bbj)
353 * e2fsck.c (usage): Fixed bogus usage message.
355 Wed Aug 17 11:21:45 1994 Theodore Y. Ts'o (tytso@rt-11)
357 * pass1.c (process_bad_block): Fixed bug so that blocks in the
358 backup superblocks and group descriptors are handled gracefully.