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