Theodore Ts'o | 21d5385 | 1998-02-21 03:14:50 +0000 | [diff] [blame] | 1 | E2fsprogs 1.12 (February 20, 1998) |
| 2 | ================================== |
| 3 | |
| 4 | E2fsprogs now works with glibc (at least with the version shipped wtih |
| 5 | RedHat 5.0). The ext2fs_llseek() function should now work even with |
| 6 | i386 ELF shared libraries and if llseek() is not present. We also |
| 7 | explicitly do a configure test to see if (a) llseek is in libc, and |
| 8 | (b) if llseek is declared in the system header files. (See standard |
| 9 | complaints about libc developers don't understand the concept of |
| 10 | compatibility with previous versions of libc.) |
| 11 | |
Theodore Ts'o | 101c84f | 1998-03-24 16:27:11 +0000 | [diff] [blame] | 12 | Added support for the EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE feature, |
| 13 | which means that e2fsprogs will ignore the high 8 bits of the |
| 14 | directory entry's name_len field, so that it can be used for other |
| 15 | purposes. |
| 16 | |
| 17 | Added support for the EXT2_FEATURE_RO_COMPAT_LARGE_FILE feature. |
| 18 | E2fsprogs will now support filesystems with 64-bit sized files. |
| 19 | |
| 20 | Added support for the EXT2_FEATURE_COMPAT_DIR_PREALLOC feature. |
| 21 | |
Theodore Ts'o | 21d5385 | 1998-02-21 03:14:50 +0000 | [diff] [blame] | 22 | Added new program "e2label", contributed by Andries Brouwer. E2label |
| 23 | provides an easy-to-use interface to modify the filesystem label. |
| 24 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 25 | Fixed bug so that lsattr -v works instead of producing a core dump. |
| 26 | |
Theodore Ts'o | 21d5385 | 1998-02-21 03:14:50 +0000 | [diff] [blame] | 27 | Fixed a minor bug in mke2fs so that all groups with bad superblock |
| 28 | backup blocks are printed (not just the first one). |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 29 | |
| 30 | Mke2fs will check the size of the device, and if the user specifies a |
| 31 | filesystem size larger than the apparent size of the device it will |
| 32 | print a warning message and ask if the user wants to proceed. |
| 33 | |
Theodore Ts'o | 21d5385 | 1998-02-21 03:14:50 +0000 | [diff] [blame] | 34 | Fixed a bug in e2fsck which could cause a core dump when it needs to |
| 35 | expand the /lost+found directory, and sometimes the bitmaps haven't |
| 36 | been merged in. Also fixed a related bug where ext2fs_write_dir_block |
| 37 | was used to write out a non-directory block. (Which would be bad on a |
| 38 | non-Intel platform with byte swapping going on.) |
| 39 | |
| 40 | Fixed bug in e2fsck where it would print a "programming error" message |
| 41 | instead of correctly identifying where a bad block was in used when |
| 42 | the bad block was in a non-primary superblock or block group |
| 43 | descriptor. Also fixed a related bug when sparse superblocks are in |
| 44 | use and there is a bad block where a superblock or block group |
| 45 | descriptor would have been in a group that doesn't include a |
| 46 | superblock. |
| 47 | |
| 48 | Fixed a bug in e2fsck (really in libext2fs's dblist function) where if |
| 49 | the block group descriptor table is corrupt, it was possible to try to |
| 50 | allocate a huge array, fail, and then abort e2fsck. |
| 51 | ext2fs_get_num_dirs() now sanity checks the block group descriptor, |
| 52 | and subsitutes reasonable values if the descriptors are obviously bogus. |
| 53 | |
| 54 | If e2fsck finds a device file which has the immutable flag set and the |
| 55 | i_blocks beyond the normal device number are non-zero, e2fsck will |
| 56 | offer to remove it, since it's probably caused by garbage in the inode |
| 57 | table. |
| 58 | |
| 59 | When opening a filesystem, e2fsck specially checks for the EROFS error |
| 60 | code, and prints a specific error message to the user which is more |
| 61 | user friendly. |
| 62 | |
| 63 | If the filesystem revision is too high, change the e2fsck to print |
| 64 | that this is either because e2fsck is out of date, or because the |
| 65 | superblock is corrupt. |
| 66 | |
| 67 | E2fsck now checks for directories that have duplicate '.' and '..' |
| 68 | entries, and fixes this corruption. |
| 69 | |
| 70 | E2fsck no longer forces a sync of the filesystem (with attendant sleep |
| 71 | calls) at all times. The ext2fs_flush() function now performs a sync |
| 72 | only if it needed to write data blocks to disk. |
| 73 | |
| 74 | Fixed a minor bug in e2fsck's pass1b's file cloning function, where |
| 75 | certain errors would not be properly reported. |
| 76 | |
| 77 | Updated and expanded a few points in the man pages which users |
| 78 | complained wheren't explicit enough. |
| 79 | |
| 80 | Added special case byte-swapping code if compiling on the PowerPC, to |
| 81 | accomodate the strange big-endian variant of the ext2 filesystem that |
| 82 | was previously used on the PowerPC port. |
| 83 | |
| 84 | |
| 85 | Programmer's notes: |
| 86 | ------------------- |
| 87 | |
| 88 | Removed C++ keywords from the ext2fs libraries so that it could be |
| 89 | compiled with C++. |
| 90 | |
| 91 | E2fsck's internal organization has now been massively reorganized so |
| 92 | that pass*.c don't have any printf statements. Instead, all problems |
| 93 | are reported through the fix_problem() abstraction interface. E2fsck |
| 94 | has also been revamped so that it can be called as a library from a |
| 95 | application. |
| 96 | |
| 97 | Added new fileio primitives in libext2fs for reading and writing |
| 98 | files on an unmounted ext2 filesystem. This interface is now used by |
| 99 | debugfs. |
| 100 | |
| 101 | Added a new libext2fs function for mapping logical block numbers of |
| 102 | a file to a physical block number. |
| 103 | |
| 104 | Added a new libext2fs function, ext2fs_alloc_block(), which allocates |
| 105 | a block, zeros it, and updates the filesystem accounting records |
| 106 | appropriately. |
| 107 | |
| 108 | Added a new libext2fs function, ext2fs_set_bitmap_padding(), which |
| 109 | sets the padding of the bitmap to be all one's. Used by e2fsck pass 5. |
| 110 | |
| 111 | The libext2fs functions now use a set of memory allocation wrapper |
| 112 | functions: ext2fs_get_mem, ext2fs_free_mem, and ext2fs_resize_mem, |
| 113 | instead of malloc, free, and resize. This makes it easier for us to |
| 114 | be ported to strange environments where malloc, et. al. aren't |
| 115 | necessarily available. |
| 116 | |
| 117 | Change the libext2fs fucntion to return ext2-specific error codes |
| 118 | (EXT2_DIR_EXISTS and EXT2_DB_NOT_FOUND, for example) instead of using |
| 119 | and depending on the existence of system error codes (such as EEXIST |
| 120 | and ENOENT). |
| 121 | |
| 122 | Renamed io.h to ext2_io.h to avoid collision with other OS's header |
| 123 | files. |
| 124 | |
| 125 | Add protection against ext2_io.h and ext2fs.h being included multiple |
| 126 | times. |
| 127 | |
| 128 | The types used for memory lengths, etc. have been made more portable. |
| 129 | In generla, the code has been made 16-bit safe. Added Mark |
| 130 | Habersack's contributed DOS disk i/o routines. |
| 131 | |
| 132 | Miscellaneous portability fixes, including not depending on char's |
| 133 | being signed. |
| 134 | |
| 135 | The io_channel structure has a new element, app_data, which is |
| 136 | initialized by the ext2fs routines to contain a copy of the filesystem |
| 137 | handle. |
| 138 | |
| 139 | ext2fs_check_directory()'s callback function may now return the error |
| 140 | EXT2_ET_CALLBACK_NOTHANDLED if it wishes ext2fs_check_directory() to |
| 141 | really do the checking, despite the presence of the callback function. |
| 142 | |
| 143 | |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 144 | E2fsprosg 1.11 (June 17, 1997) |
| 145 | ============================== |
| 146 | |
| 147 | Fixed e2fsck to detect (previously ignored) conflicts between the |
| 148 | superblock or block group descriptors and block bitmaps, inode |
| 149 | bitmaps, and inode tables. |
| 150 | |
| 151 | Fixed bug in e2fsck so that when the message printed out when a block |
| 152 | or inode bitmap conflicts with other data, it has the correct group |
| 153 | number. |
| 154 | |
| 155 | Fixed bug in e2fsck and mke2fs where the blocksize wasn't being passed |
| 156 | to badblocks. This meant that not all of the filesystem was being |
| 157 | tested for bad blocks! |
| 158 | |
| 159 | Fixed an array boundary overrun case which cropped up in |
| 160 | ext2fs_badblocks_list_test when a user tried running "mke2fs -c |
| 161 | -b 4096". |
| 162 | |
| 163 | Adjusted the number of columns printed by mke2fs when displaying the |
| 164 | superblock backups to avoid running over 80 columns when making a |
Theodore Ts'o | 21d5385 | 1998-02-21 03:14:50 +0000 | [diff] [blame] | 165 | really big filesystem. |
Theodore Ts'o | bc21007 | 1997-06-17 05:41:36 +0000 | [diff] [blame] | 166 | |
| 167 | Fixed up the man pages for e2fsck, debugfs, badblocks, chattr, |
| 168 | dumpe2fs, fsck, mke2fs, and tune2fs (typos and other minor grammar |
| 169 | fixes), thanks to some suggestions from Bill Hawes (whawes@star.net). |
| 170 | |
| 171 | Programmer's notes: |
| 172 | ------------------- |
| 173 | |
| 174 | Fixed install rule in lib/ss so that ss_err.h is actually getting |
| 175 | installed. |
| 176 | |
| 177 | Fixed bug in ext2fs_copy_bitmap; the destination bitmap wasn't getting |
| 178 | bassed back to the caller. |
| 179 | |
| 180 | Fixed bug in ext2fs_inode_scan_goto_blockgroup; it had not been |
| 181 | setting the current inode number (which meant this function wasn't |
| 182 | working at all). |
| 183 | |
| 184 | Fixed bug in ext2fs_resize_generic_bitmap; it had not be zeroing all |
| 185 | blocks in the bitmap when increasing the size of the bitmap. |
| 186 | |
| 187 | Changed the initial number of blocks allocated by ext2fs_init_dblist() |
| 188 | to be more realistic. |
| 189 | |
| 190 | Added a new function ext2fs_allocate_group_table, which sets up the |
| 191 | group descriptor information (and allocates inode and block bitmaps, |
| 192 | and inode tables for a particular group). The function was created by |
| 193 | factoring out code form ext2fs_allocate_tables(). |
| 194 | |
| 195 | Added a new function ext2fs_move_blocks which takes a bitmap of the |
| 196 | blocks to be moved, and moves them to another location on the |
| 197 | boardboard. |
| 198 | |
| 199 | Make the unix_io channel's io_channel_flush implementation calls sync() |
| 200 | to to flush the kernel buffers to disk. |
| 201 | |
| 202 | Added a new function ext2fs_dblist_count returns the number of |
| 203 | directory blocks in dblist. |
| 204 | |
| 205 | |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 206 | E2fsprogs 1.10 (April 24, 1997) |
| 207 | =============================== |
| 208 | |
| 209 | Mke2fs once again defaults to creating revision #0 filesystems, since |
| 210 | people were complaining about breaking compatibility with 1.2 kernels. |
| 211 | Warning messages were added to the mke2fs and tune2fs man pages that |
| 212 | the sparse superblock option isn't supported by most kernels yet (1.2 |
| 213 | and 2.0 both don't support parse superblocks.) |
| 214 | |
| 215 | Added new flag to mke2fs, -R <raid options>, which allows the user to |
| 216 | tell mke2fs about the RAID configuration of the filesystem. Currently |
| 217 | the only supported raid option is "stride" which specifies the width |
| 218 | of the RAID stripe. |
| 219 | |
| 220 | Fixed bug in e2fsck where pass1b would bomb out if there were any |
| 221 | blocks marked bad in the inode table. |
| 222 | |
| 223 | Fixed rare bug in mke2fs where if the user had a very unlucky number |
| 224 | of blocks in a filesystem (probability less than .002) the resulting |
| 225 | filesystem would be corrupt in the last block group. |
| 226 | |
| 227 | Fixed bug where if e2fsck tried to allocate a block to fix a |
| 228 | filesystem corruption problem and the filesystem had no free blocks, |
| 229 | ext2fs_new_block() would loop forever. |
| 230 | |
| 231 | The configure script now checks explicitly to see if "-static" works, |
| 232 | since that can't be assumed to be true --- RedHat doesn't install |
| 233 | libc-static by default. |
| 234 | |
| 235 | Fixed bug in libext2's block iterator functions where under some |
| 236 | cirmcustances, file with holes would cause the bcount parameter to the |
| 237 | callback function to be incorrect. This bug didn't affect any of |
| 238 | e2fsprogs programs, but it was discovered by Paul Mackerras, the |
| 239 | author of the PPC boot loader. |
| 240 | |
| 241 | Removed use of static variables to store the inode cache in libext2fs. |
| 242 | This caused problems if more than one filesystem was accessed via |
| 243 | libext2fs (static variables in libraries are generally a bad idea). |
| 244 | Again, this didn't affect e2fsprogs programs, but it was discovered by |
| 245 | Paul Mackerras. |
| 246 | |
| 247 | Fixed minor bugs and version code drift to assure that e2fsprogs 1.10 |
| 248 | will compile cleanly with 1.2.13 kernels (even with a.out shared |
| 249 | libraries!) |
| 250 | |
| 251 | Programmer's notes: |
| 252 | ------------------- |
| 253 | |
| 254 | Added new functions to duplicate an ext2 filesystem handle, and its |
| 255 | associated substructure. New functions: ext2fs_dup_handle(), |
| 256 | ext2fs_copy_dblist(), ext2fs_badblocks_copy(), ext2fs_copy_bitmap(). |
| 257 | Other structures, such as the io_channel and the inode_cache, now have |
| 258 | a ref count so that they only get freed when they are no longer used |
| 259 | by any filesystem handle. (These functions were added as part of the |
| 260 | development effort for an ext2 resizer). |
| 261 | |
Theodore Ts'o | 2ecc6fe | 1997-04-29 17:57:00 +0000 | [diff] [blame] | 262 | E2fsprogs 1.09 (April 14, 1997) |
| 263 | =============================== |
| 264 | |
| 265 | Fixed bug in mke2fs (really in lib/ext2fs/initialize.c) which was |
| 266 | accidentally introduced in the 1.08 release. The overhead calculation |
| 267 | was accidentally removed, which caused ext2fs_initialize() to not |
| 268 | notice when the filesystem size needed to be adjusted down because |
| 269 | there wasn't enough space in the last block group. |
| 270 | |
| 271 | Fixed bug in version parsing library routine; it was always parsing |
| 272 | the library version string, instead of using the passed-in string. |
| 273 | |
| 274 | Clarified chattr man page. |
| 275 | |
Theodore Ts'o | 24757fa | 1997-04-29 17:39:27 +0000 | [diff] [blame] | 276 | E2fsprogs 1.08 (April 10, 1997) |
| 277 | =============================== |
| 278 | |
| 279 | E2fsck 1.07 was very slow when checking very large filesystems with a |
| 280 | lot of files that had hard links (i.e., news spools). This was fixed |
| 281 | by seriously revamping the icount abstraction. Added a formal test |
| 282 | suite for the icount abstraction. |
| 283 | |
| 284 | Debugfs now has a "-l" option to the "ls" command, which lists the |
| 285 | inode number, permissions, owner, group, size, and name of the files |
| 286 | in the directory. |
| 287 | |
| 288 | Fix a bug in e2fsck where when a directory had its blocks moved to |
| 289 | another location during the pass 1b processing, the directory block |
| 290 | list wasn't updated, so pass 2 wouldn't check (and correct) the |
| 291 | correct directory block. |
| 292 | |
| 293 | E2fsck will now treat inodes which contain blocks which are claimed by |
| 294 | the filesystem metadata by treating them as multiply claimed blocks. |
| 295 | This way, the data in those blocks can be copied to a new block during |
| 296 | the pass 1b--1d processing. |
| 297 | |
| 298 | E2fsck will attempt to determine the correct superblock number and |
| 299 | display it in the diagnostic and warning messages if possible. |
| 300 | |
| 301 | Add support for a new (incompatible) feature, "sparse_super". This |
| 302 | feature reduces the number of blocks which contain copies of backup |
| 303 | superblocks and block group descriptors. (It is only an incompatible |
| 304 | feature because of a bug in ext2_free_blocks.) mke2fs and tune2fs now |
| 305 | support a new -s option; e2fsck will recognize filesystems built with |
| 306 | this feature turned on. |
| 307 | |
| 308 | E2fsck now checks the library to make sure is the correct version, |
| 309 | using new library functions. (This helps to diagnose incorrectly |
| 310 | installed e2fsprogs distributions.) |
| 311 | |
| 312 | Dumpe2fs now prints more information; its now prints the the |
| 313 | filesystem revision number, the filesystem sparse_super feature (if |
| 314 | present), the block ranges for each block group, and the offset from |
| 315 | the beginning of the block group. |
| 316 | |
| 317 | Mke2fs now distributes the inode and block bitmap blok so that the |
| 318 | won't be concentrated in one or two disks in RAID/striping setups. |
| 319 | Also, if the user chooses a 2k or 4k block group, mke2fs will try to |
| 320 | choose the largest blocks per group that be chosen. (For 2k blocks, |
| 321 | you can have up to 16384 blocks/group; for 4k blocks, you can have up |
| 322 | to 32768 blocks/group.) Previously mke2fs would not allow |
| 323 | specification of more than 8192 blocks per group, even if you were |
| 324 | using a 2k or 4k block group. |
| 325 | |
| 326 | Programmer's notes: |
| 327 | ------------------- |
| 328 | |
| 329 | Added a new function ext2fs_create_icount2() which takes a "hint" |
| 330 | argument. This hint argument presets the icount array with the list |
| 331 | of inodes which actually need to be in the icount array. This really |
| 332 | helps to speed up e2fsck. |
| 333 | |
| 334 | Added a new function ext2fs_icount_validate() which checks the rep |
| 335 | invariant for the icount structure. This is used mostly for testing. |
| 336 | |
| 337 | The error mesasage given when a bad inode number is passed to |
| 338 | test_generic_bitmap to reflect EXT2FS_TEST_ERROR (instead of |
| 339 | EXT2FS_UNMARK_ERROR). |
| 340 | |
| 341 | Added a new function ext2fs_set_dir_block which sets the block of a |
| 342 | dblist entry, given the directory inode and blockcnt. |
| 343 | |
| 344 | Added a new function ext2fs_get_library_version() which returns the |
| 345 | current library version, and ext2fs_parse_version_string() which |
| 346 | returns a version number based on a e2fsprogs version string. |
| 347 | |
| 348 | The icount functions will return EINVAL if the passed in inode number |
| 349 | is out of bounds. |
| 350 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 351 | E2fsprogs 1.07 (March 9, 1997) |
| 352 | ============================== |
| 353 | |
| 354 | E2fsck is now uses much less memory when checking really large |
| 355 | filesystems (or rather, filesystems with a large number of inodes). |
| 356 | Previously a filesystem with 1 million inodes required 4 megabytes of |
| 357 | memory to store inode count statistics; that storage requirement has |
| 358 | now been reduced to roughly half a megabyte. |
| 359 | |
| 360 | E2fsck can now properly deal with bad blocks appearing inside the |
| 361 | inode table. Instead of trying to relocate the inode table (which |
| 362 | often failed because there wasn't enough space), the inodes in the bad |
| 363 | block are marked as in use. |
| 364 | |
| 365 | E2fsck will automatically try to use the backup superblocks if the |
| 366 | primary superblocks have a bad magic number or have missing meta-data |
| 367 | blocks (or meta-data blocks which are out of range). |
| 368 | |
| 369 | E2fsck's pass 3 has been made more efficient; most noticeable on |
| 370 | filesystems with a very large number of directories. |
| 371 | |
| 372 | Completely revamped e2fsck's system of printing problem reports. It |
| 373 | is now table driven, to make them more easily customizeable and |
| 374 | extendable. Error messages which can be printed out during preen mode |
| 375 | are now one line long. |
| 376 | |
| 377 | Fixed e2fsck's filesystem swapping code so that it won't try to swap |
| 378 | fast symbolic links or deleted files. |
| 379 | |
| 380 | Fixed e2fsck core dumping when fixing a filesystem which has no |
| 381 | directories (not even a root directory). |
| 382 | |
| 383 | Added a check to e2fsck to make sure that the length of every |
| 384 | directory entry is a multiple of 4 (since the kernel complains if it |
| 385 | isn't). |
| 386 | |
| 387 | Added a check to e2fsck to make sure that a directory entry isn't a |
| 388 | link to the root directory, since that isn't allowed. |
| 389 | |
| 390 | Added a check to e2fsk to now make sure the '.' and '..' directory |
| 391 | entries are null terminated, since the 2.0 kernel requires it. |
| 392 | |
| 393 | Added check to write_bitmaps() to make sure the superblock doesn't get |
| 394 | trashed if the inode or block bitmap is marked as being block zero. |
| 395 | |
| 396 | Added checking of the new feature set fields in the superblock, to |
| 397 | avoid dealing with new filesystem features that this package wasn't |
| 398 | set up to handle. |
| 399 | |
| 400 | Fixed a fencepost error in ext2fs_new_block() which would occasionally |
| 401 | try to allocate a block beyond the end of a filesystem. |
| 402 | |
| 403 | When the UUID library picks a random IEEE 802 address (because it |
| 404 | can't find one from a network card), it sets the multicast bit, to |
| 405 | avoid conflicting with a legitimate IEEE 802 address. |
| 406 | |
| 407 | Mke2fs now sets the root directory's owner to be the real uid of the |
| 408 | user running mke2fs. If the real uid is non-zero, it also sets |
| 409 | the group ownership of the root directory to be the real group-id of |
| 410 | the user running mke2fs. |
| 411 | |
| 412 | Mke2fs now has more intelligent error checking when it is given a |
| 413 | non-existent device. |
| 414 | |
| 415 | When badblocks is given the -vv option, it now updates the block that |
| 416 | it is currently testing on every block. |
| 417 | |
| 418 | Fixed a bug in fsck where it wouldn't modify the PATH envirnoment |
| 419 | currently correctly if PATH wasn't already set. |
| 420 | |
| 421 | Shared libraries now built with dependencies. This allows the shared |
| 422 | library files to be used with dlopen(); it also makes the transition |
| 423 | to libc 6 easier, since ld.so can tell which libc a particular shared |
| 424 | library expects to use. |
| 425 | |
| 426 | Programmer's notes: |
| 427 | ------------------- |
| 428 | |
| 429 | Added new abstraction (defined in dblist.c) for maintaining a list of |
| 430 | blocks which belongs to directories. This is used in e2fsck and other |
| 431 | programs which need to iterate over all directories. |
| 432 | |
| 433 | Added new functions which test to see if a contiguous range of blocks |
| 434 | (or inodes) are available. (ext2fs_*_bitmap_range). |
| 435 | |
| 436 | Added new function (ext2_inode_has_valid_blocks) which returns true if |
| 437 | an inode has valid blocks. (moved from e2fsck code). |
| 438 | |
| 439 | Added new function (ext2fs_allocate_tables) which allocates the |
| 440 | meta-data blocks as part of initializing a filesystem. (moved from |
| 441 | mke2fs code). |
| 442 | |
| 443 | Added a new I/O manager for testing purposes. It will either allow a |
| 444 | program to intercept I/O requests, or print debugging messages to |
| 445 | trace the activity of a program using the I/O manager. |
| 446 | |
| 447 | The badblocks_list functions now store the bad blocks in a sorted |
| 448 | order, and use a binary search to speed up badblocks_list_test. |
| 449 | |
| 450 | The inode scan function ext2fs_get_next_inode() may now return a soft |
| 451 | error returns: MISSING_INODE_TABLE and BAD_BLOCK_IN_INODE_TABLE in |
| 452 | those cases where part of an inode table is missing or there is a bad |
| 453 | block in the inode table. |
| 454 | |
| 455 | Added a new function (ext2fs_block_iterate2) which adds new arguments to |
| 456 | the callback function to return a pointer (block and offset) to the |
| 457 | reference of the block. |
| 458 | |
| 459 | Added new function (ext2fs_inode_scan_goto_blockgroup) which allows an |
| 460 | application to jump to a particular block group while doing an inode |
| 461 | scan. |
| 462 | |
| 463 | The badblocks list functions were renamed from badblocks_* to |
| 464 | ext2fs_badblocks_*. Backwards compatibility functions are available |
| 465 | for now, but programs should be modified to use the new interface. |
| 466 | |
| 467 | Some of the library functions were reorganized into separate files to |
| 468 | reduce the size of some programs which statically link against the |
| 469 | ext2 library. |
| 470 | |
| 471 | Put in some miscellaneous fixes for the Alpha platform. |
| 472 | |
Theodore Ts'o | 5c57647 | 1997-04-29 15:29:49 +0000 | [diff] [blame] | 473 | |
| 474 | E2fsprogs 1.06 (October 7, 1996) |
| 475 | ================================ |
| 476 | |
| 477 | Fixed serious bug in e2fsck: if the block descriptors are bad, don't |
| 478 | smash the backup copies in ext2fs_close(). (The problem was that when |
| 479 | e2fsck -p discovered the problem, while it was closing the filesystem |
| 480 | and exiting, it was also blowing away the backup superblocks on the |
| 481 | disk, which was less than friendly.) We now make it the case that we |
| 482 | only write out the backup superblock and the back block descriptors if |
| 483 | the filesystem is completely free from problems. |
| 484 | |
| 485 | Fixed a bug in block_interate in the lib/ext2fs library which caused |
| 486 | e2fsck to fail on GNU Hurd-created filesystems. |
| 487 | |
| 488 | Add support for Linux/FT's bootloader, which actually uses |
| 489 | EXT2_BOOT_LOADER, and sets its mode bits which caused e2fsck to want |
| 490 | to clear the inode. |
| 491 | |
| 492 | Add support for the "A" (no atime update) attribute. (Note: this |
| 493 | attribute is not yet in production kernels.) |
| 494 | |
| 495 | The test suite is not automatically run when doing a "make all" from |
| 496 | the top level directory. Users should manually run "make check" if |
| 497 | they wish to run the test suite. |
| 498 | |
| 499 | Upon a preenhalt(), make the printed message more explicit that |
| 500 | running e2fsck "MANAULLY" means without the -p or -a options. |
| 501 | |
| 502 | In e2fsck, if a disconnected inode is zero-length, offer to clear it |
| 503 | instead of offering to connect it to lost+found. |
| 504 | |
| 505 | In e2fsck, if a filesystem was just unmounted uncleanly, and needs |
| 506 | e2fsck to be run over it, change e2fsck to explicitly display this |
| 507 | fact. |
| 508 | |
| 509 | For dumpe2fs and e2fsck, cause the -V option to print out which |
| 510 | version of the ext2fs library is actually getting used. (This will |
| 511 | help detect mismatches of using a 1.06 utility with a 1.05 library, |
| 512 | etc.) |
| 513 | |
| 514 | Programmers' notes: |
| 515 | ------------------- |
| 516 | |
| 517 | EXT2_SWAP_BYTES was changed to EXT2_FLAG_SWAP_BYTES, which better fits |
| 518 | the naming convention. |
| 519 | |
| 520 | In ext2fs_initialize(), make sure the description for the inode bitmap |
| 521 | is correctly initialize. |
| 522 | |
| 523 | Fixed minor type typo in ext2fs_allocate_generic_bitmap(); |
| 524 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 525 | E2fsprogs 1.05 (September 7, 1996) |
| 526 | ================================== |
| 527 | |
| 528 | Add support for new fields in the ext2 superblock --- volume name, |
| 529 | volume UUID, and last mounted field. Dumpe2fs displays these fields, |
| 530 | tune2fs and mke2fs allows you to set them. E2fsck will automatically |
| 531 | generate a UUID for those volumes that don't have them. |
| 532 | |
| 533 | Put in support for e2fsck to recognize HURD specific ext2 features --- |
| 534 | most notably, the translator block. The e2fsprogs tools will now use |
| 535 | the creator_os field in the superblock to correctly handle different |
| 536 | OS-specific variants of the ext2 filesystem. |
| 537 | |
| 538 | E2fsck now fixes inodes which have a the deletion time set, but which |
| 539 | have a non-zero i_link_count field by offering to clear the deletion |
| 540 | time. Previously e2fsck assumed that the inode was deleted (per 0.3c |
| 541 | ext2 kernel behavior) and offered to unlink the file. |
| 542 | |
| 543 | If e2fsck sets the clean bit, but nothing else, set the exit code |
| 544 | FSCK_NONDESTRUCT. After all, e2fsck did fix a filesystem error --- it |
| 545 | set the filesystem valid bit when it was previously cleared. :-) This |
| 546 | was needed to make the HURD fsck driver happy. |
| 547 | |
| 548 | If the user refuses to attach an unattached inode, e2fsck will no |
| 549 | longer set the inode's link count. Otherwise, the inode would end up |
| 550 | getting marked as unused, which might cause loss of data later. |
| 551 | |
| 552 | Make the message issued by e2fsck when the superblock is corrupt less |
| 553 | confusing for users. It now mentions that another reason for the |
| 554 | "corrupt superblock" message might be that the partition might not be |
| 555 | an ext2 filesystem at all (it might swap, msdos filesystem, ufs, etc.) |
| 556 | |
| 557 | Make the libext2 library more robuest so that e2fsck won't coredump on |
| 558 | an illegal superblock where the blocksize is zero. (f_crashdisk is |
| 559 | the test case). |
| 560 | |
| 561 | By default, create filesystems where the default checkinterval is 6 |
| 562 | months (180 days). Linux servers can be robust enough that 20 reboots |
| 563 | can be a long, long time. |
| 564 | |
| 565 | Added configure flag --enable-old-bitops, which forces the bitops to |
| 566 | use the old (native) bitmask operations. By default on the sparc |
| 567 | platform, the standard ext2 bit ordering is now used. |
| 568 | |
| 569 | Added a new feature to e2fsck to byte-swap filesystems; this can be |
| 570 | used to convert old m68k filesystems to use the standard byte-order |
| 571 | storage for the superblock, inodes, and directory blocks. This |
| 572 | function is invoked by using the '-s' option to e2fsck. |
| 573 | |
| 574 | Debugfs's "dump" command has been enhanced so that it writes out the |
| 575 | exact size of the file so that the nulls at the end of the file are |
| 576 | eliminated. The command also accept a new "-p" option which will |
| 577 | attempt preserve to preserve the ownernship, permissions, and |
| 578 | file modification/access times. |
| 579 | |
| 580 | Debugfs has two new options, -f and -R. The -R option allows the user |
| 581 | to execute a single debugfs command from the command line. The -f |
| 582 | option allows the user to specify a "command file" containing debugfs |
| 583 | commands which will get executed. |
| 584 | |
| 585 | Dumpe2fs now pretty prints the check interval, instead of just |
| 586 | printing the check interval as a number of seconds. |
| 587 | |
| 588 | Fix bugs in debugfs: the params command when no filesystem is opened |
| 589 | no longer causes a core dump. It is now possible to unlink a file |
| 590 | when a pathame containing a '/' is specified. |
| 591 | |
| 592 | Tune2fs has a new -C option which sets the number of times the |
| 593 | filesystem has been mounted. |
| 594 | |
| 595 | Fix the chattr '-v' option so that it actually works. Chattr was |
| 596 | being buggy about the -v option parsing. |
| 597 | |
| 598 | Programmers' notes: |
| 599 | ------------------- |
| 600 | |
| 601 | The directory lib/uuid contains a set of library routines to generate |
| 602 | DCE compatible UUIDs. |
| 603 | |
| 604 | Extended ext2fs_namei() to handle symbolic links. Added new function |
| 605 | ext2fs_nami_follow() which will follow last symbolic link in the case |
| 606 | where the pathname points to a sym link. |
| 607 | |
| 608 | The ext2fs_block_iterate function will now return the HURD translator |
| 609 | block, if present. The new flag BLOCK_FLAG_DATA_ONLY will cause the |
| 610 | iterator to return data blocks only. The ext2fs.h file now defines |
| 611 | constants BLOCK_COUNT_IND, BLOCK_COUNT_DIND, BLOCK_COUNT_TIND, and |
| 612 | BLOCK_COUNT_TRANSLATOR, which are the magic values passed in the block |
| 613 | count field of the iterator callback function. |
| 614 | |
| 615 | The test script driver now takes an optional second argument, which is |
| 616 | the test case to be run. This allows you to run a test case without |
| 617 | needing to run the entire test suite. |
| 618 | |
| 619 | On Linux ELF systems, install the .so files in the correct places |
| 620 | (/usr/lib). The .so files must be stored in the same directory as the |
| 621 | .a files. |
| 622 | |
| 623 | Fixed miscellaneous HURD compilation issues with header file being |
| 624 | included in the right order. |
| 625 | |
| 626 | Fixed debugfs so that it resets optind to zero, not one, since setting |
| 627 | optind to zero is more correct. |
| 628 | |
| 629 | |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 630 | E2fsprogs 1.04 (May 16, 1996) |
| 631 | ============================= |
| 632 | |
| 633 | First "official" (1.03 was a limited release only) to support building |
| 634 | e2fsprogs under Linux 2.0 kernels (as well as late model 1.3 and 1.99 |
| 635 | kernels). |
| 636 | |
| 637 | This package includes a RPM specs file, that it can be built using the |
| 638 | RedHat Package Manager. |
| 639 | |
| 640 | E2fsck now prints a hint that if there are lots of incorrectly located |
| 641 | inode bitmaps, block bitmaps, and inode table blocks, the user might |
| 642 | want to try using e2fsck -b 8193 first, to see if that fares any |
| 643 | better. |
| 644 | |
| 645 | For ext2 filesystem written with the hurd, debugfs will now print out |
| 646 | the translator field when printing an inode structure. |
| 647 | |
| 648 | Lots of miscellaneous linking/installation cleanups: |
| 649 | |
| 650 | Libraries are now linked using a relative pathname, instead of |
| 651 | relying on -L working correct. It doesn't, in many cases, including |
| 652 | current versions of GNU ld. This guarantees that the build tree is |
| 653 | linking with the right libraries, instead of the ones installed in |
| 654 | /usr/lib. |
| 655 | |
| 656 | Header files, man pages, and the et/ss shell scripts are now |
| 657 | generated using a custom substitution script, instead of relying on |
| 658 | the configure script. This prevents needless recompilation of |
| 659 | files; in addition, the custom substitution script is much faster. |
| 660 | |
| 661 | e2fsck may now be linked dynamically, by using the |
| 662 | --enable-dynamic-e2fsck flag to configure. This is not recommended, |
| 663 | since it increases e2fsck's dependence on other files, but some |
| 664 | people need to save disk space, and other critical programs on their |
| 665 | systems were being linked dynamically anyway. |
| 666 | |
| 667 | Programs such as fsck which didn't need to be linked against |
| 668 | libext2fs (or mke2fs which didn't need to be linked against libe2p) |
| 669 | only link against libraries they actually need. Otherwise, those |
| 670 | programs would require the presense of libraries that otherwise |
| 671 | could be removed from a rescuse diskette. |
| 672 | |
| 673 | The ss include files are now installed correctly so they can |
| 674 | actually be used by another package. |
| 675 | |
| 676 | If the profiling libraries are built, they are now installed on a |
| 677 | "make install-libs". |
| 678 | |
| 679 | |
Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 680 | E2fsprogs 1.03 (March 27, 1996) |
| 681 | =============================== |
| 682 | |
| 683 | Change the m68k bit numbering for bitmasks to match the bit numbering |
| 684 | used by all other ext2 implementations. (This change was requested by |
| 685 | the m68k kernel development team.) |
| 686 | |
| 687 | Support (in-development) filesystem format revision which supports |
| 688 | (among other things) dynamically sized inodes. |
| 689 | |
| 690 | Fixed a bug in the ext2 library so that an intelligent error is |
| 691 | returned if mke2fs is run with a ridiculously small number of blocks |
| 692 | for a partition. |
| 693 | |
| 694 | Fixed a bug in the ext2 library which required that the device be |
| 695 | openable in read/write mode in order to determine its size. This |
| 696 | caused e2fsck -n to require read/write access when it was not |
| 697 | previously necessary. |
| 698 | |
| 699 | Fixed a bug in e2fsck which casued it to occasionally fail the test |
| 700 | suite depending on which version of the floating point library it was |
| 701 | using. |
| 702 | |
| 703 | Fixed a bug in e2fsck so that it now halts with a fatal error when |
| 704 | certain superblock consistency checks fail. Previously it continued |
| 705 | running e2fsck, with some potential confusing/damaging consequences. |
| 706 | |
| 707 | Added new flag to fsck which allows the root to be checked in parallel |
| 708 | with other filesytems. This is not the safest thing in the world to |
| 709 | do, but some system administrators really wanted it. |
| 710 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 711 | Fixed -Wall flames in lib/ss. |
| 712 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 713 | |
| 714 | E2fsprogs 1.02 (January 16, 1996) |
| 715 | ================================= |
| 716 | |
| 717 | Fix to allow e2fsprogs to be compiled on recent 1.3 (pl45+) kernels. |
| 718 | |
| 719 | Change e2fsck to print statistics of how many non-contiguous files are |
| 720 | on the system. Note that a file which is larger than 8k blocks, it is |
| 721 | guaranteed to be non-contiguous. |
| 722 | |
| 723 | In mke2fs, print a warning message if a user tries to format a whole |
| 724 | disk (/dev/hda versus /dev/hda1). If a user really wants to format a |
| 725 | whole disk, the -F (force) option forces mke2fs to format a whole disk |
| 726 | as a filesytem. |
| 727 | |
| 728 | Fix a bug in fsck where in some cases it might start checking |
| 729 | partitions in the next pass before it finishes checking partitions in |
| 730 | the current pass. This still won't cause two partitions on the same |
| 731 | disk will be checked, so it's rarely a problem in real life. |
| 732 | |
| 733 | Patch lsattr so that it won't hang when checking a named pipe. |
| 734 | |
| 735 | Minor compilation fixes: |
| 736 | * Fix the order of libraries that were linked in debugfs. |
| 737 | * Allow the sources to be compiled with -ansi turned on. |