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