1*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.21 (June 15, 2001) 2*6a54128fSAndroid Build Coastguard Worker============================== 3*6a54128fSAndroid Build Coastguard Worker 4*6a54128fSAndroid Build Coastguard WorkerAdded new configure flags which allow a subset e2fsprogs to be built; 5*6a54128fSAndroid Build Coastguard Workerthis is most useful for boot floppies, since the resulting shared 6*6a54128fSAndroid Build Coastguard Workerlibraries and programs are slimmed down by removing features that 7*6a54128fSAndroid Build Coastguard Workeraren't necessary for a boot floppy. The new flags that were added 8*6a54128fSAndroid Build Coastguard Workerare: --disable-swapfs, which removes support for byte swapping old 9*6a54128fSAndroid Build Coastguard Workerlegacy PPC/68k filesystems, --disable-debugfs, which removes support 10*6a54128fSAndroid Build Coastguard Workerfor debugfs from the libext2fs library, --disable-imager, which 11*6a54128fSAndroid Build Coastguard Workerremoves support for the e2image program, and --disable-resizer, which 12*6a54128fSAndroid Build Coastguard Workerremoves support for resize2fs. 13*6a54128fSAndroid Build Coastguard Worker 14*6a54128fSAndroid Build Coastguard WorkerE2fsck now prints the number of mounts or days elapsed since the last 15*6a54128fSAndroid Build Coastguard Workercheck when e2fsck is forced to check an otherwise clean filesystem. 16*6a54128fSAndroid Build Coastguard Worker 17*6a54128fSAndroid Build Coastguard WorkerTune2fs now prints an informative message about how often a filesystem 18*6a54128fSAndroid Build Coastguard Workerwill be checked when adding a journal to the filesystem, to remind the 19*6a54128fSAndroid Build Coastguard Workeruser that he/she may want to adjust those parameters using tune2fs 20*6a54128fSAndroid Build Coastguard Worker-c/-i. 21*6a54128fSAndroid Build Coastguard Worker 22*6a54128fSAndroid Build Coastguard WorkerWorked around hurd brain-damage which causes e2fsck to sometimes 23*6a54128fSAndroid Build Coastguard Workerbelieve a filesystem is the root filesystem based on device numbers 24*6a54128fSAndroid Build Coastguard Worker(since Hurd doesn't have dev_t's, which is arguably a POSIX.1 25*6a54128fSAndroid Build Coastguard Workerviolation). 26*6a54128fSAndroid Build Coastguard Worker 27*6a54128fSAndroid Build Coastguard WorkerFixed a bug introduced in 1.20 which caused e2fsck to abort with an 28*6a54128fSAndroid Build Coastguard Workererroneous error with the -F option was specified. 29*6a54128fSAndroid Build Coastguard Worker 30*6a54128fSAndroid Build Coastguard WorkerFixed a ext3 recovery bug in the revoke handling; synchronized with 31*6a54128fSAndroid Build Coastguard Workerext3 0.7a. 32*6a54128fSAndroid Build Coastguard Worker 33*6a54128fSAndroid Build Coastguard WorkerFixed two bugs in e2fsck's handling of dup block handling, dealing 34*6a54128fSAndroid Build Coastguard Workerwith relatively uncommon edge cases: a directory with an indirect 35*6a54128fSAndroid Build Coastguard Workerblock which is claimed by another file, and when the last inode in the 36*6a54128fSAndroid Build Coastguard Workerfilesystem has blocks claimed by another file. 37*6a54128fSAndroid Build Coastguard Worker 38*6a54128fSAndroid Build Coastguard WorkerE2fsck now checks to see if the i_size field of a fast symlink is too 39*6a54128fSAndroid Build Coastguard Workerbig, and offers to clear the symlink if so. 40*6a54128fSAndroid Build Coastguard Worker 41*6a54128fSAndroid Build Coastguard WorkerE2fsck now checks to see if i_size_high of special files is non-zero, 42*6a54128fSAndroid Build Coastguard Workerand offers to clear i_size_high. 43*6a54128fSAndroid Build Coastguard Worker 44*6a54128fSAndroid Build Coastguard WorkerFix e2fsck's handling of incompatible journal flags so that the user 45*6a54128fSAndroid Build Coastguard Workerhas chance to abort, and then has the option to clear out the journal 46*6a54128fSAndroid Build Coastguard Workerentirely. (Addresses Debian bug #98527.) 47*6a54128fSAndroid Build Coastguard Worker 48*6a54128fSAndroid Build Coastguard WorkerFixed a bug in fsck which could cause it to core dump if a mix of 49*6a54128fSAndroid Build Coastguard Workerstandard and non-standard device names are used in /etc/fstab. 50*6a54128fSAndroid Build Coastguard Worker(Debian bug #100559) 51*6a54128fSAndroid Build Coastguard Worker 52*6a54128fSAndroid Build Coastguard WorkerFixed a bug in debugfs which caused read errors when copying a file to 53*6a54128fSAndroid Build Coastguard Workernot be noticed. 54*6a54128fSAndroid Build Coastguard Worker 55*6a54128fSAndroid Build Coastguard WorkerThe debugfs set_super_value command can now modify the s_lastcheck field. 56*6a54128fSAndroid Build Coastguard Worker 57*6a54128fSAndroid Build Coastguard WorkerFixed a bug in lsattr and chattr which was accidentally introduced in 58*6a54128fSAndroid Build Coastguard Worker1.20 to support > 2GB files; both lsattr and chattr wasn't reading 59*6a54128fSAndroid Build Coastguard Workerdirectories correctly because the change modified the layout of struct 60*6a54128fSAndroid Build Coastguard Workerdirent to be incompatible with the libe2p shared library. 61*6a54128fSAndroid Build Coastguard Worker 62*6a54128fSAndroid Build Coastguard WorkerCleaned up the mke2fs manual page and included a discussion about why 63*6a54128fSAndroid Build Coastguard Workerit's good to periodically check the filesystem even when journalling is 64*6a54128fSAndroid Build Coastguard Workerenabled. 65*6a54128fSAndroid Build Coastguard Worker 66*6a54128fSAndroid Build Coastguard WorkerProgrammer's notes: 67*6a54128fSAndroid Build Coastguard Worker------------------- 68*6a54128fSAndroid Build Coastguard Worker 69*6a54128fSAndroid Build Coastguard WorkerFix general gcc -Wall complaints. 70*6a54128fSAndroid Build Coastguard Worker 71*6a54128fSAndroid Build Coastguard WorkerThe types needed by the ext2 header files are now provided by 72*6a54128fSAndroid Build Coastguard Workerlib/ext2fs/ext2_types.h, instead of include/asm/types.h. 73*6a54128fSAndroid Build Coastguard Worker 74*6a54128fSAndroid Build Coastguard WorkerIntegers are now preferred to longs when trying to find a 32-bit type 75*6a54128fSAndroid Build Coastguard Workerin ext2_types.h. Also, if linux/types.h has already been defined, 76*6a54128fSAndroid Build Coastguard Workerdon't try to redefine the types. 77*6a54128fSAndroid Build Coastguard Worker 78*6a54128fSAndroid Build Coastguard WorkerFixed make depend script so that it automatically corrects the 79*6a54128fSAndroid Build Coastguard Workerpathname cleanups performed by make -M, so I don't have to fix them up 80*6a54128fSAndroid Build Coastguard Workerby hand. 81*6a54128fSAndroid Build Coastguard Worker 82*6a54128fSAndroid Build Coastguard WorkerFixed the d_loaddump test case to be more robust, and not depend on 83*6a54128fSAndroid Build Coastguard Workerbash'isms. 84*6a54128fSAndroid Build Coastguard Worker 85*6a54128fSAndroid Build Coastguard WorkerRemoved debugfs's dependence on pread(), which was accidentally 86*6a54128fSAndroid Build Coastguard Workerintroduced in e2fsprogs 1.20 87*6a54128fSAndroid Build Coastguard Worker 88*6a54128fSAndroid Build Coastguard WorkerFixed a performance bug in the libext2fs's icount routine; the size 89*6a54128fSAndroid Build Coastguard Workerestimate of the icount array was incorrectly being calculated. 90*6a54128fSAndroid Build Coastguard Worker 91*6a54128fSAndroid Build Coastguard WorkerRemoved use of the badblocks compatibility functions in the e2fsprogs 92*6a54128fSAndroid Build Coastguard Workerprograms. 93*6a54128fSAndroid Build Coastguard Worker 94*6a54128fSAndroid Build Coastguard WorkerAdded paranoia code which protects against strange cases where /etc 95*6a54128fSAndroid Build Coastguard Workerisn't on the root filesystem, or if /etc/mtab doesn't exist. 96*6a54128fSAndroid Build Coastguard Worker 97*6a54128fSAndroid Build Coastguard WorkerThe header file ext2_types.h is now installed. 98*6a54128fSAndroid Build Coastguard Worker 99*6a54128fSAndroid Build Coastguard WorkerAutoconf is used to determine when we are on big-endian machines, 100*6a54128fSAndroid Build Coastguard Workerinstead of doing run-time tests, to save a few bytes of code. 101*6a54128fSAndroid Build Coastguard Worker 102*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_mark_generic_bitmap and ext2fs_unmark_generic_bitmap 103*6a54128fSAndroid Build Coastguard Workerfunctions are no longer inline functions, which saves space and 104*6a54128fSAndroid Build Coastguard Workerdoesn't really cost any real performance. 105*6a54128fSAndroid Build Coastguard Worker 106*6a54128fSAndroid Build Coastguard WorkerThe ext2fs library no longer depends on the e2p library. (What need 107*6a54128fSAndroid Build Coastguard Workerthere was of it --- namely, fsetflags, was coded in-line). 108*6a54128fSAndroid Build Coastguard Worker 109*6a54128fSAndroid Build Coastguard WorkerFixed the makefile so that lib/ext2fs/ext2_types.h is generated even 110*6a54128fSAndroid Build Coastguard Workerwhen the user is stupid and tries compiling the package using "make 111*6a54128fSAndroid Build Coastguard Workerinstall" as root. 112*6a54128fSAndroid Build Coastguard Worker 113*6a54128fSAndroid Build Coastguard WorkerMiscellaneous code cleanups: 114*6a54128fSAndroid Build Coastguard Worker * Added missing files from Makefile.in's SRCS file, so that 115*6a54128fSAndroid Build Coastguard Worker their dependencies would be properly calculated. 116*6a54128fSAndroid Build Coastguard Worker * Removed redundant code 117*6a54128fSAndroid Build Coastguard Worker * Fixed comments in code 118*6a54128fSAndroid Build Coastguard Worker * Removed no-longer needed argsused #pragma. 119*6a54128fSAndroid Build Coastguard Worker 120