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