blob: b49d558543362d8de326f98bc0b5428fc23017f5 [file] [log] [blame]
Theodore Ts'of635d7f1997-05-09 02:50:16 +00001Thu May 8 22:45:27 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
2
Theodore Ts'o583ccdc1997-05-09 03:06:31 +00003 * e2fsck.8.in: Fix minor typos and grammer oops found by Bill
4 Hawes (whawes@star.net).
5
Theodore Ts'of635d7f1997-05-09 02:50:16 +00006 * badblocks.c (read_bad_blocks_file): Pass the blocksize to the
7 bad blocks command so that all of the filesystem gets
8 tested in the case where the blocksize 2048 or 4096.
9
Theodore Ts'oa29f4d31997-04-29 21:26:48 +000010Thu Apr 24 12:16:42 1997 Theodre Ts'o <tytso@localhost.mit.edu>
11
12 * Release of E2fsprogs version 1.10
13
14Mon Apr 21 22:43:08 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
15
16 * pass1b.c (pass1b): While scanning for inodes, simply skip inodes
17 where ext2fs_get_next_inode returns the
18 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE error.
19
20Thu Apr 17 12:23:38 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
21
22 * Release of E2fsprogs version 1.09
23
Theodore Ts'o2ecc6fe1997-04-29 17:57:00 +000024Fri Apr 11 18:56:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
25
26 * Release of E2fsprogs version 1.08
27
Theodore Ts'o521e3681997-04-29 17:48:10 +000028Thu Apr 10 13:51:16 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
29
30 * pass1b.c (clone_file_block): If we clone a directory, we need to
31 update the dblist entry so that we check (and correct) the
32 right directory block.
33
34Sun Apr 6 09:13:12 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
35
36 * pass1.c (process_block): Don't clear blocks references to
37 filesystem metadata; let pass 1B handle this case.
38
39 * problem.c, problem.h: Add new problem, PR_1B_SHARE_METADATA.
40
41 * pass1b.c (pass1d): Deal with a block which is shared with
42 filesystem metadata.
43
44 * e2fsck.h: Make block_illegal_map be a global variable
45
46Sat Apr 5 11:51:58 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
47
48 * e2fsck.c, pass1.c (mark_table_blocks): Support the sparse_super
49 feature.
50 (get_backup_sb): New function which attempts to obtain the
51 correct backup superblock (if possible).
52
53Fri Apr 4 10:46:26 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
54
55 * e2fsck.c (main): Check the version of the library, and warn if
56 the library is out of date; this happens generally due to
57 users who manually install e2fsprogs.
58
59 * pass1.c (pass1_get_blocks): If the passed in inode number for
60 get_blocks isn't what we're expecting pass back
61 EXT2_ET_CALLBACK_NOT_HANDLED.
62
Theodore Ts'o21c84b71997-04-29 16:15:03 +000063Wed Mar 12 13:32:05 1997 Theodore Y. Ts'o <tytso@mit.edu>
64
65 * Release of E2fsprogs version 1.07
66
67Tue Mar 11 10:31:47 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
68
69 * icount.c: New file which implements an inode count abstraction.
70 This significantly reduces amount of memory needed to
71 check really large filesystems.
72
73 * pass1.c, pass2.c, pass3.c, pass4.c: Modified to use the icount
74 abstraction.
75
76Fri Mar 7 08:28:55 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
77
78 * dirinfo.c (dir_info_iter): New function which allows iteration
79 over the directories in the dir_info map.
80
81 * pass3.c (pass3, check_directory): Speed up pass 3 by iterating
82 over all directories in the dir_info structure, instead of
83 iterating all inodes looking for directories, and then
84 looking up the directories using get_dir_info().
85
86Sat Feb 1 11:33:43 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
87
88 * pass1.c (pass1, process_block):
89 * pass2.c (pass2): Use the ext2_dblist abstraction instead of
90 manual code to manage the directory block list information.
91
92 * pass1.c (check_blocks), pass1b.c (pass1b), pass2.c
93 (deallocate_inode): Call the ext2 library routine
94 ext2_inode_has_valid_blocks() instead of
95 inode_has_valid_blocks().
96
97 * swapfs.c (swap_inodes): Add check so that we don't try to call
98 swap_inode_blocks unless the inode has valid blocks.
99 (Otherwise a long fast symlink might cause
100 swap_inode_blocks to erroneously get called.)
101
102Wed Jan 22 14:42:53 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
103
104 * problem.c, problem.h: Added entries for PR_2_DOT_NULL_TERM and
105 PR_2_DOT_DOT_NULL_TERM.
106
107 * pass2.c (check_dot, check_dot_dot): Make sure the new . and
108 .. entries are null-terminated, since the 2.0 kernel
109 requires this (for no good reason).
110
111Mon Jan 20 20:05:11 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
112
113 * pass1.c (pass1): Set the EXT2_SF_SKIP_MISSING_ITABLE flag so
114 that we can recover from missing inode tables.
115
116 * dirinfo.c (get_dir_info): If there are no directories in the
117 dir_info abstraction, don't core dump (because dir_info is
118 NULL).
119
120 * e2fsck.c (main): Don't try using the backup superblocks if there
121 aren't any.
122 (check_super_block): If there are illegal inode table or
123 bitmaps, set the filesystem as being in error.
124
125Wed Jan 15 11:32:01 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
126
127 * pass2.c (check_dir_block): Added check to make sure that rec_len
128 is a a multiple of 4 (so that the directory entries are
129 4-byte aligned).
130
131Sat Dec 28 12:16:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
132
133 * Makefile.in (uninstall): Uninstall all programs in the PROGS
134 line.
135 (PROGS): Don't build and install the extend program by
136 default.
137
138
139Sat Dec 7 16:41:02 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
140
141 * pass1.c (process_inodes): Make sure the stashed_ino variable is
142 saved and restored as well.
143 (pass1): For fast sym links, skip the check_blocks
144 processing step altogether.
145
146Mon Dec 2 09:28:24 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
147
148 * problem.c, message.c: New files, to completely refurbish how
149 filesystem problems are reported to the user. The
150 diagnostic messages are now encoded out in an easily
151 customizable, extensible format. The messages printed out
152 in preen mode are all on one line, and contain the device
153 name.
154
155Fri Nov 29 20:26:08 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
156
157 * swapfs.c (swap_inodes): When swapping a filesystem, ignore
158 deleted files.
159
160 * pass1.c (pass1): Ignore missing inode table errors during the
161 scan, and just skip past those inodes.
162
163 * pass3.c (check_root): Remove root_ino argument, and assume that
164 the root inode must be EXT2_ROOT_INO. Move responsibility
165 of setting the parent of the root inode in the directory
166 inode structure to pass2().
167
168 * pass2.c (check_dir_block): Don't allow links to the root
169 directory.
170
171 * dirinfo.c (add_dir_info): Remove last argument to add_dir_info,
172 since the inode is no longer used.
173
174Tue Oct 15 00:06:49 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
175
176 * e2fsck.c (main): If the superblock magic number is wrong, or the
177 block group fails a sanity check, then automatically
178 restart trying to use the backup superblocks.
179
180 * pass1.c (mark_table_blocks): Make the inode tables ahead of
181 everything else; in the case where a bitmap block overlays
182 the inode table, the inode table should take precedence.
183
184 * pass2.c (maybe_clear_entry): Make the deleted/unused error
185 message fit on one line, since the error can happen during
186 a preen pass. (We eventually need to revamp the whole
187 e2fsck error reporting and prompting system, but that's a
188 job for another day.)
189
190Mon Oct 14 22:29:49 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
191
192 * e2fsck.c (main): Read in the list badblocks into fs->badblocks
193 for the benefit of the inode scan functions.
194
195 * pass1.c (pass1): If ext2fs_get_next_inode() returns an error
196 indicating that an inode is in a bad block, mark that
197 inode as being used, as well as in the inode "bb" map.
198
199 * pass2.c (maybe_clear_entry): New function which generalizes the
200 error cases when a directory entry needs to be cleared.
201 (check_dir_block): If an inode is in the "bb" map, offer
202 to clear the directory entry, since the inode is in a bad
203 block.
204
205 * pass4.c (pass4): If an inode is marked as used, but is is marked
206 in the "bb" map, don't process it as a disconnected inode.
207
208Tue Oct 8 02:02:03 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
209
210 * Release of E2fsprogs version 1.06
211
Theodore Ts'o5c576471997-04-29 15:29:49 +0000212Mon Oct 7 00:45:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
213
214 * e2fsck.c (main): Print out the version number of the shared
215 library when using the -V option.
216
217 * swapfs.c (swap_filesys): Change EXT2_SWAP to EXT2_FLAG_SWAP for
218 consistency's sake.
219
220 * e2fsck.c (main): By setting EXT2_FLAG_MASTER_SB_ONLY, only write
221 out the backup superblocks when we know we have a valid
222 filesystem.
223
224Tue Oct 1 22:00:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
225
226 * util.c (preenhalt): Make it explicit on preenhalt that running
227 e2fsck manually means without the -a or -p flag.
228
229Fri Sep 27 14:41:08 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
230
231 * pass1.c (pass1): Add support for the EXT2_BOOT_LOADER inode.
232 (Linux/FT actually sets the mode bits, so we have to
233 handle it specially.)
234
235 * e2fsck.c (check_if_skip): Print a message if the filesystem is
236 just dirty, so that the user knows that it's about to be
237 checked (since this will take a while).
238
239Mon Sep 16 17:00:01 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
240
241 * pass4.c: If a disconnected inode is zero-length, prompt to
242 delete it instead of connecting it to lost+found.
243
244Thu Sep 12 15:23:07 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
245
246 * Release of E2fsprogs version 1.05
247
Theodore Ts'o1e3472c1997-04-29 14:53:37 +0000248Fri Aug 30 20:24:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
249
250 * pass4.c (pass4): If the user refuses to connect an unattached
251 inode to lost+found, don't try to set i_links_count. This
252 is bad, since if the user says yes, the inode will be
253 marked as unused, which is not necessarily the right
254 thing, especially since the rest of the cleanup doesn't
255 happen here.
256
257 * pass2.c (deallocate_inode): Set inode_link_info[ino] when
258 dellocating an inode. (Not strictly necessary, but...)
259
260 * pass4.c (pass4): Add "bonehead" explanation to the "programming
261 error" message.
262
263Tue Aug 27 11:26:32 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
264
265 * e2fsck.c (PRS,main): Added new options -s and -S. -s will
266 byte-swap the filesystem so that it is normalized. -S
267 will byte-swap the filesystem regardless of its current
268 byte-order.
269
270 * swapfs.c: New file, which will byte-swap a filesystem.
271
272Tue Aug 20 09:41:37 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
273
274 * pass1.c (pass1): Change handling on files with non-zero dtime
275 and non-zero i_link_count; before we treated them as
276 deleted file per botched ext2 0.3c kernel behavior. We
277 now clear dtime instead.
278
279Mon Aug 19 23:33:57 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
280
281 * e2fsck.c (main): If e2fsck sets the clean bit, even if
282 nothing else is changed, make sure FSCK_NONDESTRUCT is
283 set (since after all having the filesystem set to
284 invalid is an error. :-)
285
286Fri Aug 9 10:25:13 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
287
288 * pass1.c (process_block): Make sure that meta data doesn't get
289 accidentally set in the dir_blocks array (which could
290 happen in some error condtions).
291
292 * pass1.c (pass1):
293 * pass2.c (process_bad_inode): Check for fragments in a
294 OS-independent fashion.
295
296Thu Aug 8 15:20:54 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
297
298 * e2fsck.c (check_if_skip): Close the filesystem when skipping the
299 cleanup for the filesystem.
300
301Mon Jul 22 22:03:28 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
302
303 * e2fsck.c: Improve corrupt_msg, so that it's less confusing.
304
Theodore Ts'o62c06f71997-04-29 14:34:47 +0000305Thu May 16 11:12:30 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
306
307 * Release of E2fsprogs version 1.04
308
309Wed May 15 21:41:29 1996 Theodore Ts'o <tytso@rsts-11.mit.edu>
310
311 * e2fsck.c (relocate_hint): Issue a hint that the user may wish to
312 try "e2fsck -b 8193" before allowing e2fsck to relocate
313 inode table blocks.
314
315 * Makefile.in (e2fsck): Build e2fsck statically or dynamically
316 depending on the option to configure. Added targets for
317 e2fsck.static and e2fsck.shared for people who want to
318 build a static or shared variant manually.
319
Theodore Ts'o7f88b041997-04-26 14:48:50 +0000320Wed Mar 27 00:33:40 1996 <tytso@rsts-11.mit.edu>
321
322 * Release of E2fsprogs version 1.03
323
324Tue Mar 26 12:03:42 1996 <tytso@rsts-11.mit.edu>
325
326 * e2fsck.c (show_stats): Don't use floating point to display
327 percentage of non-contiguous files, as different libc
328 handle result truncation differently, and this causes the
329 test suite to bomb out depending on which libc you are
330 using.
331
332 * util.c (allocate_memory): Fix error message to omit extraneous
333 %%s.
334
335Tue Mar 5 03:50:40 1996 <tytso@rsts-11.mit.edu>
336
337 * pass4.c (pass4):
338 * pass2.c (check_dir_block):
339 * pass1.c (pass1): Add support for dynamic first inode revision.
340
341Wed Feb 14 16:27:30 1996 <tytso@rsts-11.mit.edu>
342
343 * pass3.c (check_root): Fix spelling typo
344
345Mon Feb 5 22:30:30 1996 <tytso@rsts-11.mit.edu>
346
347 * e2fsck.c (check_super_block): If the superblock fails certain
348 internal consistency checks, exit with a fatal error after
349 printing the "superblock is corrupt message".
350
Theodore Ts'o74becf31997-04-26 14:37:06 +0000351Wed Jan 31 11:06:08 1996 <tytso@rsts-11.mit.edu>
352
353 * Release of E2fsprogs version 1.02
354
355Wed Dec 15 21:24:26 1996 <tytso@rsts-11.mit.edu>
356
357 * pass1.c (process_block): Check to see if a file is "fragmented".
358 i.e., non-contiguous. Note that any file which is larger
359 than the block group is guaranteed to be non-contiguous.
360 We may want to use a different hueristic for deciding
361 whether or not a file is "fragmented".
362
363 * e2fsck.c (show_stats): Print statistics of how many
364 non-contiguous files are on the system.
365
366Fri Dec 15 19:19:47 1995 <tytso@rsts-11.mit.edu>
367
368 * badblocks.c (read_bad_blocks_file, test_disk): Fold
369 functionality of test_disk() (which runs badblocks) into
370 read_bad_blocks_file(); test_disk() now calls
371 read_bad_blocks_file() with a NULL bad_blocks_file
372 argument.
373
374Mon Nov 20 18:30:10 1995 <tytso@rsts-11.mit.edu>
375
376 * e2fsck.c (check_mount): Use #if defined(__linux__) instead of
377 #if defined(linux). The latter won't work if we're
378 compiling -ansi.
379
Theodore Ts'o297f47a1997-04-26 14:25:20 +0000380Mon Oct 30 20:31:17 1995 <tytso@rsts-11.mit.edu>
381
382 * e2fsck.c (check_mount): For Linux systems, the check to see if
383 the root is mounted read-only has to be done for all
384 filesystems, not just for the root filesystem, due to the
385 way that some /etc/rc scripts are set up.
386
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000387Thu Oct 26 12:05:30 1995 <tytso@rsts-11.mit.edu>
388
389 * Makefile.in (install): Strip programs when they are installed.
390 (e2fsck): Build e2fsck statically.
391
392Wed Oct 25 21:18:16 1995 <tytso@rsts-11.mit.edu>
393
394 * util.c (preenhalt): Preenhalt now takes an argument, which is an
395 ext2fs_filsys; this allows it to set the EXT2_ERROR_FS
396 flag in the superblock in cases where preenhalt is called.
397 All calls to preenhalt() were changed to either
398 preenhalt(fs) or preenhalt(NULL) in a few cases where the
399 fs pointer was not available. (Most notable, for block
400 read/write errors.)
401
402Mon Sep 4 21:41:03 1995 Remy Card <card@bbj>
403
404 * ehandler.c:
405 util.c: Include <sys/time.h> before <sys/resource.h>. BSD needs it.
406
407Mon Sep 4 10:14:49 1995 <tytso@rsts-11.mit.edu>
408
409 * e2fsck.c (show_stats): Show statistics about how many inodes
410 have indirect, doubly indirect, and triply indirect
411 blocks. Allow up to 8 digits for statistics, instead of
412 merely 6, so things look pretty for large filesystems.
413
414 * pass1.c (pass1): Keep statistics about indirect, doubly
415 indirect, and triply indirect blocks.
416
417 * pass1.c (unwind_pass1): Clear the above statistics when unwinding
418 pass 1.
419
420Fri Aug 18 15:17:10 1995 Theodore Y. Ts'o <tytso@dcl>
421
422 * util.c, ehandler.c: Move #include of <sys/resource.h> after
423 #include of "e2fsck.h", since sys/resource.h may depend on
424 sys/time.h, which is #included in e2fsck.h.
425
426Thu Aug 17 22:33:37 1995 <tytso@rsts-11.mit.edu>
427
428 * e2fsck.c (check_mount): Use the new ext2fs_check_if_mounted()
429 function to determine if the device is mounted.
430
431 * e2fsck.c (main): Add better error messages if ext2fs_open()
432 fails.
433
434Wed Aug 16 16:25:02 1995 <tytso@rsts-11.mit.edu>
435
436 * pass1.c (check_blocks): If we're clearing a directory, clear
437 pb.is_dir so we don't do the following check of making
438 sure the directory size matches; this is pointless, since
439 we've already cleared the inode.
440
441Fri Aug 11 09:08:54 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
442
443 * pass1.c (bad_primary_block): New function, called by
444 process_bad_block, which explains the facts of life to the
445 user when a block in the primary superblock or primary
446 group descriptors is bad.
447
448 * pass2.c (check_dot): Handle the case where the first directory
449 entry is used, but not ".".
450
451 * pass2.c (check_dotdot): Handle the case where the second directory
452 entry is used, but is not "..".
453
454Thu Aug 10 10:05:10 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
455
456 * e2fsck.c (check_super_block): Get the size of the physical
457 device and if it is smaller than the reported size of the
458 filesystem, report an error.
459
460Sat Aug 12 03:39:18 1995 Remy Card <card@bbj>
461
462 * e2fsck.c (check_if_skip): Print the number of allocated files and
463 blocks on clean filesystems.
464
465Fri Aug 11 14:15:36 1995 Remy Card <card@bbj>
466
467 * e2fsck.8: Updated date and version number.
468
469Thu Aug 10 14:26:01 1995 Remy Card <card@bbj>
470
471 * pass1.c (check_blocks): Check that directory size matches *exactly*
472 the count of allocated blocks.
473
474Wed Aug 9 21:21:24 1995 Theodore Y. Ts'o <tytso@dcl>
475
476 * pass1b.c (pass1d): Free the shared[] array when we're done with
477 it to avoid a memory leak.
478
479 * pass1.c (unwind_pass1): Use ext2fs_free_block_bitmap to free the
480 block_dup_map.
481
482 * pass2.c (process_bad_inode): When clearing the inode, make sure
483 the pathname is freed, to prevent a memory leak.
484
485 * pass5.c (check_inode_bitmaps): Free free_array and dir_array
486 when we're finished with them.
487 (check_block_bitmaps): Free free_array when we're finished
488 with them.
489
490 * Makefile.in (e2fsck, flushb): Use $(LD) instead of $(CC) when
491 linking the executable.
492
493 * pass2.c (process_bad_inode): Even on OS's that don't support the
494 fragment fields, make sure the Linux equivalent fields are
495 set to zero. If an OS wants to reuse these fields, which
496 is probably a bad idea (although we may get desperate in
497 the future) this code will have to be changed.
498
499 * pass1.c (dir_block_cmp): If the block numbers are equal, compare
500 on the inode field, and then blockcnt field. This is just
501 to keep the ordering of dir_blocks the same on all
502 platforms when there are more than on missing directory
503 blocks, which are indicated directories with holes, which
504 are indicated with the block number being set to zero.
505
506Sun Aug 6 15:40:58 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
507
508 * pass1.c (check_blocks, process_block): check_blocks() modified
509 to call the ext2fs_block_iterate() with BLOCK_FLAG_HOLE if
510 the inode is a directory. process_block() now checks to
511 see if a directory has a "hole", or missing block. If so,
512 this fact is recorded in the directory block list so that
513 the problem can be resolved in pass #2.
514
515 * pass2.c (allocate_dir_block): Added allocate_dir_block() to
516 allocate new blocks for directories with "holes". Called
517 out of check_dir_block if a block in the directory block
518 list is zero.
519
520 * pass3.c (get_lost_and_found): Move location of free(block) to
521 prevent possible memory leak.
522
523Sat Aug 5 12:42:22 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
524
525 * pass2.c (check_dir_block): Use a automatic, fixed-saize array
526 instead of alloca() --- alloca is not portable! Check to
527 make sure the filename is not longer than EXT2_NAME_LEN,
528 and offer to fix it by truncating it, since it should
529 never happen.
530
531 * e2fsck.c (PRS): Use malloc() instead of alloca() --- alloca() is
532 not portable!! In any case putenv() in some systems must
533 take a static character array or malloc()'ed memory;
534 passing memory allocated using alloca() to putenv() is not
535 advisable.
536
537 * pass2.c (check_dot, check_dotdot): Use malloc() instead of
538 alloca() --- alloca() is not portable!!!
539
540Tue Jul 18 20:04:02 1995 <tytso@rsx-11.mit.edu>
541
542 * pass1b.c (pass1c):
543 * pass3.c (check_root, get_lost_and_found):
544 * pass2.c (check_dir_block): Use ext2fs_{read,write}_dir_block
545 to read/write the directory block.
546
547Mon Jul 17 04:00:56 1995 <tytso@rsx-11.mit.edu>
548
549 * util.c (ask_yn): Apply patch supplied by Peter A. Zaitcev to
550 make sure VMIN and VTIME are set correct.
551
552Fri Jul 14 19:26:29 1995 <tytso@rsx-11.mit.edu>
553
554 * pass1.c (mark_block_used): Change to be an inline function.
555 Assume that the block validity checks are already done,
556 and use the fast variant of the bitmap functions.
557
558Thu Jul 13 08:10:55 1995 <tytso@rsx-11.mit.edu>
559
560 * pass5.c (check_block_bitmaps, check_inode_bitmaps): Check the
561 bounds of the bitmaps in advance, and then use the fast
562 variant of e2fs_test_{block,inode}_bitmap.
563
564 * pass1.c (mark_block_used): Use ext2_fast_mark_block_bitmap since
565 the bounds checking has already been done earlier.
566
567Wed Jul 12 02:22:46 1995 <tytso@rsx-11.mit.edu>
568
569 * pass1.c (pass1): Allocate and free the block_illegal_map, which
570 is used for shortcut processing in process_block.
571 (mark_table_blocks): Initialize block_illegal_map with the
572 filesystem blocks.
573 (describe_illegal_block): New helper function that
574 describes why a block is illegal.
575 (process_block): Use block_illegal_map as a shortcut
576 to determine whether a block is bad. Use
577 describe_illegal_block to print out why the block is illegal.
578
579Mon Jun 12 19:11:06 1995 Theodore Y. Ts'o (tytso@dcl)
580
581 * flushb.c: Don't include <linux/fs.h> if it doesn't exist.
582
583 * scantest.c: Don't include <linux/fs.h>, <getopt.h>, or
584 <mntent.h> if they don't exist. (Mostly so that "make
585 depend" works.)
586
587 * pass1.c, pass1b.c, pass3.c, badblocks.c: Include <errno.h> (if
588 it exists).
589
590 * e2fsck.c, scantest.c: Don't include <getopt.h> if it doesn't
591 exist.
592
593Mon Jun 12 08:37:49 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
594
595 * pass2.c (process_bad_inode, check_for_zero_long,
596 check_for_zero_char): Change long to u32, and char to u8.
597
598Sun Jun 11 15:05:57 1995 Theodore Y. Ts'o <tytso@lurch.mit.edu>
599
600 * util.c (inode_has_valid_blocks):
601 * pass2.c (process_bad_inode):
602 * pass1.c (pass1, check_blocks, pass1_check_directory): Use
603 LINUX_S_IS* instead of S_IS*.
604
605 * e2fsck.h: Don't #include <sys/stat.h>
606
607 * flushb.c (main): Add #ifdef BLKFLSBUF around ioctl. (Although
608 this program is pretty much useless if BLKFLSBUF isn't
609 supported.)
610
611 * e2fsck.c, badblocks.c: Add #include <errno.h>, since errno is
612 used.
613
614Thu Jun 8 12:31:19 1995 Miles Bader <miles@churchy.gnu.ai.mit.edu>
615
616 * pass2.c (check_dot, check_dotdot, check_dir_block): Use alloca
617 to allocate space for file names instead of using fixed size buffers.
618 (process_bad_inode): Only check inode frag fields if
619 HAVE_EXT2_FRAGS is defined (by configure).
620 * pass1.c (pass1): Only check the inode frag fields if
621 HAVE_EXT2_FRAGS is defined (by configure).
622
623 * e2fsck.c (check_mount): Only check for a mounted filesystem if
624 HAVE_MNTENT_H is defined (by configure).
625 (PRS): Use alloca to allocate the new path string, instead of
626 having a fixed size buffer (which was the wrong size anyway).
627 (PRS): Only support the -F (flush) option if the BLKFLSBUF ioctl
628 is defined.
629
630 * e2fsck.h: Only include <linux/fs.h> if HAVE_LINUX_FS_H is
631 defined (by configure).
632
633 * Makefile.in: Rewritten to conform to GNU coding standards and
634 support separate compilation directories.
635
636Thu Apr 6 15:04:36 1995 Remy Card <card@bbj.ibp.fr>
637
638 * pass1.c (pass1): Test the mode in reserved inodes (must be zero).
639
Theodore Ts'of3db3561997-04-26 13:34:30 +0000640Sat Mar 11 13:12:16 1995 Theodore Y. Ts'o <tytso@localhost>
641
642 * pass1.c (unwind_pass1): Clear the file type statistics counter
643 when pass 1 needs to be restarted from scratch.
644
645 * pass1.c (handle_fs_bad_blocks): Fix bug where bitmap blocks were
646 being reallocated to blocks in the next block group,
647 instead of the current block grup.
648
649 * pass1.c (pass1, check_blocks): Set inode_link_info[ino] whenever
650 inode.i_links_count is set.
651
652Tue Feb 14 01:38:04 1995 Theodore Y. Ts'o (tytso@rt-11)
653
654 * pass1.c (process_block): Add checks for if the block is
655 trepassing on a superblock or group descriptor table.
656
657Sat Dec 31 00:52:11 1994 <tytso@rsx-11.mit.edu>
658
659 * main.c (corrupt_msg): Extend the message which is printed out
660 when the superblock is corrupt, to include the suggestion
661 of using the -b option to specify an alternate superblock.
662
663Thu Nov 24 09:29:58 1994 Theodore Y. Ts'o (tytso@rt-11)
664
665 * badblocks.c (read_bad_blocks_file): If we are adding or
666 replacing bad blocks in the bad blocks inode, sanity check
667 the bad block inode first, and clear out any illegal blocks.
668
669 * pass2.c (check_name): Don't bomb out if the attempt to get the
670 pathname of the containing directory returns an error; the
671 directory may be too badly damaged to expect that
672 ext2fs_get_pathname will always succeed. Use "???" if the
673 pathname can't be obtained (it's only for a printf to the
674 user anyway).
675
676 The name of the containing directory and the bad filename
677 were incorrectly interchanged in the user message. Fixed.
678
679 * pass2.c (check_name, check_dir_block): Use a common static
680 string for the unknown pathname.
681
682Mon Nov 7 22:30:54 1994 Remy Card <card@bbj>
683
684 * Fixed lots of printf formats to make sure that block and inode
685 numbers are printed as unsigned integers.
686
687Mon Oct 24 14:10:46 1994 (tytso@rsx-11)
688
689 * pass5.c (check_block_end): Fix calculation of how the last block
690 in the block bitmap should be calculated.
691
692Wed Sep 7 10:01:13 1994 (tytso@rsx-11)
693
694 * pass1b.c (pass1_dupblocks): Fix declaration of dup_inode_map to
695 be an ext2fs_inode_bitmap, and free it properly.
696
697 * e2fsck.h
698 * e2fsck.c (main): Folded in Remy Card's changes to add a revision
699 level to the superblock.
700
701Wed Aug 17 22:00:20 1994 Remy Card (card@bbj)
702
703 * e2fsck.c (usage): Fixed bogus usage message.
704
705Wed Aug 17 11:21:45 1994 Theodore Y. Ts'o (tytso@rt-11)
706
707 * pass1.c (process_bad_block): Fixed bug so that blocks in the
708 backup superblocks and group descriptors are handled gracefully.
709