Whamcloud - gitweb
ChangeLog, debugfs.c:
[tools/e2fsprogs.git] / e2fsck / ChangeLog
1 2000-02-02  Theodore Ts'o  <tytso@valinux.com>
2
3         * e2fsck.h, flushb.c, scantest.c: Remove uneeded include of
4                 linux/fs.h 
5
6 2000-01-18  Theodore Ts'o  <tytso@valinux.com>
7
8         * Makefile.in: Since LIBUUID can sometimes include "-lsocket"
9                 we need a separate DEPLIBUUID that can be used in
10                 Makefile's dependency rules.
11
12 1999-11-23    <tytso@valinux.com>
13
14         * e2fsck.8.in: Update language about where to find a backup
15                 superblock.
16
17 1999-11-19    <tytso@valinux.com>
18
19         * pass1.c (process_inodes): Add shortcut handling; if
20                 process_inodes_count is zero, return right away, to avoid
21                 calling qsort with a non-positive count.
22
23         * message.c (safe_print): Fix to properly display ^A, ^B, etc. and
24                 to print Delete as ^?
25
26         * Makefile.in (distclean): Remove TAGS and Makefile.in.old from
27                 the source directory.
28
29 1999-11-10    <tytso@valinux.com>
30
31         * Release of E2fsprogs 1.18
32
33 1999-11-10    <tytso@valinux.com>
34
35         * problem.c (fix_problem): Support a new flag, PR_PREEN_NO which
36                 means the answer is assumed to be no in preen mode.  This
37                 is now used in the PR_1_SET_IMMUTABLE code, so that in
38                 preen mode we ignore these inodes and just print a warning
39                 message. 
40
41 1999-11-09    <tytso@valinux.com>
42
43         * pass1.c (e2fsck_pass1): If the filesystem does not support
44                 imagic inodes, if an inode has the imagic flag set, offer
45                 to clear the imagic flag.  If a valid device/fifo/socket
46                 has the immutable flag set, call the new helper function
47                 check_immutable() to offerto clear the immutable flag.
48
49         * pass2.c (check_filetype): Use the new ext2_file_type() helper
50                 function instead of calculating the file_type information
51                 manually.
52
53         * pass3.c (e2fsck_reconnect_file): When adding a link to
54                 lost+found, calculate the filetype information so that
55                 ext2fs_link() can use the information if applicable.
56                 (get_lost_and_found): Create the /lost+found directory
57                 with the correct filetype information if applicable.
58
59         * util.c (ext2_file_type), e2fsck.h: New function which returns
60                 the directory entry file type information given the
61                 inode's mode bits.
62
63         * problem.c, problem.h: Added new problem codes PR_1_SET_IMAGIC
64                 and PR_1_SET_IMMUTABLE.
65
66 1999-11-07    <tytso@valinux.com>
67
68         * pass4.c (e2fsck_pass4): Clear inode_imagic_map after freeing it,
69                 to prevent it from getting freed twice.
70
71 1999-11-06    <tytso@valinux.com>
72
73         * unix.c (main): Close the filesystem before freeing the context,
74                 so that in the event of a free()-related segmentation
75                 violation, the filesystem is properly closed and written
76                 out.
77
78 1999-10-27    <tytso@valinux.com>
79
80         * e2fsck.c (e2fsck_reset_context): When freeing
81                 ctx->inode_reg_map, we weren't zero'ing
82                 ctx->inode_reg_map, which could cause a segfault later on
83                 in the e2fsck run.
84
85 1999-10-26    <tytso@valinux.com>
86
87         * problem.h (PR_2_SPLIT_DOT): Fix excess zero in problem code (now
88                 matches the standard convention).
89
90 1999-10-26    <tytso@valinux.com>
91
92         * Release of E2fsprogs 1.17
93
94 1999-10-26    <tytso@valinux.com>
95
96         * message.c (safe_print): Make safe_print take an char instead of
97                 an unsigned char to fix gcc warnings.
98
99 1999-10-25    <tytso@valinux.com>
100
101         * util.c: For NT portability, don't redefine getchar(), since
102                 stdio defines that.  Instead we introduce a new
103                 abstract macro read_a_char() which is #defined to the
104                 right function as necessary.
105
106         * problem.c, problem.h (PR_2_NULL_NAME): Add new problem code.
107
108         * pass2.c (check_dir_block): Require that the length of the
109                 directory entry be at least 12 bytes.  Check to see if the
110                 filename is zero-length, and flag that as an error.
111
112 1999-10-22    <tytso@valinux.com>
113
114         * Release of E2fsprogs 1.16
115
116 1999-10-22    <tytso@valinux.com>
117
118         * pass2.c (check_filetype): If the filetype filesystem feature is
119                 not set, and a directory entry has a dirent feature, offer
120                 to clear it (since 2.0 kernels will do complain will
121                 interpret it as a very large name length field).
122
123         * problem.c (PR_2_CLEAR_FILETYPE): Add new problem code.
124
125 1999-10-21    <tytso@valinux.com>
126
127         * e2fsck.8.in: Update man page to use a more standard format (bold
128                 option flags and italicized variables), as suggested by
129                 Andreas Dilger (adilger@enel.ucalgary.ca)
130
131         * pass4.c (e2fsck_pass4): If an inode is set in the
132                 inode_imagic_map bitmap, don't check to see if it is
133                 disconnected from the inode tree (because it almost
134                 certainly will be).  Free inode_imagic_map at the end of
135                 pass 4.
136
137         * pass2.c (check_dir_block, check_filetype): If the FILETYPE
138                 feature is set, check the directory entry's filetype
139                 information field, and fix/set it if necessary.
140                 (e2fsck_pass2): Free the inode_reg_map bitmap at the end
141                 of pass 2.
142
143         * pass1.c (e2fsck_pass1, alloc_imagic_map): Allocate and fill in
144                 information for inode_reg_map and inode_imagic_map, which
145                 indicates which inodes are regular files and AFS inodes,
146                 respectively.
147                 Since only the master superblock is written during a
148                 restart, force that superblock to be used after a restart;
149                 otherwise changes to the block group descriptors end up
150                 getting ignored.
151
152         * problem.c, problemP.h: If e2fsck is run -n, make def_yn variable
153                 be 0 for "no".  Add support for a new flag, PR_NO_NOMSG,
154                 which supresses the problem message if e2fsck is run with
155                 the -n option.
156
157         * problem.c, problem.h (PR_2_SET_FILETYPE, PR_2_BAD_FILETYPE): Add
158                 new problem codes.
159
160         * message.c (expand_dirent_expression): Add support for %dt which
161                 prints the dirent type information.
162
163         * e2fsck.c (e2fsck_reset_context): Free new bitmaps (inode_reg_map
164                 and inode_imagic_map).
165
166         * e2fsck.h (e2fsck_t): Add new inode_reg_map and inode_magic_map
167                 to the context structure.
168         
169 1999-09-24    <tytso@valinux.com>
170
171         * unix.c (PRS), util.c (ask_yn): Add #ifdef's to make
172                 e2fsprogs easier to port to non-Unix platforms.
173
174 1999-09-07    <tytso@valinux.com>
175
176         * pass3.c (adjust_inode_count): Fix bug where we didn't keep the
177                 internal and external inode counts in sync when we
178                 decremented an inode whose link count was already zero.
179                 Now we skip incrementing or decrementing both link counts
180                 if we would cause an overflow condition.
181                 (expand_dir, expand_dir_proc): Change where we update the
182                 inode block count and size files so that the block count
183                 field is updated correctly when we create an indirect block.
184
185 1999-08-05    <tytso@valinux.com>
186
187         * super.c (check_super_block): Check to see whether the
188                 inodes_per_group value in the superblock is insanely too
189                 high.
190
191 1999-08-02    <tytso@valinux.com>
192
193         * pass1b.c (clone_file_block): Don't clear the dup_map flag if
194                 the block also shares data with the fs metadata when
195                 the count drops to 1, since the block should still be
196                 cloned, as fs metadata isn't included in the count.
197
198 1999-07-18  Theodore Ts'o  <tytso@valinux.com>
199
200         * Release of E2fsprogs 1.15
201
202 1999-07-19    <tytso@valinux.com>
203
204         * unix.c (usage): Add minimalist emergency help to the usage
205                 message. 
206
207 1999-07-18    <tytso@valinux.com>
208
209         * unix.c: Add support for calculating a progress bar if the -C0
210                 option is given.   The function e2fsck_clear_progbar()
211                 clears the progress bar and must be called before any
212                 message is issued.  SIGUSR1 will enable the progress bar,
213                 and SIGUSR2 will disable the progress bar.  This is used
214                 by fsck to handle parallel filesystem checks.  Also, set
215                 the device_name from the filesystem label if it is
216                 available. 
217
218         * e2fsck.h: Add new flags E2F_FLAG_PROG_BAR and
219                 E2F_FLAG_PROG_SUPRESS.  Add new field in the e2fsck
220                 structure which contains the last tenth of a percent
221                 printed for the user.
222
223         * message.c (print_e2fsck_message): Add call to
224                 e2fsck_clear_progbar(). 
225
226         * pass1.c (e2fsck_pass1):
227         * pass2.c (e2fsck_pass2):
228         * pass3.c (e2fsck_pass3):
229         * pass4.c (e2fsck_pass4):
230         * pass5.c (e2fsck_pass5): Add call to e2fsck_clear_progbar when
231                 printing the resource tracking information.
232
233         * pass5.c (check_block_bitmaps, check_inode_bitmaps): If there is
234                 an error in the bitmaps, suppress printing the progress
235                 bar using the suppression flag for the remainder of the
236                 check, in order to clean up the display.
237
238 1999-06-30    <tytso@valinux.com>
239
240         * unix.c (check_mount): Clean up the abort message displayed when
241                 the filesystem is mounted and either stdout or stdin isn't
242                 a tty.
243
244 1999-06-25    <tytso@valinux.com>
245
246         * e2fsck.h:
247         * pass1.c (pass1_get_blocks, pass1_read_inode, pass1_write_inode, 
248                 pass1_check_directory, e2fsck_use_inode_shortcuts): Make
249                 pass1_* be private static functions, and create new
250                 function e2fsck_use_inode_shortcuts which sets and clears
251                 the inode shortcut functions in the fs structure.
252
253         * e2fsck.h:     
254         * pass2.c (e2fsck_process_bad_inode): Make process_bad_inode() an
255                 exported function.
256
257         * pass4.c (e2fsck_pass4): Call e2fsck_process_bad_inode to check
258                 if a disconnected inode has any problems before
259                 connecting it to /lost+found.  Bug and suggested fix by 
260                 Pavel Machek <pavel@bug.ucw.cz>
261
262 1999-06-21    <tytso@valinux.com>
263
264         * unix.c (main): Add missing space in the disk write-protected
265                 message. 
266
267 1999-05-22    <tytso@rsts-11.mit.edu>
268
269         * problem.c, problem.h (PR_0_INODE_COUNT_WRONG): Add new problem
270                 code. 
271         
272         * super.c (check_super_block): Add check to make sure the total
273                 number of inodes is sane, since this can be calculated
274                 from the number of groups times the number of inodes per
275                 group.   Offer to correct it if it is incorrect.
276
277 1999-03-19    <tytso@rsts-11.mit.edu>
278
279         * pass5.c (check_block_end): Fix fencepost condition where when
280                 clearing the block padding we were missing the last position
281                 in the bitmap.
282
283 1999-05-17    <tytso@rsts-11.mit.edu>
284
285         * unix.c (reserve_stdio_fds): Add safety check in case
286                 reserve_stdio_fds couldn't open /dev/null.
287
288 1999-03-14  Theodore Ts'o  <tytso@rsts-11.mit.edu>
289
290         * util.c (print_resource_track): Use mallinfo if present to get
291                 more accurate malloc statistics.
292
293         * pass3.c (get_lost_and_found): Check to see if lost+found is a
294                 plain file; if so, offer to unlink it.
295
296         * problem.c, problem.h (PR_3_LPF_NOTDIR): Add new problem code.
297
298 1999-03-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
299
300         * problem.c: Fix problem message for PR_1_BAD_GROUP_DESCRIPTORS so
301                 that the block group number is printed.  Add new prompt,
302                 PROMPT_UNLINK.
303
304 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
305
306         * Release of E2fsprogs 1.14
307
308 1999-01-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
309
310         * message.c (safe_print): New function which prints strings,
311                 converting non-printable characters using the '^' and
312                 M-notation.  This function is now used to print directory
313                 name entries and pathnames.
314
315 Mon Jan  4 02:28:59 1999  Theodore Y. Ts'o  <tytso@mit.edu>
316
317         * unix.c (main): Reset the context before calling ext2fs_close(),
318                 to avoid referencing already freed memory.
319
320 1998-12-15  Theodore Ts'o  <tytso@rsts-11.mit.edu>
321
322         * Release of E2fsprogs 1.13
323
324 1998-12-03  Theodore Ts'o  <tytso@rsts-11.mit.edu>
325
326         * Makefile.in: Updated dependencies.
327
328 1998-11-27  Theodore Ts'o  <tytso@rsts-11.mit.edu>
329
330         * pass3.c (get_lost_and_found): If the filesystem is not opened
331                 read-only, then force /lost+found to be created if it is
332                 not present.
333
334         * problem.c: Allow PR_3_NO_LF_DIR to be handled during a preen
335                 operation. 
336
337 1998-10-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
338
339         * unix.c (main): Move ext2fs_close() after e2fsck_free_context()
340                 since e2fsck_free_context may reference data in ctx->fs.
341
342         * e2fsck.c (e2fsck_reset_context): Make sure ctx->fs is non-NULL
343                 before checking ctx->fs->dblist.
344
345 1998-10-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
346
347         * pass1.c (e2fsck_pass1): Use the device check subroutine on
348                 FIFO's and Socket's, so that we catch bogus immutable inodes.
349
350         * pass2.c (process_bad_inode): Process bad socket and fifo's.
351
352         * problem.h, problem.c: Define new problem codes PR_2_BAD_FIFO and
353                 PR_2_BAD_SOCKET.
354
355 1998-09-02  Theodore Ts'o  <tytso@rsts-11.mit.edu>
356
357         * problem.c: Add PR_3_NO_DIRINFO error code.
358
359         * super.c (check_super_value): Rename min and max to min_val and
360                 max_val to avoid possible cpp macro conflicts.
361
362         * pass4.c (e2fsck_pass4): Rename max to maxgroup, to avoid
363                 possible cpp macro conflicts.
364         
365         * pass3.c (e2fsck_pass3): Rename max to maxdirs, to avoid possible
366                 cpp macro conflicts.
367                 (check_directory): Fix logic to avoid possible core dump
368                 in the case of ext2fs_get_dir_info returning NULL.  (By
369                 the time we get here, it should never happen, but...).
370                 Also simply/streamline the control flow of the function.
371
372 1998-08-17  Theodore Ts'o  <tytso@rsts-11.mit.edu>
373
374         * unix.c (check_if_skip): Move the "not cleanly mounted" check
375                 ahead of the maximal mount and too long since checked tests.
376                 (reserve_stdio_fds): Make sure 0,1,2 file descriptors are
377                 open, so that we don't open the filesystem using the same
378                 file descriptor as stdout or stderr.
379
380 1998-08-01  Theodore Ts'o  <tytso@rsts-11.mit.edu>
381
382         * pass2.c (e2fsck_pass2): Fix the progress accounting so that we
383                 get to 100%.
384
385         * pass3.c (e2fsck_pass3): Change progress accounting to be
386                 consistent with the other e2fsck passes.                
387
388         * e2fsck.c (e2fsck_run): At the end of each pass, call the
389                 progress function with the pass number set to zero. 
390
391         * unix.c (e2fsck_update_progress): If the pass number is zero,
392                 ignore the call, since that indicates that we just want to
393                 deallocate any progress structures.
394
395 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
396
397         * Release of E2fsprogs 1.12
398
399 1998-07-09  Theodore Ts'o  <tytso@rsts-11.mit.edu>
400
401         * unix.c (main): Fix typo in checking the incompat feature set; it
402                 should be checked against EXT2_LIB_FEATURE_INCOMPAT_SUPP.
403
404 1998-07-07  Theodore Ts'o  <tytso@rsts-11.mit.edu>
405
406         * badblocks.c (test_disk): Don't clear the existing bad blocks
407                 list when using e2fsck -c, since it may cause blocks with
408                 marginal errors to be dropped from the bad blocks list.
409
410 Mon Jul  6 10:32:11 1998  Theodre Ts'o  <tytso@lurch.mit.edu>
411
412         * pass1.c (e2fsck_pass1): Use ext2fs_sb structure for
413                 compatibility with older kernels.
414
415 1998-06-25  Theodore Ts'o  <tytso@rsts-11.mit.edu>
416
417         * unix.c (e2fsck_update_progress): Remove unused variables.
418
419 1998-06-10  Theodore Ts'o  <tytso@rsts-11.mit.edu>
420
421         * pass1.c, problem.h: Change blkcnt_t to be e2_blkcnt_t to avoid
422                 collision with LFS API.
423
424         * pass1.c (e2fsck_pass1): Fix bug so that ext2_max_sizes is
425                 properly initialized.  
426                 (e2fsck_pass1): Don't allow the the boot loader inode to
427                 be a directory (clear the inode mode field if so).
428
429 1998-05-07  Theodore Ts'o  <tytso@rsts-11.mit.edu>
430
431         * unix.c (PRS): Added new option -C, which causes e2fsck to print
432                 progress updates so that callers can keep track of the
433                 completion progress of e2fsck.  Designed for use by
434                 progress, except for -C 0, which prints a spinning report
435                 which may be useful for some users.
436
437         * pass5.c (e2fsck_pass5): Use a finer-grained progress reporting
438                 scheme (useful for larger filesystems).
439
440         * e2fsck.h: Add progress_fd and progress_pos, for use by the Unix
441                 progress reporting functions.
442
443 1998-04-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
444
445         * pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the
446                 appropriate return type for comparison functions for qsort.
447
448         * e2fsck.h: Add #ifdef protection for unistd.h
449
450         * super.c: Remove header files already included by e2fsck.h
451
452 1998-04-26  Theodore Ts'o  <tytso@rsts-11.mit.edu>
453
454         * dirinfo.c (e2fsck_add_dir_info): Update function to pass the old
455                   size of the memory to be resized to ext2fs_resize_mem().
456
457 1998-03-30  Theodore Ts'o  <tytso@rsts-11.mit.edu>
458
459         * Makefile.in: Change to use new installation directory variables
460                 convention.  Fix uninstall rules to take $(DESTDIR) into
461                 account.  Remove cat8dir from the installdirs target,
462                 since modern man package don't necessarily put the cat
463                 directory in /usr/man/cat?.
464
465 1998-03-29  Theodore Ts'o  <tytso@rsts-11.mit.edu>
466
467         * super.c, e2fsck.h: Always declare e2fsck_get_device_size() as an
468                 extern in e2fsck.h to prevent -Wall warnings.
469
470         * pass4.c (e2fsck_pass4): Remove unused variable 'j'.
471
472 1998-03-28  Theodore Ts'o  <tytso@rsts-11.mit.edu>
473
474         * super.c (check_super_block): Fix broken superblock sanity check
475                 when calculating blocks_per_group if s_log_frag_size !=
476                 s_log_block_size.  Since we don't support fragments, this
477                 isn't a bug deal, but it's good to get it fixed.
478
479 1998-03-23  Theodore Ts'o  <tytso@rsts-11.mit.edu>
480
481         * unix.c: Fix bug in check of feature set, to make sure we can
482                 really fix this filesystem.
483
484         * problem.h: Make blkcount type to be of type blkcnt_t.  Make the
485                 num field be a 64 bit type.  Add the problem code
486                 PR_1_FEATURE_LARGE_FILES
487
488         * problem.c: Add table entry for the problem code
489                 PR_1_FEATURE_LARGE_FILES.
490
491         * pass1.c (e2fsck_pass1): A non-zero i_dir_acl field is only
492                 a problem for directory inodes.  (Since it is also
493                 i_size_high now.)   If there are no large_files, then
494                 clear the LARGE_FLAG feature flag.  If there are
495                 large_files, but the LARGE_FLAG feature flag is not set,
496                 complain and offer to fix it.
497                 (check_blocks): Add support to deal with non-directory
498                 inodes that have i_size_high set (i.e., large_files).
499                 Don't give an error if a directory has preallocated
500                 blocks, to support the DIR_PREALLOC feature.
501                 (process_block, process_bad_block): The blockcnt variable
502                 is a type of blkcnt_t, for conversion to the new
503                 block_iterate2.
504
505         * pass2.c (process_bad_inode): A non-zero i_dir_acl field is only
506                 a problem for directory inodes.  (Since it is also
507                 i_size_high now.)
508
509         * message.c (expand_inode_expression): Print a 64-bits of the
510                 inode size for non-directory inodes.  (Directory inodes
511                 can only use a 32-bit directory acl size, since
512                 i_size_high is shared with i_dir_acl.)  Add sanity check
513                 so that trying to print out the directory acl on a
514                 non-directory inode will print zero.
515                 (expand_percent_expression): %B and %N, which print 
516                 pctx->blkcount and pctx->num, can now be 64 bit
517                 variables.  Print them using the "%lld" format if
518                 EXT2_NO_64_TYPE is not defined.
519
520         * e2fsck.h: Add the large_flagsfield to the e2fsck context.
521
522         * e2fsck.c (e2fsck_reset_context): Clear the large_flags
523                 field.
524
525 Sun Mar  8 23:08:08 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
526
527         * pass3.c (fix_dotdot_proc): 
528         * pass2.c (check_dot, check_dotdot, check_name, check_dir_block): 
529         * message.c (expand_dirent_expression): Mask off the high eight
530                 bits of the directory entry's name_len field, so that it
531                 can be used for other purposes.
532
533 Fri Feb 27 00:01:39 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
534
535         * e2fsck.c (e2fsck_run): Since E2F_FLAG_SIGNAL_MASK doesn't
536                 include EXT2_FLAG_RESTART anymore, we need to adjust this
537                 routine so that it *does* return in the case of it seeing
538                 EXT2_FLAG_RESTART.
539
540         * pass1.c (e2fsck_pass1): ext2_get_next_inode() may call the group
541                 done callback function, which may set context abort
542                 flags.  So we need to test the context abort flags after
543                 we call ext2_get_next_inode().
544                 (process_inodes): If we abort due out of process_inodes,
545                 do a clean exit by breaking out of the for loop instead of
546                 just returning.
547
548         * e2fsck.h (E2F_FLAG_SIGNAL_MASK): EXT2_FLAG_RESTART shouldn't be
549                 considered a SIGNAL mask (i.e., requiring an immediate
550                 abort of processing to restart).  FLAG_RESTART just means
551                 that we want to restart once pass 1 is complete.
552
553 Tue Feb 24 15:19:40 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
554
555         * Change the progress function to return an integer; if returns 1,
556                 then the progress function is expected to have set the
557                 e2fsck context flag signalling a user abort, and the
558                 caller should also initiate a user abort.
559
560 Tue Feb 17 19:03:44 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
561
562         * pass5.c (check_block_bitmaps, check_inode_bitmaps): Don't call
563                 end_problem_latch() unless there was actually a problem
564                 latched.  Simplifies semantics of the latch processing.
565
566 Mon Feb 16 17:31:44 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
567
568         * e2fsck.h: Add new field, priv_data to the e2fsck context
569                 structure.  It should be used by callers of the e2fsck
570                 functions only, and not by anything in e2fsck itself.
571
572 Mon Feb 7 17:31:04 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
573
574         * super.c: Instead of call ext2fs_get_device_size(), define and call
575                 e2fsck_get_device_size().  (This function may be stubbed
576                 out in special versions of e2fsck.)
577
578         * pass3.c, pass4.c: Remove extra calls to the progress function
579                 that weren't needed.
580
581         * mke2fs.8.in: Update man page to note that the format of the bad
582                 block file is the same as the one generated by badblocks. 
583
584 Sun Feb  1 07:57:14 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
585
586         * dirinfo.c, e2fsck.c: Don't include com_err.h; it isn't needed.
587
588         * e2fsck.h: Include <time.h> since it is needed
589
590         * super.c: If EXT2_SKIP_UUID is defined, then skip the UUID
591                 processing. 
592
593 Tue Jan 20 15:37:01 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
594
595         * unix.c (main): In the case where the filesystem revision is too
596                 high, print the message about the superblock possibly
597                 being corrupt.
598
599         * e2fsck.8.in: Add expanded comments about how the -b option
600                 works. 
601
602 Sat Jan 17 13:02:16 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
603
604         * e2fsck.h: If EXT2_FLAT_INCLUDES is defined, then assume all of
605                 the ext2-specific header files are in a flat directory.
606
607         * dirinfo.c, ehandler.c, pass1.c, pass1b.c, pass2.c, pass5.c,
608                 super.c, swapfs.c, unix.c: Explicitly cast all assignments
609                 from void * to be compatible with C++.
610
611 Tue Jan  6 11:30:24 1998  Theodore Ts'o  <tytso@rsts-11.mit.edu>
612
613         * unix.c (sync_disk): Remove sync_disk and calls to that function,
614                 since ext2fs_close() now takes care of this.
615
616 Mon Dec 29 14:45:42 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
617
618         * pass1.c, pass1b.c, pass2.c, pass3.c, swapfs, badblocks.c,
619                 ehandler.c, unix.c: Change use of private to be priv_data,
620                 to avoid C++ reserved name clash.
621
622 Fri Nov 28 09:30:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
623
624         * dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead
625                 of e2fsck_get_num_dirs, which has been removed.
626
627 Tue Nov 25 15:54:35 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
628
629         * Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want
630                 to compile and install flushb.
631
632 Mon Nov 24 06:48:00 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
633
634         * pass1.c (e2fsck_pass1_check_device_inode): For now, only check
635                 to make sure the extra i_blocks in a device are cleared if
636                 the immutable flag is set.
637
638         * util.c (print_resource_track): Fix typo which caused the
639                 time/resource tracking to print "Pass 1 :" instead of
640                 "Pass 1: ".
641
642 Thu Nov 20 16:02:23 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
643
644         * pass3.c (expand_directory): Fix bug which could cause core dump
645                 when expanding the directory, and the bitmaps hadn't yet
646                 been read in.  Also, only use ext2fs_write_dir_block when
647                 writing a directory block, not when writing out a fresh
648                 indirect block.
649
650 Wed Nov 19 16:15:44 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
651
652         * pass1.c (process_bad_block): Fix bug where first_block wasn't
653                 getting incremented, which caused user to get a
654                 "Programming error?" warning if there was a bad block in a
655                 non-primary superblock/group_descriptor.  Also fixed
656                 another bug so that ext2fs_bg_has_super() is consulted, to
657                 avoid problems when using a filesystem with the
658                 sparse_groups option set and there are bad blocks at the
659                 beginning of a group which doesn't have a superblock.
660
661 Thu Nov  6 16:10:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
662
663         * pass1.c, pass2.c, pass3.c, pass4.c, pass5.c: Add calls to the 
664                 progress indicator function.
665
666         * pass1.c (scan_callback): Add call to the progress feedback
667                 function (if it exists).
668
669 Tue Nov  4 09:45:36 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
670
671         * super.c (check_super_block): Skip the device size check if the
672                 get_device_size returns EXT2_EXT_UNIMPLEMENTED.
673
674         * iscan.c (main): Don't use fatal_error() anymore.
675
676         * pass1b.c, swapfs.c, badblocks.c: Set E2F_FLAG_ABORT instead of
677                 calling fatal_error(0).
678
679         * problem.c, pass3.c (PR_3_ROOT_NOT_DIR_ABORT, 
680                 PR_3_NO_ROOT_INODE_ABORT): New problem codes.
681         
682         * problem.c, pass2.c (PR_2_SPLIT_DOT): New problem code.
683
684         * problem.c, pass1.c (PR_1_SUPPRESS_MESSAGES): New problem code.
685         
686         * problemP.h: New file which separates out the private fix_problem
687                 data structures.
688
689         * util.c, dirinfo.c, pass1.c, pass1b.c, pass2.c, pass5.c, super.c,
690                 swapfs.c util.c: allocate_memory() now takes a e2fsck
691                 context as its first argument, and rename it to be
692                 e2fsck_allocate_memory().
693
694 Mon Nov  3 14:35:29 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
695
696         * unix.c (main): Add a special case check for the error code EROFS
697                 and display an appropriate error message for this case.
698
699         * [lots of files]:  Change ext2fs_read_inode, ext2fs_write_inode
700                 to take the e2fsck context as their first argument.
701                 Change dir_info.c routines to take an e2fsck_context,
702                 renamed them to start with e2fsck_ to avoid namespace
703                 issues, and changed them to store the directory
704                 information inside the e2fsck context.
705                 Added e2fsck_run() which calls all of the e2fsck passes in
706                 the correct order, and which handles the return of abort
707                 codes.  Added abort processing, both via setjmp/longjmp
708                 and via flags in the e2fsck context.  Use a flag in the
709                 e2fsck context instead of the restart_e2fsck global
710                 variable.   Change uses of free and malloc to
711                 ext2fs_free_mem and ext2fs_get_mem.
712         
713 Fri Oct 31 01:12:43 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
714
715         * pass1.c, pass3.c: Rename new error codes to _ET_ in them for
716                 consistency.
717
718 Sat Oct 25 00:10:58 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
719
720         * pass3.c (get_lost_and_found): Check error return of 
721                 EXT2_FILE_NOT_FOUND instead of ENOTDIR
722
723         * pass1.c (pass1_check_directory): Return EXT2_NO_DIRECTORY
724                 instead of ENOTDIR
725
726 Fri Oct 24 00:12:39 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
727
728         * unix.c (PRS): Make the variable which getopt returns into be
729                 an int, so that it won't lose on platforms where char is
730                 unsigned. 
731
732         * pass1b.c (clone_file): Fix bug in error reporting in the case
733                 where cs.errcode is non-zero.
734
735 Sun Oct 19 21:12:11 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
736
737         * pass*.c, super.c, unix.c, util.c, e2fsck.h: Place #ifdef
738                 RESOURCE_TRACK around code which uses init_resource_track
739                 and print_resource_track.  (Not all systems have timeval)
740
741         * super.c: Remove excess #includes which are not necessary.
742
743         * e2fsck.h: Add #ifdef's for HAVE_SYS_TYPES_H and HAVE_SYS_TIME_H
744
745 Fri Oct  3 13:40:03 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
746
747         * pass*.c, super.c: Massive changes to avoid using printf and
748                 com_err routines.   All diagnostic messages are now routed
749                 through the fix_problem interface.
750
751 Sat Sep  6 17:13:28 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
752
753         * pass2.c (check_dir_block): Check for duplicate '.' and '..'
754                 entries. 
755
756         * problem.c, problem.h: Add new problem codes PR_2_DUP_DOT and
757                 PR_2_DUP_DOT_DOT.
758
759 Tue Sep  2 09:04:51 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
760
761         * problem.c: Added new problem codes for some of the
762                 superblock corruption checks, and for the pass header
763                 messages.  ("Pass 1: xxxxx")
764
765         * util.c (print_resource_track): Now takes a description
766                 argument. 
767
768 Mon Aug 25 10:23:13 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
769
770         * super.c, unix.c, e2fsck.c: New files to separate out the
771                 operating-specific operations out from e2fsck.c.  
772                 e2fsck.c now contains the global e2fsck context management
773                 routines, and super.c contains the "pass 0" initial
774                 validation of the superblock and global block group
775                 descriptors. 
776
777         * pass1.c, pass2.c, pass3.c, pass4.c, pass5.c, util.c: Eliminate
778                 (nearly) all global variables and moved them to the e2fsck
779                 context structure.
780
781         * problem.c, problem.h: Added new problem codes PR_0_SB_CORRUPT,
782                 PR_0_FS_SIZE_WRONG, PR_0_NO_FRAGMENTS,
783                 PR_0_BLOCKS_PER_GROUP, PR_0_FIRST_DATA_BLOCK
784
785 Thu Aug 14 10:55:21 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
786
787         * message.c: Add compression for the word "Illegal"
788
789         * problem.c: Added entries for PR_2_BAD_CHAR_DEV and
790                 PR_2_BAD_BLOCK_DEV
791
792 Wed Aug 13 09:55:57 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
793
794         * pass1.c (pass1, check_device_inode), pass2.c
795                 (process_bad_inode): Use a more stringent test for a valid
796                 device.
797
798 Sun Aug 10 18:58:02 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
799
800         * e2fsck.c (check_mount): Add stronger warning message about the
801                 perils of running e2fsck on a mounted filesystem.
802
803 Tue Jun 17 01:33:20 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
804
805         * Release of E2fsprogs 1.11
806
807 Thu Jun 12 00:25:31 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
808
809         * pass1.c (mark_table_blocks): Mark the superblock and group
810                 descriptor blocks first, so that any conflicts between
811                 these and the bitmap or inode table blocks is noticed.
812
813         * problem.c: Fix message printed out when a block or inode bitmap
814                 conflicts with other fs data, has the correct group number
815                 in it.
816
817 Tue Jun 10 12:07:37 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
818
819         * pass2.c (pass2): Check the error return from ext2fs_dblist_iterate.
820
821 Thu May  8 22:45:27 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
822
823         * e2fsck.8.in: Fix minor typos and grammer oops found by Bill
824                 Hawes (whawes@star.net).
825
826         * badblocks.c (read_bad_blocks_file): Pass the blocksize to the
827                 bad blocks command so that all of the filesystem gets
828                 tested in the case where the blocksize 2048 or 4096.
829
830 Thu Apr 24 12:16:42 1997  Theodre Ts'o  <tytso@localhost.mit.edu>
831
832         * Release of E2fsprogs version 1.10
833
834 Mon Apr 21 22:43:08 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
835
836         * pass1b.c (pass1b): While scanning for inodes, simply skip inodes
837                 where ext2fs_get_next_inode returns the 
838                 EXT2_ET_BAD_BLOCK_IN_INODE_TABLE error.
839
840 Thu Apr 17 12:23:38 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
841
842         * Release of E2fsprogs version 1.09
843
844 Fri Apr 11 18:56:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
845
846         * Release of E2fsprogs version 1.08
847
848 Thu Apr 10 13:51:16 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
849
850         * pass1b.c (clone_file_block): If we clone a directory, we need to
851                 update the dblist entry so that we check (and correct) the
852                 right directory block.
853
854 Sun Apr  6 09:13:12 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
855
856         * pass1.c (process_block): Don't clear blocks references to
857                 filesystem metadata; let pass 1B handle this case.
858
859         * problem.c, problem.h: Add new problem, PR_1B_SHARE_METADATA.
860
861         * pass1b.c (pass1d): Deal with a block which is shared with
862                 filesystem metadata.
863
864         * e2fsck.h: Make block_illegal_map be a global variable
865
866 Sat Apr  5 11:51:58 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
867
868         * e2fsck.c, pass1.c (mark_table_blocks): Support the sparse_super
869                 feature.
870                 (get_backup_sb): New function which attempts to obtain the
871                 correct backup superblock (if possible).
872
873 Fri Apr  4 10:46:26 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
874
875         * e2fsck.c (main): Check the version of the library, and warn if
876                 the library is out of date; this happens generally due to
877                 users who manually install e2fsprogs.
878
879         * pass1.c (pass1_get_blocks): If the passed in inode number for
880                 get_blocks isn't what we're expecting pass back
881                 EXT2_ET_CALLBACK_NOT_HANDLED.
882
883 Wed Mar 12 13:32:05 1997  Theodore Y. Ts'o  <tytso@mit.edu>
884
885         * Release of E2fsprogs version 1.07
886
887 Tue Mar 11 10:31:47 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
888
889         * icount.c: New file which implements an inode count abstraction.
890                 This significantly reduces amount of memory needed to
891                 check really large filesystems.
892
893         * pass1.c, pass2.c, pass3.c, pass4.c: Modified to use the icount
894                 abstraction.
895
896 Fri Mar  7 08:28:55 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
897
898         * dirinfo.c (dir_info_iter): New function which allows iteration
899                 over the directories in the dir_info map.
900
901         * pass3.c (pass3, check_directory): Speed up pass 3 by iterating
902                 over all directories in the dir_info structure, instead of
903                 iterating all inodes looking for directories, and then
904                 looking up the directories using get_dir_info().
905
906 Sat Feb  1 11:33:43 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
907
908         * pass1.c (pass1, process_block): 
909         * pass2.c (pass2): Use the ext2_dblist abstraction instead of
910                 manual code to manage the directory block list information.
911
912         * pass1.c (check_blocks), pass1b.c (pass1b), pass2.c
913                 (deallocate_inode): Call the ext2 library routine
914                 ext2_inode_has_valid_blocks() instead of
915                 inode_has_valid_blocks().
916
917         * swapfs.c (swap_inodes): Add check so that we don't try to call
918                 swap_inode_blocks unless the inode has valid blocks.
919                 (Otherwise a long fast symlink might cause
920                 swap_inode_blocks to erroneously get called.)
921
922 Wed Jan 22 14:42:53 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
923
924         * problem.c, problem.h: Added entries for PR_2_DOT_NULL_TERM and
925                 PR_2_DOT_DOT_NULL_TERM.
926
927         * pass2.c (check_dot, check_dot_dot): Make sure the new . and
928                 .. entries are null-terminated, since the 2.0 kernel
929                 requires this (for no good reason).
930
931 Mon Jan 20 20:05:11 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
932
933         * pass1.c (pass1): Set the EXT2_SF_SKIP_MISSING_ITABLE flag so
934                 that we can recover from missing inode tables.
935
936         * dirinfo.c (get_dir_info): If there are no directories in the
937                 dir_info abstraction, don't core dump (because dir_info is
938                 NULL).
939
940         * e2fsck.c (main): Don't try using the backup superblocks if there
941                 aren't any.
942                 (check_super_block): If there are illegal inode table or
943                 bitmaps, set the filesystem as being in error.
944
945 Wed Jan 15 11:32:01 1997  Theodore Ts'o  <tytso@rsts-11.mit.edu>
946
947         * pass2.c (check_dir_block): Added check to make sure that rec_len
948                 is a a multiple of 4 (so that the directory entries are
949                 4-byte aligned).
950
951 Sat Dec 28 12:16:32 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
952
953         * Makefile.in (uninstall): Uninstall all programs in the PROGS
954                 line.
955                 (PROGS): Don't build and install the extend program by
956                 default. 
957         
958
959 Sat Dec  7 16:41:02 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
960
961         * pass1.c (process_inodes): Make sure the stashed_ino variable is
962                 saved and restored as well.
963                 (pass1): For fast sym links, skip the check_blocks
964                 processing step altogether.
965
966 Mon Dec  2 09:28:24 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
967
968         * problem.c, message.c: New files, to completely refurbish how
969                 filesystem problems are reported to the user.  The
970                 diagnostic messages are now encoded out in an easily
971                 customizable, extensible format.  The messages printed out
972                 in preen mode are all on one line, and contain the device
973                 name.
974
975 Fri Nov 29 20:26:08 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
976
977         * swapfs.c (swap_inodes): When swapping a filesystem, ignore
978                 deleted files.
979
980         * pass1.c (pass1): Ignore missing inode table errors during the
981                 scan, and just skip past those inodes.
982
983         * pass3.c (check_root): Remove root_ino argument, and assume that
984                 the root inode must be EXT2_ROOT_INO.  Move responsibility
985                 of setting the parent of the root inode in the directory
986                 inode structure to pass2().
987
988         * pass2.c (check_dir_block): Don't allow links to the root
989                 directory.  
990
991         * dirinfo.c (add_dir_info): Remove last argument to add_dir_info,
992                 since the inode is no longer used.
993
994 Tue Oct 15 00:06:49 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
995
996         * e2fsck.c (main): If the superblock magic number is wrong, or the
997                 block group fails a sanity check, then automatically
998                 restart trying to use the backup superblocks.
999
1000         * pass1.c (mark_table_blocks): Make the inode tables ahead of
1001                 everything else; in the case where a bitmap block overlays
1002                 the inode table, the inode table should take precedence.
1003
1004         * pass2.c (maybe_clear_entry): Make the deleted/unused error
1005                 message fit on one line, since the error can happen during
1006                 a preen pass.  (We eventually need to revamp the whole
1007                 e2fsck error reporting and prompting system, but that's a
1008                 job for another day.)
1009
1010 Mon Oct 14 22:29:49 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1011
1012         * e2fsck.c (main): Read in the list badblocks into fs->badblocks
1013                 for the benefit of the inode scan functions. 
1014
1015         * pass1.c (pass1): If ext2fs_get_next_inode() returns an error
1016                 indicating that an inode is in a bad block, mark that
1017                 inode as being used, as well as in the inode "bb" map.
1018
1019         * pass2.c (maybe_clear_entry): New function which generalizes the
1020                 error cases when a directory entry needs to be cleared.
1021                 (check_dir_block): If an inode is in the "bb" map, offer
1022                 to clear the directory entry, since the inode is in a bad
1023                 block.
1024
1025         * pass4.c (pass4): If an inode is marked as used, but is is marked
1026                 in the "bb" map, don't process it as a disconnected inode.
1027
1028 Tue Oct  8 02:02:03 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1029
1030         * Release of E2fsprogs version 1.06
1031
1032 Mon Oct  7 00:45:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1033
1034         * e2fsck.c (main): Print out the version number of the shared
1035                 library when using the -V option.
1036
1037         * swapfs.c (swap_filesys): Change EXT2_SWAP to EXT2_FLAG_SWAP for
1038                 consistency's sake.
1039
1040         * e2fsck.c (main): By setting EXT2_FLAG_MASTER_SB_ONLY, only write
1041                 out the backup superblocks when we know we have a valid
1042                 filesystem.
1043
1044 Tue Oct  1 22:00:29 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1045
1046         * util.c (preenhalt): Make it explicit on preenhalt that running
1047                 e2fsck manually means without the -a or -p flag.
1048
1049 Fri Sep 27 14:41:08 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1050
1051         * pass1.c (pass1): Add support for the EXT2_BOOT_LOADER inode.
1052                 (Linux/FT actually sets the mode bits, so we have to
1053                 handle it specially.)
1054
1055         * e2fsck.c (check_if_skip): Print a message if the filesystem is
1056                 just dirty, so that the user knows that it's about to be
1057                 checked (since this will take a while).
1058
1059 Mon Sep 16 17:00:01 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1060
1061         * pass4.c: If a disconnected inode is zero-length, prompt to
1062                 delete it instead of connecting it to lost+found.
1063
1064 Thu Sep 12 15:23:07 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1065
1066         * Release of E2fsprogs version 1.05
1067
1068 Fri Aug 30 20:24:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1069
1070         * pass4.c (pass4): If the user refuses to connect an unattached
1071                 inode to lost+found, don't try to set i_links_count.  This
1072                 is bad, since if the user says yes, the inode will be
1073                 marked as unused, which is not necessarily the right
1074                 thing, especially since the rest of the cleanup doesn't
1075                 happen here.
1076
1077         * pass2.c (deallocate_inode): Set inode_link_info[ino] when
1078                 dellocating an inode.  (Not strictly necessary, but...)
1079
1080         * pass4.c (pass4): Add "bonehead" explanation to the "programming
1081                 error" message.
1082
1083 Tue Aug 27 11:26:32 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1084
1085         * e2fsck.c (PRS,main): Added new options -s and -S.  -s will
1086                 byte-swap the filesystem so that it is normalized.  -S
1087                 will byte-swap the filesystem regardless of its current
1088                 byte-order.
1089
1090         * swapfs.c: New file, which will byte-swap a filesystem.
1091
1092 Tue Aug 20 09:41:37 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1093
1094         * pass1.c (pass1): Change handling on files with non-zero dtime
1095                 and non-zero i_link_count; before we treated them as
1096                 deleted file per botched ext2 0.3c kernel behavior.  We
1097                 now clear dtime instead.
1098
1099 Mon Aug 19 23:33:57 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1100
1101         * e2fsck.c (main): If e2fsck sets the clean bit, even if
1102                 nothing else is changed, make sure FSCK_NONDESTRUCT is
1103                 set (since after all having the filesystem set to
1104                 invalid is an error.  :-)
1105
1106 Fri Aug  9 10:25:13 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1107
1108         * pass1.c (process_block): Make sure that meta data doesn't get
1109                 accidentally set in the dir_blocks array (which could
1110                 happen in some error condtions).
1111         
1112         * pass1.c (pass1): 
1113         * pass2.c (process_bad_inode): Check for fragments in a
1114                 OS-independent fashion.
1115
1116 Thu Aug  8 15:20:54 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1117
1118         * e2fsck.c (check_if_skip): Close the filesystem when skipping the
1119                 cleanup for the filesystem.
1120
1121 Mon Jul 22 22:03:28 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1122
1123         * e2fsck.c: Improve corrupt_msg, so that it's less confusing.
1124
1125 Thu May 16 11:12:30 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1126
1127         * Release of E2fsprogs version 1.04
1128
1129 Wed May 15 21:41:29 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>
1130
1131         * e2fsck.c (relocate_hint): Issue a hint that the user may wish to
1132                 try "e2fsck -b 8193" before allowing e2fsck to relocate
1133                 inode table blocks.
1134
1135         * Makefile.in (e2fsck): Build e2fsck statically or dynamically
1136                 depending on the option to configure.  Added targets for
1137                 e2fsck.static and e2fsck.shared for people who want to
1138                 build a static or shared variant manually.
1139
1140 Wed Mar 27 00:33:40 1996    <tytso@rsts-11.mit.edu>
1141
1142         * Release of E2fsprogs version 1.03
1143
1144 Tue Mar 26 12:03:42 1996    <tytso@rsts-11.mit.edu>
1145
1146         * e2fsck.c (show_stats): Don't use floating point to display
1147                 percentage of non-contiguous files, as different libc
1148                 handle result truncation differently, and this causes the
1149                 test suite to bomb out depending on which libc you are
1150                 using.
1151
1152         * util.c (allocate_memory): Fix error message to omit extraneous
1153                 %%s.
1154
1155 Tue Mar  5 03:50:40 1996    <tytso@rsts-11.mit.edu>
1156
1157         * pass4.c (pass4): 
1158         * pass2.c (check_dir_block): 
1159         * pass1.c (pass1): Add support for dynamic first inode revision.
1160
1161 Wed Feb 14 16:27:30 1996    <tytso@rsts-11.mit.edu>
1162
1163         * pass3.c (check_root): Fix spelling typo
1164
1165 Mon Feb  5 22:30:30 1996    <tytso@rsts-11.mit.edu>
1166
1167         * e2fsck.c (check_super_block): If the superblock fails certain
1168                 internal consistency checks, exit with a fatal error after
1169                 printing the "superblock is corrupt message".
1170
1171 Wed Jan 31 11:06:08 1996    <tytso@rsts-11.mit.edu>
1172
1173         * Release of E2fsprogs version 1.02
1174
1175 Wed Dec 15 21:24:26 1996    <tytso@rsts-11.mit.edu>
1176
1177         * pass1.c (process_block): Check to see if a file is "fragmented".
1178                 i.e., non-contiguous.  Note that any file which is larger
1179                 than the block group is guaranteed to be non-contiguous.
1180                 We may want to use a different hueristic for deciding
1181                 whether or not a file is "fragmented".
1182
1183         * e2fsck.c (show_stats): Print statistics of how many
1184                 non-contiguous files are on the system.
1185
1186 Fri Dec 15 19:19:47 1995    <tytso@rsts-11.mit.edu>
1187
1188         * badblocks.c (read_bad_blocks_file, test_disk): Fold
1189                 functionality of test_disk() (which runs badblocks) into
1190                 read_bad_blocks_file(); test_disk() now calls
1191                 read_bad_blocks_file() with a NULL bad_blocks_file
1192                 argument.
1193
1194 Mon Nov 20 18:30:10 1995    <tytso@rsts-11.mit.edu>
1195
1196         * e2fsck.c (check_mount): Use #if defined(__linux__) instead of
1197                 #if defined(linux).  The latter won't work if we're
1198                 compiling -ansi.
1199
1200 Mon Oct 30 20:31:17 1995    <tytso@rsts-11.mit.edu>
1201
1202         * e2fsck.c (check_mount): For Linux systems, the check to see if
1203                 the root is mounted read-only has to be done for all
1204                 filesystems, not just for the root filesystem, due to the
1205                 way that some /etc/rc scripts are set up.
1206
1207 Thu Oct 26 12:05:30 1995    <tytso@rsts-11.mit.edu>
1208
1209         * Makefile.in (install): Strip programs when they are installed.
1210                 (e2fsck): Build e2fsck statically.
1211
1212 Wed Oct 25 21:18:16 1995    <tytso@rsts-11.mit.edu>
1213
1214         * util.c (preenhalt): Preenhalt now takes an argument, which is an
1215                 ext2fs_filsys; this allows it to set the EXT2_ERROR_FS
1216                 flag in the superblock in cases where preenhalt is called.
1217                 All calls to preenhalt() were changed to either
1218                 preenhalt(fs) or preenhalt(NULL) in a few cases where the
1219                 fs pointer was not available.  (Most notable, for block
1220                 read/write errors.)
1221
1222 Mon Sep  4 21:41:03 1995  Remy Card  <card@bbj>
1223
1224         * ehandler.c:
1225           util.c: Include <sys/time.h> before <sys/resource.h>.  BSD needs it.
1226
1227 Mon Sep  4 10:14:49 1995    <tytso@rsts-11.mit.edu>
1228
1229         * e2fsck.c (show_stats): Show statistics about how many inodes
1230                 have indirect, doubly indirect, and triply indirect
1231                 blocks.  Allow up to 8 digits for statistics, instead of
1232                 merely 6, so things look pretty for large filesystems.
1233
1234         * pass1.c (pass1): Keep statistics about indirect, doubly
1235                 indirect, and triply indirect blocks.
1236
1237         * pass1.c (unwind_pass1): Clear the above statistics when unwinding
1238                 pass 1.
1239
1240 Fri Aug 18 15:17:10 1995  Theodore Y. Ts'o  <tytso@dcl>
1241
1242         * util.c, ehandler.c: Move #include of <sys/resource.h> after
1243                 #include of "e2fsck.h", since sys/resource.h may depend on
1244                 sys/time.h, which is #included in e2fsck.h.
1245
1246 Thu Aug 17 22:33:37 1995    <tytso@rsts-11.mit.edu>
1247
1248         * e2fsck.c (check_mount):  Use the new ext2fs_check_if_mounted()
1249                 function to determine if the device is mounted.
1250
1251         * e2fsck.c (main):  Add better error messages if ext2fs_open()
1252                 fails. 
1253
1254 Wed Aug 16 16:25:02 1995    <tytso@rsts-11.mit.edu>
1255
1256         * pass1.c (check_blocks): If we're clearing a directory, clear
1257                 pb.is_dir so we don't do the following check of making
1258                 sure the directory size matches; this is pointless, since
1259                 we've already cleared the inode.
1260
1261 Fri Aug 11 09:08:54 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1262
1263         * pass1.c (bad_primary_block): New function, called by
1264                 process_bad_block, which explains the facts of life to the
1265                 user when a block in the primary superblock or primary
1266                 group descriptors is bad.
1267
1268         * pass2.c (check_dot): Handle the case where the first directory
1269                 entry is used, but not ".".
1270
1271         * pass2.c (check_dotdot): Handle the case where the second directory
1272                 entry is used, but is not "..".
1273
1274 Thu Aug 10 10:05:10 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1275
1276         * e2fsck.c (check_super_block): Get the size of the physical
1277                 device and if it is smaller than the reported size of the
1278                 filesystem, report an error.
1279
1280 Sat Aug 12 03:39:18 1995  Remy Card  <card@bbj>
1281
1282         * e2fsck.c (check_if_skip): Print the number of allocated files and
1283                 blocks on clean filesystems.
1284
1285 Fri Aug 11 14:15:36 1995  Remy Card  <card@bbj>
1286
1287         * e2fsck.8: Updated date and version number.
1288
1289 Thu Aug 10 14:26:01 1995  Remy Card  <card@bbj>
1290
1291         * pass1.c (check_blocks): Check that directory size matches *exactly*
1292                 the count of allocated blocks.
1293
1294 Wed Aug  9 21:21:24 1995  Theodore Y. Ts'o  <tytso@dcl>
1295
1296         * pass1b.c (pass1d): Free the shared[] array when we're done with
1297                 it to avoid a memory leak.
1298
1299         * pass1.c (unwind_pass1): Use ext2fs_free_block_bitmap to free the
1300                 block_dup_map.
1301
1302         * pass2.c (process_bad_inode): When clearing the inode, make sure
1303                 the pathname is freed, to prevent a memory leak.
1304
1305         * pass5.c (check_inode_bitmaps): Free free_array and dir_array
1306                 when we're finished with them.
1307                 (check_block_bitmaps): Free free_array when we're finished
1308                 with them.
1309
1310         * Makefile.in (e2fsck, flushb): Use $(LD) instead of $(CC) when
1311                 linking the executable.
1312
1313         * pass2.c (process_bad_inode): Even on OS's that don't support the
1314                 fragment fields, make sure the Linux equivalent fields are
1315                 set to zero.  If an OS wants to reuse these fields, which
1316                 is probably a bad idea (although we may get desperate in
1317                 the future) this code will have to be changed.
1318
1319         * pass1.c (dir_block_cmp): If the block numbers are equal, compare
1320                 on the inode field, and then blockcnt field.  This is just
1321                 to keep the ordering of dir_blocks the same on all
1322                 platforms when there are more than on missing directory
1323                 blocks, which are indicated directories with holes, which
1324                 are indicated with the block number being set to zero.
1325
1326 Sun Aug  6 15:40:58 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1327
1328         * pass1.c (check_blocks, process_block): check_blocks() modified
1329                 to call the ext2fs_block_iterate() with BLOCK_FLAG_HOLE if
1330                 the inode is a directory.  process_block() now checks to
1331                 see if a directory has a "hole", or missing block.  If so,
1332                 this fact is recorded in the directory block list so that
1333                 the problem can be resolved in pass #2.
1334
1335         * pass2.c (allocate_dir_block): Added allocate_dir_block() to
1336                 allocate new blocks for directories with "holes".  Called
1337                 out of check_dir_block if a block in the directory block
1338                 list is zero.
1339
1340         * pass3.c (get_lost_and_found): Move location of free(block) to
1341                 prevent possible memory leak.
1342
1343 Sat Aug  5 12:42:22 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1344
1345         * pass2.c (check_dir_block): Use a automatic, fixed-saize array
1346                 instead of alloca() --- alloca is not portable!  Check to
1347                 make sure the filename is not longer than EXT2_NAME_LEN,
1348                 and offer to fix it by truncating it, since it should
1349                 never happen.
1350
1351         * e2fsck.c (PRS): Use malloc() instead of alloca() --- alloca() is
1352                 not portable!!  In any case putenv() in some systems must
1353                 take a static character array or malloc()'ed memory;
1354                 passing memory allocated using alloca() to putenv() is not
1355                 advisable.
1356
1357         * pass2.c (check_dot, check_dotdot): Use malloc() instead of
1358                 alloca() --- alloca() is not portable!!!
1359
1360 Tue Jul 18 20:04:02 1995    <tytso@rsx-11.mit.edu>
1361
1362         * pass1b.c (pass1c): 
1363         * pass3.c (check_root, get_lost_and_found): 
1364         * pass2.c (check_dir_block): Use ext2fs_{read,write}_dir_block
1365                 to read/write the directory block.
1366
1367 Mon Jul 17 04:00:56 1995    <tytso@rsx-11.mit.edu>
1368
1369         * util.c (ask_yn): Apply patch supplied by Peter A. Zaitcev to
1370                 make sure VMIN and VTIME are set correct.
1371
1372 Fri Jul 14 19:26:29 1995    <tytso@rsx-11.mit.edu>
1373
1374         * pass1.c (mark_block_used): Change to be an inline function.
1375                 Assume that the block validity checks are already done,
1376                 and use the fast variant of the bitmap functions.
1377
1378 Thu Jul 13 08:10:55 1995    <tytso@rsx-11.mit.edu>
1379
1380         * pass5.c (check_block_bitmaps, check_inode_bitmaps): Check the
1381                 bounds of the bitmaps in advance, and then use the fast
1382                 variant of e2fs_test_{block,inode}_bitmap.
1383
1384         * pass1.c (mark_block_used): Use ext2_fast_mark_block_bitmap since
1385                 the bounds checking has already been done earlier.
1386
1387 Wed Jul 12 02:22:46 1995    <tytso@rsx-11.mit.edu>
1388
1389         * pass1.c (pass1): Allocate and free the block_illegal_map, which
1390                 is used for shortcut processing in process_block.
1391                 (mark_table_blocks): Initialize block_illegal_map with the
1392                 filesystem blocks.
1393                 (describe_illegal_block): New helper function that
1394                 describes why a block is illegal.
1395                 (process_block): Use block_illegal_map as a shortcut
1396                 to determine whether a block is bad.  Use
1397                 describe_illegal_block to print out why the block is illegal.
1398
1399 Mon Jun 12 19:11:06 1995  Theodore Y. Ts'o  (tytso@dcl)
1400
1401         * flushb.c: Don't include <linux/fs.h> if it doesn't exist.
1402
1403         * scantest.c: Don't include <linux/fs.h>, <getopt.h>, or
1404                 <mntent.h> if they don't exist.  (Mostly so that "make
1405                 depend" works.)
1406
1407         * pass1.c, pass1b.c, pass3.c, badblocks.c: Include <errno.h> (if
1408                 it exists).
1409
1410         * e2fsck.c, scantest.c: Don't include <getopt.h> if it doesn't
1411                 exist. 
1412
1413 Mon Jun 12 08:37:49 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1414
1415         * pass2.c (process_bad_inode, check_for_zero_long,
1416                 check_for_zero_char):  Change long to u32, and char to u8.
1417
1418 Sun Jun 11 15:05:57 1995  Theodore Y. Ts'o  <tytso@lurch.mit.edu>
1419
1420         * util.c (inode_has_valid_blocks): 
1421         * pass2.c (process_bad_inode): 
1422         * pass1.c (pass1, check_blocks, pass1_check_directory): Use
1423                 LINUX_S_IS* instead of S_IS*.
1424
1425         * e2fsck.h: Don't #include <sys/stat.h>
1426
1427         * flushb.c (main): Add #ifdef BLKFLSBUF around ioctl.  (Although
1428                 this program is pretty much useless if BLKFLSBUF isn't
1429                 supported.)
1430
1431         * e2fsck.c, badblocks.c: Add #include <errno.h>, since errno is
1432                 used.
1433
1434 Thu Jun  8 12:31:19 1995  Miles Bader  <miles@churchy.gnu.ai.mit.edu>
1435
1436         * pass2.c (check_dot, check_dotdot, check_dir_block): Use alloca
1437         to allocate space for file names instead of using fixed size buffers.
1438         (process_bad_inode): Only check inode frag fields if
1439         HAVE_EXT2_FRAGS is defined (by configure).
1440         * pass1.c (pass1): Only check the inode frag fields if
1441         HAVE_EXT2_FRAGS is defined (by configure).
1442
1443         * e2fsck.c (check_mount): Only check for a mounted filesystem if
1444         HAVE_MNTENT_H is defined (by configure).
1445         (PRS): Use alloca to allocate the new path string, instead of
1446         having a fixed size buffer (which was the wrong size anyway).
1447         (PRS): Only support the -F (flush) option if the BLKFLSBUF ioctl
1448         is defined.
1449
1450         * e2fsck.h: Only include <linux/fs.h> if HAVE_LINUX_FS_H is
1451         defined (by configure).
1452
1453         * Makefile.in: Rewritten to conform to GNU coding standards and
1454         support separate compilation directories.
1455
1456 Thu Apr  6 15:04:36 1995  Remy Card  <card@bbj.ibp.fr>
1457
1458         * pass1.c (pass1): Test the mode in reserved inodes (must be zero).
1459
1460 Sat Mar 11 13:12:16 1995  Theodore Y. Ts'o  <tytso@localhost>
1461
1462         * pass1.c (unwind_pass1): Clear the file type statistics counter
1463                 when pass 1 needs to be restarted from scratch.
1464
1465         * pass1.c (handle_fs_bad_blocks): Fix bug where bitmap blocks were
1466                 being reallocated to blocks in the next block group,
1467                 instead of the current block grup.
1468
1469         * pass1.c (pass1, check_blocks): Set inode_link_info[ino] whenever
1470                 inode.i_links_count is set.
1471
1472 Tue Feb 14 01:38:04 1995  Theodore Y. Ts'o  (tytso@rt-11)
1473
1474         * pass1.c (process_block): Add checks for if the block is
1475                 trepassing on a superblock or group descriptor table.
1476
1477 Sat Dec 31 00:52:11 1994    <tytso@rsx-11.mit.edu>
1478
1479         * main.c (corrupt_msg): Extend the message which is printed out
1480                 when the superblock is corrupt, to include the suggestion
1481                 of using the -b option to specify an alternate superblock.
1482
1483 Thu Nov 24 09:29:58 1994  Theodore Y. Ts'o  (tytso@rt-11)
1484
1485         * badblocks.c (read_bad_blocks_file): If we are adding or
1486                 replacing bad blocks in the bad blocks inode, sanity check
1487                 the bad block inode first, and clear out any illegal blocks.
1488
1489         * pass2.c (check_name): Don't bomb out if the attempt to get the
1490                 pathname of the containing directory returns an error; the
1491                 directory may be too badly damaged to expect that
1492                 ext2fs_get_pathname will always succeed.  Use "???" if the
1493                 pathname can't be obtained (it's only for a printf to the
1494                 user anyway).
1495
1496                 The name of the containing directory and the bad filename
1497                 were incorrectly interchanged in the user message.  Fixed.
1498
1499         * pass2.c (check_name, check_dir_block): Use a common static
1500                 string for the unknown pathname.
1501
1502 Mon Nov  7 22:30:54 1994  Remy Card  <card@bbj>
1503
1504         * Fixed lots of printf formats to make sure that block and inode
1505         numbers are printed as unsigned integers.
1506
1507 Mon Oct 24 14:10:46 1994    (tytso@rsx-11)
1508
1509         * pass5.c (check_block_end): Fix calculation of how the last block
1510                 in the block bitmap should be calculated.
1511
1512 Wed Sep  7 10:01:13 1994    (tytso@rsx-11)
1513
1514         * pass1b.c (pass1_dupblocks): Fix declaration of dup_inode_map to
1515                 be an ext2fs_inode_bitmap, and free it properly.
1516
1517         * e2fsck.h
1518         * e2fsck.c (main): Folded in Remy Card's changes to add a revision
1519         level to the superblock.
1520
1521 Wed Aug 17 22:00:20 1994  Remy Card  (card@bbj)
1522
1523         * e2fsck.c (usage): Fixed bogus usage message.
1524
1525 Wed Aug 17 11:21:45 1994  Theodore Y. Ts'o  (tytso@rt-11)
1526
1527         * pass1.c (process_bad_block): Fixed bug so that blocks in the
1528         backup superblocks and group descriptors are handled gracefully.
1529