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