blob: f69dc08318a6425a979d29b3f336fbb4e4e95fef [file] [log] [blame]
Theodore Ts'o5c576471997-04-29 15:29:49 +00001Mon Oct 7 00:45:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
2
3 * e2fsck.c (main): Print out the version number of the shared
4 library when using the -V option.
5
6 * swapfs.c (swap_filesys): Change EXT2_SWAP to EXT2_FLAG_SWAP for
7 consistency's sake.
8
9 * e2fsck.c (main): By setting EXT2_FLAG_MASTER_SB_ONLY, only write
10 out the backup superblocks when we know we have a valid
11 filesystem.
12
13Tue Oct 1 22:00:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
14
15 * util.c (preenhalt): Make it explicit on preenhalt that running
16 e2fsck manually means without the -a or -p flag.
17
18Fri Sep 27 14:41:08 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
19
20 * pass1.c (pass1): Add support for the EXT2_BOOT_LOADER inode.
21 (Linux/FT actually sets the mode bits, so we have to
22 handle it specially.)
23
24 * e2fsck.c (check_if_skip): Print a message if the filesystem is
25 just dirty, so that the user knows that it's about to be
26 checked (since this will take a while).
27
28Mon Sep 16 17:00:01 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
29
30 * pass4.c: If a disconnected inode is zero-length, prompt to
31 delete it instead of connecting it to lost+found.
32
33Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
34
35 * Release of E2fsprogs version 1.05
36
Theodore Ts'o1e3472c1997-04-29 14:53:37 +000037Fri Aug 30 20:24:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
38
39 * pass4.c (pass4): If the user refuses to connect an unattached
40 inode to lost+found, don't try to set i_links_count. This
41 is bad, since if the user says yes, the inode will be
42 marked as unused, which is not necessarily the right
43 thing, especially since the rest of the cleanup doesn't
44 happen here.
45
46 * pass2.c (deallocate_inode): Set inode_link_info[ino] when
47 dellocating an inode. (Not strictly necessary, but...)
48
49 * pass4.c (pass4): Add "bonehead" explanation to the "programming
50 error" message.
51
52Tue Aug 27 11:26:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
53
54 * e2fsck.c (PRS,main): Added new options -s and -S. -s will
55 byte-swap the filesystem so that it is normalized. -S
56 will byte-swap the filesystem regardless of its current
57 byte-order.
58
59 * swapfs.c: New file, which will byte-swap a filesystem.
60
61Tue Aug 20 09:41:37 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
62
63 * pass1.c (pass1): Change handling on files with non-zero dtime
64 and non-zero i_link_count; before we treated them as
65 deleted file per botched ext2 0.3c kernel behavior. We
66 now clear dtime instead.
67
68Mon Aug 19 23:33:57 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
69
70 * e2fsck.c (main): If e2fsck sets the clean bit, even if
71 nothing else is changed, make sure FSCK_NONDESTRUCT is
72 set (since after all having the filesystem set to
73 invalid is an error. :-)
74
75Fri Aug 9 10:25:13 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
76
77 * pass1.c (process_block): Make sure that meta data doesn't get
78 accidentally set in the dir_blocks array (which could
79 happen in some error condtions).
80
81 * pass1.c (pass1):
82 * pass2.c (process_bad_inode): Check for fragments in a
83 OS-independent fashion.
84
85Thu Aug 8 15:20:54 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
86
87 * e2fsck.c (check_if_skip): Close the filesystem when skipping the
88 cleanup for the filesystem.
89
90Mon Jul 22 22:03:28 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
91
92 * e2fsck.c: Improve corrupt_msg, so that it's less confusing.
93
Theodore Ts'o62c06f71997-04-29 14:34:47 +000094Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
95
96 * Release of E2fsprogs version 1.04
97
98Wed May 15 21:41:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
99
100 * e2fsck.c (relocate_hint): Issue a hint that the user may wish to
101 try "e2fsck -b 8193" before allowing e2fsck to relocate
102 inode table blocks.
103
104 * Makefile.in (e2fsck): Build e2fsck statically or dynamically
105 depending on the option to configure. Added targets for
106 e2fsck.static and e2fsck.shared for people who want to
107 build a static or shared variant manually.
108
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000109Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
110
111 * Release of E2fsprogs version 1.03
112
113Tue Mar 26 12:03:42 1996 <tytso@rsts-11.mit.edu>
114
115 * e2fsck.c (show_stats): Don't use floating point to display
116 percentage of non-contiguous files, as different libc
117 handle result truncation differently, and this causes the
118 test suite to bomb out depending on which libc you are
119 using.
120
121 * util.c (allocate_memory): Fix error message to omit extraneous
122 %%s.
123
124Tue Mar 5 03:50:40 1996 <tytso@rsts-11.mit.edu>
125
126 * pass4.c (pass4):
127 * pass2.c (check_dir_block):
128 * pass1.c (pass1): Add support for dynamic first inode revision.
129
130Wed Feb 14 16:27:30 1996 <tytso@rsts-11.mit.edu>
131
132 * pass3.c (check_root): Fix spelling typo
133
134Mon Feb 5 22:30:30 1996 <tytso@rsts-11.mit.edu>
135
136 * e2fsck.c (check_super_block): If the superblock fails certain
137 internal consistency checks, exit with a fatal error after
138 printing the "superblock is corrupt message".
139
Theodore Ts'o74becf31997-04-26 14:37:06 +0000140Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
141
142 * Release of E2fsprogs version 1.02
143
144Wed Dec 15 21:24:26 1996 <tytso@rsts-11.mit.edu>
145
146 * pass1.c (process_block): Check to see if a file is "fragmented".
147 i.e., non-contiguous. Note that any file which is larger
148 than the block group is guaranteed to be non-contiguous.
149 We may want to use a different hueristic for deciding
150 whether or not a file is "fragmented".
151
152 * e2fsck.c (show_stats): Print statistics of how many
153 non-contiguous files are on the system.
154
155Fri Dec 15 19:19:47 1995 <tytso@rsts-11.mit.edu>
156
157 * badblocks.c (read_bad_blocks_file, test_disk): Fold
158 functionality of test_disk() (which runs badblocks) into
159 read_bad_blocks_file(); test_disk() now calls
160 read_bad_blocks_file() with a NULL bad_blocks_file
161 argument.
162
163Mon Nov 20 18:30:10 1995 <tytso@rsts-11.mit.edu>
164
165 * e2fsck.c (check_mount): Use #if defined(__linux__) instead of
166 #if defined(linux). The latter won't work if we're
167 compiling -ansi.
168
Theodore Ts'o297f47a1997-04-26 14:25:20 +0000169Mon Oct 30 20:31:17 1995 <tytso@rsts-11.mit.edu>
170
171 * e2fsck.c (check_mount): For Linux systems, the check to see if
172 the root is mounted read-only has to be done for all
173 filesystems, not just for the root filesystem, due to the
174 way that some /etc/rc scripts are set up.
175
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000176Thu Oct 26 12:05:30 1995 <tytso@rsts-11.mit.edu>
177
178 * Makefile.in (install): Strip programs when they are installed.
179 (e2fsck): Build e2fsck statically.
180
181Wed Oct 25 21:18:16 1995 <tytso@rsts-11.mit.edu>
182
183 * util.c (preenhalt): Preenhalt now takes an argument, which is an
184 ext2fs_filsys; this allows it to set the EXT2_ERROR_FS
185 flag in the superblock in cases where preenhalt is called.
186 All calls to preenhalt() were changed to either
187 preenhalt(fs) or preenhalt(NULL) in a few cases where the
188 fs pointer was not available. (Most notable, for block
189 read/write errors.)
190
191Mon Sep 4 21:41:03 1995 Remy Card <card@bbj>
192
193 * ehandler.c:
194 util.c: Include <sys/time.h> before <sys/resource.h>. BSD needs it.
195
196Mon Sep 4 10:14:49 1995 <tytso@rsts-11.mit.edu>
197
198 * e2fsck.c (show_stats): Show statistics about how many inodes
199 have indirect, doubly indirect, and triply indirect
200 blocks. Allow up to 8 digits for statistics, instead of
201 merely 6, so things look pretty for large filesystems.
202
203 * pass1.c (pass1): Keep statistics about indirect, doubly
204 indirect, and triply indirect blocks.
205
206 * pass1.c (unwind_pass1): Clear the above statistics when unwinding
207 pass 1.
208
209Fri Aug 18 15:17:10 1995 Theodore Y. Ts'o <tytso@dcl>
210
211 * util.c, ehandler.c: Move #include of <sys/resource.h> after
212 #include of "e2fsck.h", since sys/resource.h may depend on
213 sys/time.h, which is #included in e2fsck.h.
214
215Thu Aug 17 22:33:37 1995 <tytso@rsts-11.mit.edu>
216
217 * e2fsck.c (check_mount): Use the new ext2fs_check_if_mounted()
218 function to determine if the device is mounted.
219
220 * e2fsck.c (main): Add better error messages if ext2fs_open()
221 fails.
222
223Wed Aug 16 16:25:02 1995 <tytso@rsts-11.mit.edu>
224
225 * pass1.c (check_blocks): If we're clearing a directory, clear
226 pb.is_dir so we don't do the following check of making
227 sure the directory size matches; this is pointless, since
228 we've already cleared the inode.
229
230Fri Aug 11 09:08:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
231
232 * pass1.c (bad_primary_block): New function, called by
233 process_bad_block, which explains the facts of life to the
234 user when a block in the primary superblock or primary
235 group descriptors is bad.
236
237 * pass2.c (check_dot): Handle the case where the first directory
238 entry is used, but not ".".
239
240 * pass2.c (check_dotdot): Handle the case where the second directory
241 entry is used, but is not "..".
242
243Thu Aug 10 10:05:10 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
244
245 * e2fsck.c (check_super_block): Get the size of the physical
246 device and if it is smaller than the reported size of the
247 filesystem, report an error.
248
249Sat Aug 12 03:39:18 1995 Remy Card <card@bbj>
250
251 * e2fsck.c (check_if_skip): Print the number of allocated files and
252 blocks on clean filesystems.
253
254Fri Aug 11 14:15:36 1995 Remy Card <card@bbj>
255
256 * e2fsck.8: Updated date and version number.
257
258Thu Aug 10 14:26:01 1995 Remy Card <card@bbj>
259
260 * pass1.c (check_blocks): Check that directory size matches *exactly*
261 the count of allocated blocks.
262
263Wed Aug 9 21:21:24 1995 Theodore Y. Ts'o <tytso@dcl>
264
265 * pass1b.c (pass1d): Free the shared[] array when we're done with
266 it to avoid a memory leak.
267
268 * pass1.c (unwind_pass1): Use ext2fs_free_block_bitmap to free the
269 block_dup_map.
270
271 * pass2.c (process_bad_inode): When clearing the inode, make sure
272 the pathname is freed, to prevent a memory leak.
273
274 * pass5.c (check_inode_bitmaps): Free free_array and dir_array
275 when we're finished with them.
276 (check_block_bitmaps): Free free_array when we're finished
277 with them.
278
279 * Makefile.in (e2fsck, flushb): Use $(LD) instead of $(CC) when
280 linking the executable.
281
282 * pass2.c (process_bad_inode): Even on OS's that don't support the
283 fragment fields, make sure the Linux equivalent fields are
284 set to zero. If an OS wants to reuse these fields, which
285 is probably a bad idea (although we may get desperate in
286 the future) this code will have to be changed.
287
288 * pass1.c (dir_block_cmp): If the block numbers are equal, compare
289 on the inode field, and then blockcnt field. This is just
290 to keep the ordering of dir_blocks the same on all
291 platforms when there are more than on missing directory
292 blocks, which are indicated directories with holes, which
293 are indicated with the block number being set to zero.
294
295Sun Aug 6 15:40:58 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
296
297 * pass1.c (check_blocks, process_block): check_blocks() modified
298 to call the ext2fs_block_iterate() with BLOCK_FLAG_HOLE if
299 the inode is a directory. process_block() now checks to
300 see if a directory has a "hole", or missing block. If so,
301 this fact is recorded in the directory block list so that
302 the problem can be resolved in pass #2.
303
304 * pass2.c (allocate_dir_block): Added allocate_dir_block() to
305 allocate new blocks for directories with "holes". Called
306 out of check_dir_block if a block in the directory block
307 list is zero.
308
309 * pass3.c (get_lost_and_found): Move location of free(block) to
310 prevent possible memory leak.
311
312Sat Aug 5 12:42:22 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
313
314 * pass2.c (check_dir_block): Use a automatic, fixed-saize array
315 instead of alloca() --- alloca is not portable! Check to
316 make sure the filename is not longer than EXT2_NAME_LEN,
317 and offer to fix it by truncating it, since it should
318 never happen.
319
320 * e2fsck.c (PRS): Use malloc() instead of alloca() --- alloca() is
321 not portable!! In any case putenv() in some systems must
322 take a static character array or malloc()'ed memory;
323 passing memory allocated using alloca() to putenv() is not
324 advisable.
325
326 * pass2.c (check_dot, check_dotdot): Use malloc() instead of
327 alloca() --- alloca() is not portable!!!
328
329Tue Jul 18 20:04:02 1995 <tytso@rsx-11.mit.edu>
330
331 * pass1b.c (pass1c):
332 * pass3.c (check_root, get_lost_and_found):
333 * pass2.c (check_dir_block): Use ext2fs_{read,write}_dir_block
334 to read/write the directory block.
335
336Mon Jul 17 04:00:56 1995 <tytso@rsx-11.mit.edu>
337
338 * util.c (ask_yn): Apply patch supplied by Peter A. Zaitcev to
339 make sure VMIN and VTIME are set correct.
340
341Fri Jul 14 19:26:29 1995 <tytso@rsx-11.mit.edu>
342
343 * pass1.c (mark_block_used): Change to be an inline function.
344 Assume that the block validity checks are already done,
345 and use the fast variant of the bitmap functions.
346
347Thu Jul 13 08:10:55 1995 <tytso@rsx-11.mit.edu>
348
349 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Check the
350 bounds of the bitmaps in advance, and then use the fast
351 variant of e2fs_test_{block,inode}_bitmap.
352
353 * pass1.c (mark_block_used): Use ext2_fast_mark_block_bitmap since
354 the bounds checking has already been done earlier.
355
356Wed Jul 12 02:22:46 1995 <tytso@rsx-11.mit.edu>
357
358 * pass1.c (pass1): Allocate and free the block_illegal_map, which
359 is used for shortcut processing in process_block.
360 (mark_table_blocks): Initialize block_illegal_map with the
361 filesystem blocks.
362 (describe_illegal_block): New helper function that
363 describes why a block is illegal.
364 (process_block): Use block_illegal_map as a shortcut
365 to determine whether a block is bad. Use
366 describe_illegal_block to print out why the block is illegal.
367
368Mon Jun 12 19:11:06 1995 Theodore Y. Ts'o (tytso@dcl)
369
370 * flushb.c: Don't include <linux/fs.h> if it doesn't exist.
371
372 * scantest.c: Don't include <linux/fs.h>, <getopt.h>, or
373 <mntent.h> if they don't exist. (Mostly so that "make
374 depend" works.)
375
376 * pass1.c, pass1b.c, pass3.c, badblocks.c: Include <errno.h> (if
377 it exists).
378
379 * e2fsck.c, scantest.c: Don't include <getopt.h> if it doesn't
380 exist.
381
382Mon Jun 12 08:37:49 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
383
384 * pass2.c (process_bad_inode, check_for_zero_long,
385 check_for_zero_char): Change long to u32, and char to u8.
386
387Sun Jun 11 15:05:57 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
388
389 * util.c (inode_has_valid_blocks):
390 * pass2.c (process_bad_inode):
391 * pass1.c (pass1, check_blocks, pass1_check_directory): Use
392 LINUX_S_IS* instead of S_IS*.
393
394 * e2fsck.h: Don't #include <sys/stat.h>
395
396 * flushb.c (main): Add #ifdef BLKFLSBUF around ioctl. (Although
397 this program is pretty much useless if BLKFLSBUF isn't
398 supported.)
399
400 * e2fsck.c, badblocks.c: Add #include <errno.h>, since errno is
401 used.
402
403Thu Jun 8 12:31:19 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
404
405 * pass2.c (check_dot, check_dotdot, check_dir_block): Use alloca
406 to allocate space for file names instead of using fixed size buffers.
407 (process_bad_inode): Only check inode frag fields if
408 HAVE_EXT2_FRAGS is defined (by configure).
409 * pass1.c (pass1): Only check the inode frag fields if
410 HAVE_EXT2_FRAGS is defined (by configure).
411
412 * e2fsck.c (check_mount): Only check for a mounted filesystem if
413 HAVE_MNTENT_H is defined (by configure).
414 (PRS): Use alloca to allocate the new path string, instead of
415 having a fixed size buffer (which was the wrong size anyway).
416 (PRS): Only support the -F (flush) option if the BLKFLSBUF ioctl
417 is defined.
418
419 * e2fsck.h: Only include <linux/fs.h> if HAVE_LINUX_FS_H is
420 defined (by configure).
421
422 * Makefile.in: Rewritten to conform to GNU coding standards and
423 support separate compilation directories.
424
425Thu Apr 6 15:04:36 1995 Remy Card <card@bbj.ibp.fr>
426
427 * pass1.c (pass1): Test the mode in reserved inodes (must be zero).
428
Theodore Ts'of3db3561997-04-26 13:34:30 +0000429Sat Mar 11 13:12:16 1995 Theodore Y. Ts'o <tytso@localhost>
430
431 * pass1.c (unwind_pass1): Clear the file type statistics counter
432 when pass 1 needs to be restarted from scratch.
433
434 * pass1.c (handle_fs_bad_blocks): Fix bug where bitmap blocks were
435 being reallocated to blocks in the next block group,
436 instead of the current block grup.
437
438 * pass1.c (pass1, check_blocks): Set inode_link_info[ino] whenever
439 inode.i_links_count is set.
440
441Tue Feb 14 01:38:04 1995 Theodore Y. Ts'o (tytso@rt-11)
442
443 * pass1.c (process_block): Add checks for if the block is
444 trepassing on a superblock or group descriptor table.
445
446Sat Dec 31 00:52:11 1994 <tytso@rsx-11.mit.edu>
447
448 * main.c (corrupt_msg): Extend the message which is printed out
449 when the superblock is corrupt, to include the suggestion
450 of using the -b option to specify an alternate superblock.
451
452Thu Nov 24 09:29:58 1994 Theodore Y. Ts'o (tytso@rt-11)
453
454 * badblocks.c (read_bad_blocks_file): If we are adding or
455 replacing bad blocks in the bad blocks inode, sanity check
456 the bad block inode first, and clear out any illegal blocks.
457
458 * pass2.c (check_name): Don't bomb out if the attempt to get the
459 pathname of the containing directory returns an error; the
460 directory may be too badly damaged to expect that
461 ext2fs_get_pathname will always succeed. Use "???" if the
462 pathname can't be obtained (it's only for a printf to the
463 user anyway).
464
465 The name of the containing directory and the bad filename
466 were incorrectly interchanged in the user message. Fixed.
467
468 * pass2.c (check_name, check_dir_block): Use a common static
469 string for the unknown pathname.
470
471Mon Nov 7 22:30:54 1994 Remy Card <card@bbj>
472
473 * Fixed lots of printf formats to make sure that block and inode
474 numbers are printed as unsigned integers.
475
476Mon Oct 24 14:10:46 1994 (tytso@rsx-11)
477
478 * pass5.c (check_block_end): Fix calculation of how the last block
479 in the block bitmap should be calculated.
480
481Wed Sep 7 10:01:13 1994 (tytso@rsx-11)
482
483 * pass1b.c (pass1_dupblocks): Fix declaration of dup_inode_map to
484 be an ext2fs_inode_bitmap, and free it properly.
485
486 * e2fsck.h
487 * e2fsck.c (main): Folded in Remy Card's changes to add a revision
488 level to the superblock.
489
490Wed Aug 17 22:00:20 1994 Remy Card (card@bbj)
491
492 * e2fsck.c (usage): Fixed bogus usage message.
493
494Wed Aug 17 11:21:45 1994 Theodore Y. Ts'o (tytso@rt-11)
495
496 * pass1.c (process_bad_block): Fixed bug so that blocks in the
497 backup superblocks and group descriptors are handled gracefully.
498