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