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