1*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.13 (May 17, 2015) 2*6a54128fSAndroid Build Coastguard Worker================================ 3*6a54128fSAndroid Build Coastguard Worker 4*6a54128fSAndroid Build Coastguard WorkerFixed a potential buffer overflow while closing a file system in 5*6a54128fSAndroid Build Coastguard Workerlibext2fs. (CVE-2015-1572, Addresses Debian Bug: #778948) 6*6a54128fSAndroid Build Coastguard Worker 7*6a54128fSAndroid Build Coastguard WorkerFixed a bug which could cause e2fsck to corrupt Hurd file systems. 8*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #760275) 9*6a54128fSAndroid Build Coastguard Worker 10*6a54128fSAndroid Build Coastguard WorkerFixed a deadlock which occurs when using systemd and e2fsck.conf's 11*6a54128fSAndroid Build Coastguard Workerlogging feature. (Addresses Debian Bug: #775234) 12*6a54128fSAndroid Build Coastguard Worker 13*6a54128fSAndroid Build Coastguard WorkerFixed a bug which could cause programs using libext2's inode table 14*6a54128fSAndroid Build Coastguard Workerscanning functions from crashing on certain corrupted file systems. 15*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #773795) 16*6a54128fSAndroid Build Coastguard Worker 17*6a54128fSAndroid Build Coastguard WorkerFixed dumpe2fs so it won't crash if the user doesn't specify a block 18*6a54128fSAndroid Build Coastguard Workerdevice (file system). (Addresses Debian Bug: #764293) 19*6a54128fSAndroid Build Coastguard Worker 20*6a54128fSAndroid Build Coastguard WorkerFixed e2fsck so if it notices unexpected HTREE blocks in pass 2, it 21*6a54128fSAndroid Build Coastguard Workerwill report the correct directory inode containing the inconsistency. 22*6a54128fSAndroid Build Coastguard Worker 23*6a54128fSAndroid Build Coastguard WorkerIf e2fsck fails to grow the dir_info structure due realloc(3) not 24*6a54128fSAndroid Build Coastguard Workerhaving enough memory, it will now fail with explanatory message 25*6a54128fSAndroid Build Coastguard Workerinstead of staggering on failing with a confusing internal error 26*6a54128fSAndroid Build Coastguard Workermessages. 27*6a54128fSAndroid Build Coastguard Worker 28*6a54128fSAndroid Build Coastguard WorkerThe tune2fs program will zero out the superblock journal backup 29*6a54128fSAndroid Build Coastguard Workerinformation when removing a journal from a file system. 30*6a54128fSAndroid Build Coastguard Worker 31*6a54128fSAndroid Build Coastguard WorkerThe mke2fs program now enables the large_file feature by default. 32*6a54128fSAndroid Build Coastguard Worker 33*6a54128fSAndroid Build Coastguard WorkerFixed a bug which could cause badblocks to crash if there are millions 34*6a54128fSAndroid Build Coastguard Workerand millions of bad blocks. 35*6a54128fSAndroid Build Coastguard Worker 36*6a54128fSAndroid Build Coastguard WorkerFixed some use-after-free bug in resize2fs and e2fsck. 37*6a54128fSAndroid Build Coastguard Worker 38*6a54128fSAndroid Build Coastguard WorkerFixed a memory leak in tune2fs. 39*6a54128fSAndroid Build Coastguard Worker 40*6a54128fSAndroid Build Coastguard WorkerFixed some bigendian bugs that had crept into both indirect and extent 41*6a54128fSAndroid Build Coastguard Workerhandling inside libext2fs. 42*6a54128fSAndroid Build Coastguard Worker 43*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. 44*6a54128fSAndroid Build Coastguard Worker 45*6a54128fSAndroid Build Coastguard WorkerUpdate Esperanto, German, and Spanish translations. Added Danish 46*6a54128fSAndroid Build Coastguard Workertranslation. 47*6a54128fSAndroid Build Coastguard Worker 48*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 49*6a54128fSAndroid Build Coastguard Worker------------------ 50*6a54128fSAndroid Build Coastguard Worker 51*6a54128fSAndroid Build Coastguard WorkerFixed coverity, sparse, gcc -Wall, and clang warnings/nits. 52*6a54128fSAndroid Build Coastguard Worker 53*6a54128fSAndroid Build Coastguard WorkerClean up some build system problems (build failures with various 54*6a54128fSAndroid Build Coastguard Workerconfigure options, fix Posix portability issues, etc.) 55*6a54128fSAndroid Build Coastguard Worker 56*6a54128fSAndroid Build Coastguard WorkerThe functions ext2fs_inode_alloc_stats[2]() and 57*6a54128fSAndroid Build Coastguard Workerext2fs_block_alloc_stats[2]() now check the inode and block numbers 58*6a54128fSAndroid Build Coastguard Workerpassed to them, to avoid crashes caused by buggy callers. 59*6a54128fSAndroid Build Coastguard Worker 60*6a54128fSAndroid Build Coastguard WorkerThe libext2fs directory iterator will now check for an invalid 61*6a54128fSAndroid Build Coastguard Workerdirectory entry length instead of possibly walking off the end of the 62*6a54128fSAndroid Build Coastguard Workerdirectory buffer. 63*6a54128fSAndroid Build Coastguard Worker 64*6a54128fSAndroid Build Coastguard Worker 65*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.12 (August 25, 2014) 66*6a54128fSAndroid Build Coastguard Worker=================================== 67*6a54128fSAndroid Build Coastguard Worker 68*6a54128fSAndroid Build Coastguard WorkerFix various e2fsck bugs when trying to repair bigalloc file systems. 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard WorkerE2fsck can now repair a file system with an overly large 71*6a54128fSAndroid Build Coastguard Workers_first_meta_bg field, which had previously caused all e2fsprogs 72*6a54128fSAndroid Build Coastguard Workerprograms to crash when trying to open such a file system. 73*6a54128fSAndroid Build Coastguard Worker 74*6a54128fSAndroid Build Coastguard WorkerFix e2fsck so that it can correctly fix a number of rare file system 75*6a54128fSAndroid Build Coastguard Workercorruptions that were discovered when using a file system fuzzer. 76*6a54128fSAndroid Build Coastguard Worker 77*6a54128fSAndroid Build Coastguard WorkerFix e2fsck so it does not try to write back block group descriptors if 78*6a54128fSAndroid Build Coastguard Workerthey have not been modified. 79*6a54128fSAndroid Build Coastguard Worker 80*6a54128fSAndroid Build Coastguard WorkerMke2fs program will now place metadata blocks in the last flex_bg so 81*6a54128fSAndroid Build Coastguard Workerthey are contiguous. This reduces free space fragmentation in a 82*6a54128fSAndroid Build Coastguard Workerfreshly created file system, as well as allowing mke2fs commands which 83*6a54128fSAndroid Build Coastguard Workerrequest extremely large flex_bg size to succeed. 84*6a54128fSAndroid Build Coastguard Worker 85*6a54128fSAndroid Build Coastguard WorkerMke2fs now creates hugefiles more efficiently (with fewer extent tree 86*6a54128fSAndroid Build Coastguard Workerblocks). 87*6a54128fSAndroid Build Coastguard Worker 88*6a54128fSAndroid Build Coastguard WorkerFix a 32/64-bit overflow bug that could cause resize2fs to loop 89*6a54128fSAndroid Build Coastguard Workerforever. (Addresses-Launchpad-Bug: #1321958) 90*6a54128fSAndroid Build Coastguard Worker 91*6a54128fSAndroid Build Coastguard WorkerThe resize2fs program will now use much less memory when resizing very 92*6a54128fSAndroid Build Coastguard Workerlarge file systems. 93*6a54128fSAndroid Build Coastguard Worker 94*6a54128fSAndroid Build Coastguard WorkerFix a bug which could cause resize2fs to get confused and produce a 95*6a54128fSAndroid Build Coastguard Workercorrupted file system when shrinking a file system that had been 96*6a54128fSAndroid Build Coastguard Workerpreviously expanded and converted to use the meta_bg file system 97*6a54128fSAndroid Build Coastguard Workerformat, but which no longer needs to use the meta_bg file system 98*6a54128fSAndroid Build Coastguard Workerformat any longer. This typically happened with large (> 16TB) file 99*6a54128fSAndroid Build Coastguard Workersystems. (Addresses Debian Bug: #756922) 100*6a54128fSAndroid Build Coastguard Worker 101*6a54128fSAndroid Build Coastguard WorkerThe e4defrag program will now defrag backwards-allocated files. 102*6a54128fSAndroid Build Coastguard Worker 103*6a54128fSAndroid Build Coastguard WorkerFix tune2fs updating UUID's when manipulating file systems with 104*6a54128fSAndroid Build Coastguard Workerexternal journals (both the file system and journal UUID). 105*6a54128fSAndroid Build Coastguard Worker 106*6a54128fSAndroid Build Coastguard WorkerFix tune2fs so it can remove an external journal for file systems with 107*6a54128fSAndroid Build Coastguard Workera 1k block size. 108*6a54128fSAndroid Build Coastguard Worker 109*6a54128fSAndroid Build Coastguard WorkerAdd a new debugfs command, "inode_dump", which prints the inode in hex 110*6a54128fSAndroid Build Coastguard Workerand ASCII format. 111*6a54128fSAndroid Build Coastguard Worker 112*6a54128fSAndroid Build Coastguard WorkerThe debugfs's "set_inode_field" will now automatically allocate blocks 113*6a54128fSAndroid Build Coastguard Workerfor indirect blocks and extent tree blocks. 114*6a54128fSAndroid Build Coastguard Worker 115*6a54128fSAndroid Build Coastguard WorkerFix debugfs's "set_inode_field" so can properly handle 116*6a54128fSAndroid Build Coastguard Worker"block[IND|DIND|TIND]". 117*6a54128fSAndroid Build Coastguard Worker 118*6a54128fSAndroid Build Coastguard WorkerThe debugfs "rdump" command will now take multiple source arguments. 119*6a54128fSAndroid Build Coastguard Worker 120*6a54128fSAndroid Build Coastguard WorkerFixed a double close(2) bug in "rdump" and "rdump -p". 121*6a54128fSAndroid Build Coastguard Worker 122*6a54128fSAndroid Build Coastguard WorkerFix debugfs's argument parsing for the freefrag command. 123*6a54128fSAndroid Build Coastguard Worker 124*6a54128fSAndroid Build Coastguard WorkerFix filefrag to properly handle using the FIBMAP ioctl (with -B). 125*6a54128fSAndroid Build Coastguard Worker(Addresses Launchpad Bug: #1356496) 126*6a54128fSAndroid Build Coastguard Worker 127*6a54128fSAndroid Build Coastguard WorkerClarified messages that were confusing users in debugfs, e2fsck, 128*6a54128fSAndroid Build Coastguard Workermke2fs, and resize2fs (Addresses Debian Bugs: #758029, #757543, 129*6a54128fSAndroid Build Coastguard Worker#757544) 130*6a54128fSAndroid Build Coastguard Worker 131*6a54128fSAndroid Build Coastguard WorkerDumpe2fs will now complain if extra arguments are given to it. 132*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #758074) 133*6a54128fSAndroid Build Coastguard Worker 134*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses-Debian-Bug: #726760) 135*6a54128fSAndroid Build Coastguard Worker 136*6a54128fSAndroid Build Coastguard WorkerUpdate Czech, Dutch, French, Polish, Spanish, Swedish, Ukrainian, and 137*6a54128fSAndroid Build Coastguard WorkerVietnamese translations. 138*6a54128fSAndroid Build Coastguard Worker 139*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 140*6a54128fSAndroid Build Coastguard Worker------------------ 141*6a54128fSAndroid Build Coastguard Worker 142*6a54128fSAndroid Build Coastguard WorkerThe Unix I/O layer will now use pread[64]/pwrite[64] to reduce the 143*6a54128fSAndroid Build Coastguard Workernumber of system calls issued. 144*6a54128fSAndroid Build Coastguard Worker 145*6a54128fSAndroid Build Coastguard WorkerFixed profiled build. 146*6a54128fSAndroid Build Coastguard Worker 147*6a54128fSAndroid Build Coastguard WorkerThe libext2fs library will now more efficiently split an extent tree 148*6a54128fSAndroid Build Coastguard Workerindex block when appending to an end of a file. 149*6a54128fSAndroid Build Coastguard Worker 150*6a54128fSAndroid Build Coastguard WorkerFixed free block accounting for 64-bit file systems. 151*6a54128fSAndroid Build Coastguard Worker 152*6a54128fSAndroid Build Coastguard WorkerAdd a new function ext2s_inode_size_set() which takes care of all of 153*6a54128fSAndroid Build Coastguard Workerthe required feature flag modifications. 154*6a54128fSAndroid Build Coastguard Worker 155*6a54128fSAndroid Build Coastguard WorkerThe regression tests no longer require the presence of the md5sum 156*6a54128fSAndroid Build Coastguard Workerprogram. 157*6a54128fSAndroid Build Coastguard Worker 158*6a54128fSAndroid Build Coastguard WorkerFix build failure on MIPS platforms on Debian (Addresses Debian Bug: 159*6a54128fSAndroid Build Coastguard Worker#754605) 160*6a54128fSAndroid Build Coastguard Worker 161*6a54128fSAndroid Build Coastguard WorkerFix various Coverity warnings (#1225003, #1229243, #1252003) 162*6a54128fSAndroid Build Coastguard Worker 163*6a54128fSAndroid Build Coastguard Worker 164*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.11 (July 9, 2014) 165*6a54128fSAndroid Build Coastguard Worker================================ 166*6a54128fSAndroid Build Coastguard Worker 167*6a54128fSAndroid Build Coastguard WorkerAdd support so that mke2fs can create hugefiles so that they are 168*6a54128fSAndroid Build Coastguard Workeraligned relative to the beginning of the disk, instead of relative to 169*6a54128fSAndroid Build Coastguard Workerthe beginning of the partition, using the mke2fs.conf configuration 170*6a54128fSAndroid Build Coastguard Workerparameter "hugefiles_align_disk". 171*6a54128fSAndroid Build Coastguard Worker 172*6a54128fSAndroid Build Coastguard WorkerFix a bug which causes e2fsck to abort a journal replay on a file 173*6a54128fSAndroid Build Coastguard Workersystem with bigalloc enabled. (Addresses Debian Bug: #744953) 174*6a54128fSAndroid Build Coastguard Worker 175*6a54128fSAndroid Build Coastguard WorkerAdd sanity checks so that mke2fs will refuse insanely large flex_bg 176*6a54128fSAndroid Build Coastguard Workercounts specified by the -G option. Insanely large flex_bg sizes can 177*6a54128fSAndroid Build Coastguard Workerresult in a file system which can't be unmounted, or with extremely 178*6a54128fSAndroid Build Coastguard Workerpessimal metadata layouts. 179*6a54128fSAndroid Build Coastguard Worker 180*6a54128fSAndroid Build Coastguard WorkerThe mke2fs program will provide a better metadata layout for 181*6a54128fSAndroid Build Coastguard Workermoderately large (but believable) flex_bg counts, such as 133,072. 182*6a54128fSAndroid Build Coastguard Worker 183*6a54128fSAndroid Build Coastguard WorkerThe mke2fs program will also check the kernel version number to 184*6a54128fSAndroid Build Coastguard Workerdetermine whether the lazy_itable_init option is supported, so that 185*6a54128fSAndroid Build Coastguard Workerlazy inode table initialization can be used even if the ext4 is 186*6a54128fSAndroid Build Coastguard Workercompiled as a module which isn't loaded at the time that mke2fs is 187*6a54128fSAndroid Build Coastguard Workerrun. 188*6a54128fSAndroid Build Coastguard Worker 189*6a54128fSAndroid Build Coastguard WorkerAdd description of ext4's mount options to the ext4 section 5 man 190*6a54128fSAndroid Build Coastguard Workerpage. 191*6a54128fSAndroid Build Coastguard Worker 192*6a54128fSAndroid Build Coastguard WorkerImprove the chattr man page and clean up the chattr usage message. 193*6a54128fSAndroid Build Coastguard Worker 194*6a54128fSAndroid Build Coastguard WorkerE2fsck will now automatically fix a last mount time or last write time 195*6a54128fSAndroid Build Coastguard Workerwhich is in the future in preen mode, instead of aborting the fsck 196*6a54128fSAndroid Build Coastguard Workercheck. 197*6a54128fSAndroid Build Coastguard Worker 198*6a54128fSAndroid Build Coastguard WorkerMke2fs will now check the file system revision number requested by the 199*6a54128fSAndroid Build Coastguard Workercommand line, and reject it if it is too large. A file system with an 200*6a54128fSAndroid Build Coastguard Workerunsupported revision number will not be accepted by any of the other 201*6a54128fSAndroid Build Coastguard Workerfile system tools, and this command line option is rarely used, so 202*6a54128fSAndroid Build Coastguard Workerlet's try to help the user not shoot their own foot off. 203*6a54128fSAndroid Build Coastguard Worker 204*6a54128fSAndroid Build Coastguard WorkerThe debugfs program can now set the error count and associated 205*6a54128fSAndroid Build Coastguard Workerfirst_error and last_error fields in the superblock using the 206*6a54128fSAndroid Build Coastguard Workerset_super_value command. 207*6a54128fSAndroid Build Coastguard Worker 208*6a54128fSAndroid Build Coastguard WorkerResize2fs will not try to calculate the minimum size of a file system 209*6a54128fSAndroid Build Coastguard Workerif it contains errors. Otherwise a very badly corrupted file system 210*6a54128fSAndroid Build Coastguard Workerimage can cause the minimum size calculation to loop forever. Since 211*6a54128fSAndroid Build Coastguard Workerresize2fs will not allow a file system marked as containing errors to 212*6a54128fSAndroid Build Coastguard Workerbe resized. It's pointless to calculate the minimum size, so just 213*6a54128fSAndroid Build Coastguard Workerskip it. 214*6a54128fSAndroid Build Coastguard Worker 215*6a54128fSAndroid Build Coastguard WorkerFixed a typo in one of mke2fs's error message. 216*6a54128fSAndroid Build Coastguard Worker 217*6a54128fSAndroid Build Coastguard WorkerIf filefrag runs into an error, it will continue processing the rest 218*6a54128fSAndroid Build Coastguard Workerof the files specified on the command line, but then exit with an 219*6a54128fSAndroid Build Coastguard Workererror code. 220*6a54128fSAndroid Build Coastguard Worker 221*6a54128fSAndroid Build Coastguard WorkerFilefrag now prints some additional new flags (such as 222*6a54128fSAndroid Build Coastguard WorkerFIEMAP_EXTENT_ENCODED), and print unknown flags as hex values. 223*6a54128fSAndroid Build Coastguard Worker 224*6a54128fSAndroid Build Coastguard WorkerFixed support in filefrag for files with > 2**32 blocks on 32-bit 225*6a54128fSAndroid Build Coastguard Workerplatforms. 226*6a54128fSAndroid Build Coastguard Worker 227*6a54128fSAndroid Build Coastguard WorkerFixed a file descriptor leak in debugfs when copying files. 228*6a54128fSAndroid Build Coastguard Worker 229*6a54128fSAndroid Build Coastguard WorkerFixed a regression introduced in 1.42.10 which caused mke2fs to fail 230*6a54128fSAndroid Build Coastguard Workerto create file systems larger than 2GB on 32-bit platforms. 231*6a54128fSAndroid Build Coastguard Worker(Addresses Red Hat Bugzilla: #1099892, Debian Bug: #752107) 232*6a54128fSAndroid Build Coastguard Worker 233*6a54128fSAndroid Build Coastguard WorkerAdd Esperanto and Ukrainian translations, and update Czech, Dutch, 234*6a54128fSAndroid Build Coastguard WorkerFrench, German, Italian, Polish, Swedish, and Vietnamese 235*6a54128fSAndroid Build Coastguard Workertranslations. 236*6a54128fSAndroid Build Coastguard Worker 237*6a54128fSAndroid Build Coastguard WorkerFixed various compiler warnings. 238*6a54128fSAndroid Build Coastguard Worker 239*6a54128fSAndroid Build Coastguard Worker 240*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 241*6a54128fSAndroid Build Coastguard Worker------------------ 242*6a54128fSAndroid Build Coastguard Worker 243*6a54128fSAndroid Build Coastguard WorkerThe gcc "-checker" option has been long deprecated, so remove support 244*6a54128fSAndroid Build Coastguard Workerfrom e2fsprogs. It was causing a few people to be confused when they 245*6a54128fSAndroid Build Coastguard Workertried enabling the configure option. 246*6a54128fSAndroid Build Coastguard Worker 247*6a54128fSAndroid Build Coastguard WorkerUpdate to the latest version of the config.status and config.rpath 248*6a54128fSAndroid Build Coastguard Workerfiles, as well as newer versions of the autoconf files in aclocal.m4. 249*6a54128fSAndroid Build Coastguard WorkerAlso, move the e2fsprogs-specific macros to acinclude.m4, which allows 250*6a54128fSAndroid Build Coastguard Workerpeople who want to use autoreconf to do so. 251*6a54128fSAndroid Build Coastguard Worker 252*6a54128fSAndroid Build Coastguard WorkerMake the use of strptime() function in debugfs to be more portable to 253*6a54128fSAndroid Build Coastguard Workerfix regression test failures for FreeBSD and MacOS. 254*6a54128fSAndroid Build Coastguard Worker 255*6a54128fSAndroid Build Coastguard WorkerA few miscellaneous changes designed to make life easier for 256*6a54128fSAndroid Build Coastguard Workertranslators. 257*6a54128fSAndroid Build Coastguard Worker 258*6a54128fSAndroid Build Coastguard WorkerFix the f_quota test and some Makefile dependencies if quota support 259*6a54128fSAndroid Build Coastguard Workeris not enabled. 260*6a54128fSAndroid Build Coastguard Worker 261*6a54128fSAndroid Build Coastguard WorkerFix cross-compilation support, which got broken in 1.42.10. 262*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #753375) 263*6a54128fSAndroid Build Coastguard Worker 264*6a54128fSAndroid Build Coastguard WorkerDelete lib/ext2_types.h on a make clean, and build it as necessary. 265*6a54128fSAndroid Build Coastguard Worker 266*6a54128fSAndroid Build Coastguard WorkerAdd a debug program used for libext2fs unit tests. 267*6a54128fSAndroid Build Coastguard Worker 268*6a54128fSAndroid Build Coastguard WorkerClean up the tests so that it avoids using GNU-specific behaviour in 269*6a54128fSAndroid Build Coastguard Workermktemp. Make sure the temporary files are cleaned up if the tests are 270*6a54128fSAndroid Build Coastguard Workerinterrupted. 271*6a54128fSAndroid Build Coastguard Worker 272*6a54128fSAndroid Build Coastguard WorkerAdd a new ext2fs_close_free() helper function which automatically 273*6a54128fSAndroid Build Coastguard Workertakes care of freeing the ext2_filsys structure even if ext2fs_close() 274*6a54128fSAndroid Build Coastguard Workerreturns an error. 275*6a54128fSAndroid Build Coastguard Worker 276*6a54128fSAndroid Build Coastguard Worker 277*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.10 (May 18, 2014) 278*6a54128fSAndroid Build Coastguard Worker================================ 279*6a54128fSAndroid Build Coastguard Worker 280*6a54128fSAndroid Build Coastguard WorkerMke2fs now creates file systems in regular files (which is very often 281*6a54128fSAndroid Build Coastguard Workerused when maintaining virtual machine images) without requiring the 282*6a54128fSAndroid Build Coastguard Workeruser to use the force option. In addition, the mke2fs output has been 283*6a54128fSAndroid Build Coastguard Workermade much less verbose and only displays information that users will 284*6a54128fSAndroid Build Coastguard Workerbe more likely to find useful by default. 285*6a54128fSAndroid Build Coastguard Worker 286*6a54128fSAndroid Build Coastguard WorkerMke2fs now will ask the user to confirm that they want to continue 287*6a54128fSAndroid Build Coastguard Workerbefore wiping out a pre-existing file system, partition table, or LVM 288*6a54128fSAndroid Build Coastguard Workerphysical volume. 289*6a54128fSAndroid Build Coastguard Worker 290*6a54128fSAndroid Build Coastguard WorkerMke2fs now has the ability to create file systems where all the 291*6a54128fSAndroid Build Coastguard Workermetadata is located at the very beginning of the device. This can be 292*6a54128fSAndroid Build Coastguard Workeruseful for flash devices which have SLC flash at the beginning of the 293*6a54128fSAndroid Build Coastguard Workerdisk, for FAT compatibility, for example. As part of this, mke2fs and 294*6a54128fSAndroid Build Coastguard Workertune2fs can control the location of the data blocks used by the 295*6a54128fSAndroid Build Coastguard Workerjournal inode. In addition, the new sparse_super2 feature allows for 296*6a54128fSAndroid Build Coastguard Workereven fewer (anywhere from zero to two) backup superblocks. 297*6a54128fSAndroid Build Coastguard Worker 298*6a54128fSAndroid Build Coastguard WorkerMke2fs now uses much less CPU when allocating the blocks used for very 299*6a54128fSAndroid Build Coastguard Workerlarge file systems. 300*6a54128fSAndroid Build Coastguard Worker 301*6a54128fSAndroid Build Coastguard WorkerMke2fs can now support creating a file system at an offset. This can 302*6a54128fSAndroid Build Coastguard Workerbe useful when creating a disk image for virtual machines (Addresses 303*6a54128fSAndroid Build Coastguard WorkerDebian Bug: #497984) 304*6a54128fSAndroid Build Coastguard Worker 305*6a54128fSAndroid Build Coastguard WorkerPreviously, e2fsck had a number of very serious bugs when checking a 306*6a54128fSAndroid Build Coastguard Workerfile system which used the new the quota file system option (where the 307*6a54128fSAndroid Build Coastguard Workerquota inodes were stored in hidden inodes) and the quota inode was 308*6a54128fSAndroid Build Coastguard Workerinconsistent with the actual usage data. This problem was documented 309*6a54128fSAndroid Build Coastguard Workerin https://ext4.wiki.kernel.org/index.php/Quota. These problems have 310*6a54128fSAndroid Build Coastguard Workerbeen fixed in 1.42.10, so the quota should be safe to use with 311*6a54128fSAndroid Build Coastguard Workere2fsprogs 1.42.10. 312*6a54128fSAndroid Build Coastguard Worker 313*6a54128fSAndroid Build Coastguard WorkerFixed in a bug in resize2fs which could cause shrink operation fail in 314*6a54128fSAndroid Build Coastguard Workerthe unlikely situation when the inode table needs to be moved to a 315*6a54128fSAndroid Build Coastguard Workerlocation before the current location. 316*6a54128fSAndroid Build Coastguard Worker 317*6a54128fSAndroid Build Coastguard WorkerResize2fs now has a much more accurate (and less conservative) 318*6a54128fSAndroid Build Coastguard Workerestimation of how far the file system can be shrunk. This allows a 319*6a54128fSAndroid Build Coastguard Workermostly empty filesystem which is a few terabytes, to be shrunk to a 320*6a54128fSAndroid Build Coastguard Workerfew megabytes in a single resize2fs -M operation. 321*6a54128fSAndroid Build Coastguard Worker 322*6a54128fSAndroid Build Coastguard WorkerE2fsck will now force a full file system check if there are any file 323*6a54128fSAndroid Build Coastguard Workersystem inconsistencies detected in the super block. 324*6a54128fSAndroid Build Coastguard Worker 325*6a54128fSAndroid Build Coastguard WorkerThe filefrag program will now display the shared extent flag, which is 326*6a54128fSAndroid Build Coastguard Workerused by file systems such as btrfs. 327*6a54128fSAndroid Build Coastguard Worker 328*6a54128fSAndroid Build Coastguard WorkerIf the number of inodes in the file systems is larger than the time 329*6a54128fSAndroid Build Coastguard Workerthat file system was created (as measured by the number of seconds 330*6a54128fSAndroid Build Coastguard Workersince January 1, 1970) e2fsck would print a scary (but otherwise 331*6a54128fSAndroid Build Coastguard Workerharmless) warning of file system corruption for each inode in the 332*6a54128fSAndroid Build Coastguard Workerorphan list. This false positive has been fixed. 333*6a54128fSAndroid Build Coastguard Worker 334*6a54128fSAndroid Build Coastguard WorkerThe e4defrag program has been fixed so it will no longer refuse with 335*6a54128fSAndroid Build Coastguard Workerfilesystem with the 64-bit or the bigalloc feature enabled. 336*6a54128fSAndroid Build Coastguard Worker 337*6a54128fSAndroid Build Coastguard WorkerThe logsave program will print a much less scary message which could 338*6a54128fSAndroid Build Coastguard Workerlead users to believe something has gone very wrong with e2fsck exits 339*6a54128fSAndroid Build Coastguard Workerwith a non-zero exit status (since this is normal after e2fsck has 340*6a54128fSAndroid Build Coastguard Workerautomatically fixed a file system corruption during a preen 341*6a54128fSAndroid Build Coastguard Workeroperation). (Addresses Debian Bug: #468821) 342*6a54128fSAndroid Build Coastguard Worker 343*6a54128fSAndroid Build Coastguard WorkerWhen creating a file system which is larger than 16TB, the 344*6a54128fSAndroid Build Coastguard Workerresize_inode option must be disabled -- since the resize_inode simply 345*6a54128fSAndroid Build Coastguard Workerdoesn't support reserving metadata block numbers which is larger than 346*6a54128fSAndroid Build Coastguard Worker32 bits. The mke2fs program does this automatically if the file 347*6a54128fSAndroid Build Coastguard Workersystem size is determined automatically. It will now also do this if 348*6a54128fSAndroid Build Coastguard Workerthe file size is specified explicitly. 349*6a54128fSAndroid Build Coastguard Worker 350*6a54128fSAndroid Build Coastguard WorkerFixed bugs associated with resize2fs and shrinking bigalloc file 351*6a54128fSAndroid Build Coastguard Workersystems. 352*6a54128fSAndroid Build Coastguard Worker 353*6a54128fSAndroid Build Coastguard WorkerThe e2fsck program will no longer try to add a UUID on a mounted file 354*6a54128fSAndroid Build Coastguard Workersystem with checksums enabled, since this could leave the file system 355*6a54128fSAndroid Build Coastguard Workerchecksums broken. 356*6a54128fSAndroid Build Coastguard Worker 357*6a54128fSAndroid Build Coastguard WorkerTune2fs will allow the removal of an external journal from file system 358*6a54128fSAndroid Build Coastguard Workerwhich is marked as needing the journal replayed when the force ("-f") 359*6a54128fSAndroid Build Coastguard Workeroption is given twice. (Addresses Debian Bug: #559301) 360*6a54128fSAndroid Build Coastguard Worker 361*6a54128fSAndroid Build Coastguard WorkerTune2fs will no longer support enabling sparse_super if the meta_bg 362*6a54128fSAndroid Build Coastguard Workerfile system feature is enabled, since it could result in data loss. 363*6a54128fSAndroid Build Coastguard WorkerIn practice, all modern file systems have sparse_super is enabled, so 364*6a54128fSAndroid Build Coastguard Workerit's not worth trying to change how tune2fs handles enabling the 365*6a54128fSAndroid Build Coastguard Workersparse_super feature. 366*6a54128fSAndroid Build Coastguard Worker 367*6a54128fSAndroid Build Coastguard WorkerFixed support for 1k block file systems with the meta_bg feature. 368*6a54128fSAndroid Build Coastguard Worker 369*6a54128fSAndroid Build Coastguard WorkerWhen the superblock is corrupt, e2fsck can't figure out the location 370*6a54128fSAndroid Build Coastguard Workerof the alternate superblock. Unfortunately, the routine that 371*6a54128fSAndroid Build Coastguard Workercalculates the location of the alternate superblock uses 8193 if it 372*6a54128fSAndroid Build Coastguard Workercan't figure this out, so the message printed by e2fsck always 373*6a54128fSAndroid Build Coastguard Workersuggests using "e2fsck -b 8193". This message has been fixed to 374*6a54128fSAndroid Build Coastguard Workersuggest both the superblock location of 8193 and and 32768. 375*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #719185) 376*6a54128fSAndroid Build Coastguard Worker 377*6a54128fSAndroid Build Coastguard WorkerThe lookback mount detection code that was introduced in 1.42.9 wasn't 378*6a54128fSAndroid Build Coastguard Workeractually compiled in due to an autoconf oops, so it's fixed now in 379*6a54128fSAndroid Build Coastguard Worker1.42.10. (Addresses Debian Bug: #497984) 380*6a54128fSAndroid Build Coastguard Worker 381*6a54128fSAndroid Build Coastguard WorkerA bug introduced in 1.42.9 would cause debugfs to print two error 382*6a54128fSAndroid Build Coastguard Workermessages if it found an error while parsing a user-supplied block 383*6a54128fSAndroid Build Coastguard Workernumber. This has been fixed in 1.42.10. 384*6a54128fSAndroid Build Coastguard Worker 385*6a54128fSAndroid Build Coastguard WorkerUpdate Czech, Dutch, French, German, Polish, Spanish, Swedish, and 386*6a54128fSAndroid Build Coastguard WorkerVietnamese translations. (Addresses Debian Bug: #703048) 387*6a54128fSAndroid Build Coastguard Worker 388*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bugs: #719189, 389*6a54128fSAndroid Build Coastguard Worker#719184) 390*6a54128fSAndroid Build Coastguard Worker 391*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging Issues. (Addresses Debian Bug: #718725) 392*6a54128fSAndroid Build Coastguard Worker 393*6a54128fSAndroid Build Coastguard Worker 394*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 395*6a54128fSAndroid Build Coastguard Worker------------------ 396*6a54128fSAndroid Build Coastguard Worker 397*6a54128fSAndroid Build Coastguard WorkerFixed a lot of coverity, sparse, gcc -Wall, and clang warnings/nits. 398*6a54128fSAndroid Build Coastguard Worker 399*6a54128fSAndroid Build Coastguard WorkerAllow the location of pkg-config files to be specified independent of 400*6a54128fSAndroid Build Coastguard Workerthe libdir location via a makefile variable. 401*6a54128fSAndroid Build Coastguard Worker 402*6a54128fSAndroid Build Coastguard WorkerFixed parse-types.sh not to complain when cross-compiling and the 403*6a54128fSAndroid Build Coastguard Workersizes of types are different between the target architecture and the 404*6a54128fSAndroid Build Coastguard Workerarchitecture of the build system 405*6a54128fSAndroid Build Coastguard Worker 406*6a54128fSAndroid Build Coastguard WorkerAllow the regression test suite to work correctly on systems which do 407*6a54128fSAndroid Build Coastguard Workernot have the "truncate" or "mksawp" programs. 408*6a54128fSAndroid Build Coastguard Worker 409*6a54128fSAndroid Build Coastguard WorkerAllow e2fsck to build correctly on systems (such as Android) that do 410*6a54128fSAndroid Build Coastguard Workernot have the signal.h file. 411*6a54128fSAndroid Build Coastguard Worker 412*6a54128fSAndroid Build Coastguard WorkerE2fsprogs now has code coverage testing which can be enabled using 413*6a54128fSAndroid Build Coastguard Worker"configure --enable-gcov". 414*6a54128fSAndroid Build Coastguard Worker 415*6a54128fSAndroid Build Coastguard WorkerThe libe2p.h header file can now be used included by C++ programs. 416*6a54128fSAndroid Build Coastguard Worker 417*6a54128fSAndroid Build Coastguard WorkerThe profile/config file used by e2fsck and mke2fs will interpret 418*6a54128fSAndroid Build Coastguard Workernumbers with a leading 0 character to mean that they should be 419*6a54128fSAndroid Build Coastguard Workerinterpreted as an octal integer. 420*6a54128fSAndroid Build Coastguard Worker 421*6a54128fSAndroid Build Coastguard WorkerThe extent handling functions in libext2fs have been improved so they 422*6a54128fSAndroid Build Coastguard Workerhave proper rollback when there is an error splitting an extent. Also 423*6a54128fSAndroid Build Coastguard Workerfix a number of bugs when punching holes in files, and fix an 424*6a54128fSAndroid Build Coastguard Workeroff-by-one bug when inserting an extent into an empty inode. 425*6a54128fSAndroid Build Coastguard Worker 426*6a54128fSAndroid Build Coastguard WorkerThe libext2fs library now handles the support of BLOCK_UNINIT by 427*6a54128fSAndroid Build Coastguard Workerclearing the portion of block bitmap when it is loaded, instead of 428*6a54128fSAndroid Build Coastguard Workerwhen it is used. This reduces the chances of bugs, and and simplifies 429*6a54128fSAndroid Build Coastguard Workerthe code. It also means that debugfs will properly show that blocks 430*6a54128fSAndroid Build Coastguard Workerin uninitialized block groups as being unused when using the testb 431*6a54128fSAndroid Build Coastguard Workercommand. 432*6a54128fSAndroid Build Coastguard Worker 433*6a54128fSAndroid Build Coastguard WorkerThe e4defrag program will try to use fadvise64 or posix_fadvise64() if 434*6a54128fSAndroid Build Coastguard Workerit is present, which allows 64-bit offsets on 32-bit systems. 435*6a54128fSAndroid Build Coastguard Worker 436*6a54128fSAndroid Build Coastguard Worker 437*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.9 (December 28, 2013) 438*6a54128fSAndroid Build Coastguard Worker==================================== 439*6a54128fSAndroid Build Coastguard Worker 440*6a54128fSAndroid Build Coastguard WorkerMke2fs will detect an attempt to create a file system on a loop 441*6a54128fSAndroid Build Coastguard Workermounted file and complain without the -FF option. Also fixed mke2fs 442*6a54128fSAndroid Build Coastguard Workerso it allows the creation of a file system on a mounted device with 443*6a54128fSAndroid Build Coastguard Workertwo -F options, as documented in the man page, instead of three -F 444*6a54128fSAndroid Build Coastguard Workeroptions. 445*6a54128fSAndroid Build Coastguard Worker 446*6a54128fSAndroid Build Coastguard WorkerFixed a large number of bugs in resize2fs, e2fsck, debugfs, and 447*6a54128fSAndroid Build Coastguard Workerlibext2fs to correctly handle bigalloc and 64-bit file systems. There 448*6a54128fSAndroid Build Coastguard Workerwere many corner cases that had not been noticed in previous uses of 449*6a54128fSAndroid Build Coastguard Workerthese file systems, since they are not as common. Some of the bugs 450*6a54128fSAndroid Build Coastguard Workercould cause file system corruption or data loss, so users of 64-bit or 451*6a54128fSAndroid Build Coastguard Workerbigalloc file systems are strongly urged to upgrade to e2fsprogs 452*6a54128fSAndroid Build Coastguard Worker1.42.9. 453*6a54128fSAndroid Build Coastguard Worker 454*6a54128fSAndroid Build Coastguard WorkerThe tune2fs program will now not allow changing the uuid on a mounted 455*6a54128fSAndroid Build Coastguard Workerfile system which has the uninit_bg feature enabled. This avoids a 456*6a54128fSAndroid Build Coastguard Workernasty race where the kernel and tune2fs are both retrying rewrite the 457*6a54128fSAndroid Build Coastguard Workergroup descriptors at the same time, with different ideas about what 458*6a54128fSAndroid Build Coastguard Workerthe UUID should be. 459*6a54128fSAndroid Build Coastguard Worker 460*6a54128fSAndroid Build Coastguard WorkerWhen e2fsck is rehashing an extent-mapped directory, it's possible 461*6a54128fSAndroid Build Coastguard Worker(although very rare) that an extent block will need to be allocated; 462*6a54128fSAndroid Build Coastguard Workerfix e2fsck to make sure that the block gets marked as used. 463*6a54128fSAndroid Build Coastguard Worker 464*6a54128fSAndroid Build Coastguard WorkerMke2fs will now properly set the LARGE_FILE feature when creating a 465*6a54128fSAndroid Build Coastguard Workerjournal >= 2GB --- which can happen when using 64k block size. 466*6a54128fSAndroid Build Coastguard Worker 467*6a54128fSAndroid Build Coastguard WorkerFixed debugfs so that its freei command will correctly handle a request 468*6a54128fSAndroid Build Coastguard Workerto free a range of consecutive inodes. 469*6a54128fSAndroid Build Coastguard Worker 470*6a54128fSAndroid Build Coastguard WorkerFixed 2fsck so it will not erroneously complain that an external journal 471*6a54128fSAndroid Build Coastguard Workeris invalid if it is exactly 2**32 blocks. 472*6a54128fSAndroid Build Coastguard Worker 473*6a54128fSAndroid Build Coastguard WorkerFixed e2fsck so it won't try checking for, and adding, a missing 474*6a54128fSAndroid Build Coastguard Workerlost+found directory when running in read-only mode. 475*6a54128fSAndroid Build Coastguard Worker 476*6a54128fSAndroid Build Coastguard WorkerFixed e2image so that progress information won't get leaked to stdout. 477*6a54128fSAndroid Build Coastguard Worker(Addresses Red Hat Bugzilla: #1327329) 478*6a54128fSAndroid Build Coastguard Worker 479*6a54128fSAndroid Build Coastguard WorkerFixed e2image to avoid some buffer overruns which would cause it to when 480*6a54128fSAndroid Build Coastguard Workercreating a "standard (non-raw, non-qcow2) image file. Standard 481*6a54128fSAndroid Build Coastguard Workere2image files are actually very rarely used, so we didn't notice when 482*6a54128fSAndroid Build Coastguard Workerthe changes to enable the qcow2 format broke this e2image mode. 483*6a54128fSAndroid Build Coastguard Worker 484*6a54128fSAndroid Build Coastguard WorkerFixed mke2fs so that the extended option "-E resize=NNN" will not turn 485*6a54128fSAndroid Build Coastguard Workeron the resize_inode feature when the meta_bg feature is set, since 486*6a54128fSAndroid Build Coastguard Workerthese two features can not be set at the same time. 487*6a54128fSAndroid Build Coastguard Worker 488*6a54128fSAndroid Build Coastguard WorkerFixed tune2fs so that when it disables the quota feature, it updates all 489*6a54128fSAndroid Build Coastguard Workerof the backup superblocks. 490*6a54128fSAndroid Build Coastguard Worker 491*6a54128fSAndroid Build Coastguard WorkerFixed dumpe2fs that would cause it to abort when run using an image file 492*6a54128fSAndroid Build Coastguard Workerwhen trying to print the journal information (which is not present in 493*6a54128fSAndroid Build Coastguard Workeran e2image created image file). 494*6a54128fSAndroid Build Coastguard Worker 495*6a54128fSAndroid Build Coastguard WorkerFixed a potential integer overflow in e2reefrag. 496*6a54128fSAndroid Build Coastguard Worker(Addresses-Debian-Bug: #718205) 497*6a54128fSAndroid Build Coastguard Worker 498*6a54128fSAndroid Build Coastguard WorkerEnhance debugfs so that when copying a sparse file from a native file 499*6a54128fSAndroid Build Coastguard Workersystem into the file system image using the "write" command, it will 500*6a54128fSAndroid Build Coastguard Workercreate a sparse file into the destination file system. 501*6a54128fSAndroid Build Coastguard Worker 502*6a54128fSAndroid Build Coastguard WorkerEnhanced debugfs so it can support a command line which is up to 8k 503*6a54128fSAndroid Build Coastguard Workerlong. 504*6a54128fSAndroid Build Coastguard Worker 505*6a54128fSAndroid Build Coastguard WorkerE2image will refuse (unless the -f option is specified to force the 506*6a54128fSAndroid Build Coastguard Workerissue) to create a raw or qcow image using a mounted file system, 507*6a54128fSAndroid Build Coastguard Workerunless the -f option is specified to force the issue. 508*6a54128fSAndroid Build Coastguard Worker 509*6a54128fSAndroid Build Coastguard WorkerE2image has been optimized for using it to efficiently copy a file 510*6a54128fSAndroid Build Coastguard Workersystem by only copying the allocated blocks, by using the options -ra. 511*6a54128fSAndroid Build Coastguard WorkerNew options (-o and -O) have been added so that a source and 512*6a54128fSAndroid Build Coastguard Workerdestination offset can be given. The -p option will print progress 513*6a54128fSAndroid Build Coastguard Workerinformation so the user will know how far along the copy is going. 514*6a54128fSAndroid Build Coastguard WorkerAnd finally, the new option -c is useful for updating a file system on 515*6a54128fSAndroid Build Coastguard Workeran SSD, by avoiding unnecessary writes. E2image can also shift a file 516*6a54128fSAndroid Build Coastguard Workersystem image by doing an in place move. 517*6a54128fSAndroid Build Coastguard Worker 518*6a54128fSAndroid Build Coastguard WorkerFix a regression introduced in 1.42.8 which would cause e2fsck to 519*6a54128fSAndroid Build Coastguard Workererroneously report uninitialized extents past the EOF (as determined by 520*6a54128fSAndroid Build Coastguard Workeri_size) to be invalid. 521*6a54128fSAndroid Build Coastguard Worker 522*6a54128fSAndroid Build Coastguard WorkerFixed resize2fs so under a corner case when an inode has a complex 523*6a54128fSAndroid Build Coastguard Workerextent tree, it will not corrupt an interior node in the extent tree. 524*6a54128fSAndroid Build Coastguard Worker 525*6a54128fSAndroid Build Coastguard WorkerFixed resize2fs which would sometimes corrupt a file system when 526*6a54128fSAndroid Build Coastguard Workershrinking a file system to a minimum size using resize2fs -M. 527*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #660793) 528*6a54128fSAndroid Build Coastguard Worker 529*6a54128fSAndroid Build Coastguard WorkerFixed resize2fs so that it will relocate inode table blocks if this 530*6a54128fSAndroid Build Coastguard Workerbecomes necessary when shrinking the file system. 531*6a54128fSAndroid Build Coastguard Worker 532*6a54128fSAndroid Build Coastguard WorkerFixed resize2fs and e2fsck so they will not crash when hit a failure 533*6a54128fSAndroid Build Coastguard Workerwhile operating on a file system with the MMP feature enabled. 534*6a54128fSAndroid Build Coastguard Worker 535*6a54128fSAndroid Build Coastguard WorkerFixed a bug in debugfs which caused it create an invalid inode when 536*6a54128fSAndroid Build Coastguard Workertrying to write a zero-length file. 537*6a54128fSAndroid Build Coastguard Worker 538*6a54128fSAndroid Build Coastguard WorkerE2fsck will no longer crash if it tries to delete an invalid 539*6a54128fSAndroid Build Coastguard Workerextent-mapped symlink. 540*6a54128fSAndroid Build Coastguard Worker 541*6a54128fSAndroid Build Coastguard WorkerE2fsck will no longer crash if it comes across an directory which is 542*6a54128fSAndroid Build Coastguard Workerlarger than 2GB (which is not allowed in valid file systems). 543*6a54128fSAndroid Build Coastguard Worker 544*6a54128fSAndroid Build Coastguard WorkerFixed debugfs's help texts to fully document all options and otherwise 545*6a54128fSAndroid Build Coastguard Workerbe more helpful. 546*6a54128fSAndroid Build Coastguard Worker 547*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bugs: #586218, 548*6a54128fSAndroid Build Coastguard Worker#669730, #698076) 549*6a54128fSAndroid Build Coastguard Worker 550*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging Issues (#698879, #721365) 551*6a54128fSAndroid Build Coastguard Worker 552*6a54128fSAndroid Build Coastguard Worker 553*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 554*6a54128fSAndroid Build Coastguard Worker------------------ 555*6a54128fSAndroid Build Coastguard Worker 556*6a54128fSAndroid Build Coastguard WorkerFix sparse, gcc -Wall and clang nits. 557*6a54128fSAndroid Build Coastguard Worker 558*6a54128fSAndroid Build Coastguard WorkerUpdate config.{guess,sub} to the latest version 559*6a54128fSAndroid Build Coastguard Worker 560*6a54128fSAndroid Build Coastguard WorkerFixed various memory and file descriptor leaks on various error paths, 561*6a54128fSAndroid Build Coastguard Workeras well as some missing error return checks, which were found using 562*6a54128fSAndroid Build Coastguard WorkerCoverity. 563*6a54128fSAndroid Build Coastguard Worker 564*6a54128fSAndroid Build Coastguard WorkerRun sparse against source files when building e2fsprogs with 'make 565*6a54128fSAndroid Build Coastguard WorkerC=1'. If instead C=2, it configures basic ext2 types for bitwise 566*6a54128fSAndroid Build Coastguard Workerchecking with sparse, which can help find the (many many) spots where 567*6a54128fSAndroid Build Coastguard Workerconversion errors are (possibly) happening. 568*6a54128fSAndroid Build Coastguard Worker 569*6a54128fSAndroid Build Coastguard WorkerAllow the regression test to be run in chrooted environments where 570*6a54128fSAndroid Build Coastguard Worker/etc/mtab might be missing. 571*6a54128fSAndroid Build Coastguard Worker 572*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_punch() function, which was introduced in 1.42, was broken 573*6a54128fSAndroid Build Coastguard Workerin many ways, but this was never noticed since it wasn't used for 574*6a54128fSAndroid Build Coastguard Workeranything significant. Some of the bugs include failing when trying to 575*6a54128fSAndroid Build Coastguard Workerpunch a completely sparse file, failing when punching an extent-mapped 576*6a54128fSAndroid Build Coastguard Workerinode when the starting block was at the beginning of the inode, and 577*6a54128fSAndroid Build Coastguard Workernot being able to punch a single block (where start_blk == end_block). 578*6a54128fSAndroid Build Coastguard WorkerIt also didn't handle being passed an invalid, too-large ending block 579*6a54128fSAndroid Build Coastguard Workernumber, and didn't handle properly terminate at the right place when 580*6a54128fSAndroid Build Coastguard Workeroperating on an indirect-mapped inode. 581*6a54128fSAndroid Build Coastguard Worker 582*6a54128fSAndroid Build Coastguard WorkerFixed some minor typo's in the error catalog for libext2fs. 583*6a54128fSAndroid Build Coastguard Worker 584*6a54128fSAndroid Build Coastguard WorkerFixed ext2fs_file_set_size2() so that if it truncates an inode by 585*6a54128fSAndroid Build Coastguard Workersetting the file size, to zero the rest of the block to the end of the 586*6a54128fSAndroid Build Coastguard Workerfile, so that if an ext4 FUSE driver tries to extended the file, that 587*6a54128fSAndroid Build Coastguard Workerwe don't avoid stale data from being returned. 588*6a54128fSAndroid Build Coastguard Worker 589*6a54128fSAndroid Build Coastguard WorkerFixed ext2fs_bmap() to disallow clients from trying to map or set 590*6a54128fSAndroid Build Coastguard Workerlogical blocks which are larger than what an extent-mapped or indirect 591*6a54128fSAndroid Build Coastguard Workerblock-mapped inode can allow. 592*6a54128fSAndroid Build Coastguard Worker 593*6a54128fSAndroid Build Coastguard WorkerIf debugfs (or some userspace program using libext2fs) creates a file 594*6a54128fSAndroid Build Coastguard Workerwhich is larger than 2GB, make sure the large_file feature flag gets 595*6a54128fSAndroid Build Coastguard Workerset. 596*6a54128fSAndroid Build Coastguard Worker 597*6a54128fSAndroid Build Coastguard WorkerFix a bug in ext2fs_link() where if there is multiple empty slots in the 598*6a54128fSAndroid Build Coastguard Workerdirectory which are large enough, the directory entry could get 599*6a54128fSAndroid Build Coastguard Workerinserted more than once in the directory. 600*6a54128fSAndroid Build Coastguard Worker 601*6a54128fSAndroid Build Coastguard WorkerIf quota support is disabled (which is the default), make sure that 602*6a54128fSAndroid Build Coastguard Workerall traces of the quota support is removed from usage messages, man 603*6a54128fSAndroid Build Coastguard Workerpages, and tune2fs must not be able to enable the quota file system 604*6a54128fSAndroid Build Coastguard Workerfeature. (Addresses Red Hat Bugzilla: #1010709) 605*6a54128fSAndroid Build Coastguard Worker 606*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_file_write() now updates i_size on a successful write, 607*6a54128fSAndroid Build Coastguard Workerinstead of only updating i_size wen the file is closed via 608*6a54128fSAndroid Build Coastguard Workerext2fs_file_close(). 609*6a54128fSAndroid Build Coastguard Worker 610*6a54128fSAndroid Build Coastguard WorkerAdded a shell script, populate-extfs.sh which uses debugfs to populate 611*6a54128fSAndroid Build Coastguard Workeran ext2/3/4 file system image from a given directory. It is similar 612*6a54128fSAndroid Build Coastguard Workerto the genext2fs program, but it supports ext3 and ext4 file system. 613*6a54128fSAndroid Build Coastguard Worker 614*6a54128fSAndroid Build Coastguard WorkerAdd changes to the libext2fs library to support block group 615*6a54128fSAndroid Build Coastguard Workerdescriptors larger than 64 bytes (for future compatibility). 616*6a54128fSAndroid Build Coastguard Worker 617*6a54128fSAndroid Build Coastguard WorkerFixed an off-by-one bug in ext2fs_file_set_size2() so that it will not 618*6a54128fSAndroid Build Coastguard Workerleave an extra block in the file when truncating the file down to 619*6a54128fSAndroid Build Coastguard Workersize. 620*6a54128fSAndroid Build Coastguard Worker 621*6a54128fSAndroid Build Coastguard WorkerThe html version info pages are now built using makeinfo --html 622*6a54128fSAndroid Build Coastguard Workerinstead of the unmaintained and now-obsolete texi2html program. 623*6a54128fSAndroid Build Coastguard Worker 624*6a54128fSAndroid Build Coastguard Worker 625*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.8 (June 20, 2013) 626*6a54128fSAndroid Build Coastguard Worker================================ 627*6a54128fSAndroid Build Coastguard Worker 628*6a54128fSAndroid Build Coastguard WorkerAs a part of mke2fs's option parsing cleanup, the use of the -R option 629*6a54128fSAndroid Build Coastguard Workerwill give a warning that it is deprecated (it has been so documented 630*6a54128fSAndroid Build Coastguard Workersince 2005) and -E should be used instead. 631*6a54128fSAndroid Build Coastguard Worker 632*6a54128fSAndroid Build Coastguard WorkerMke2fs will not give warnings about the bigalloc and quota options in 633*6a54128fSAndroid Build Coastguard Workerquiet mode. 634*6a54128fSAndroid Build Coastguard Worker 635*6a54128fSAndroid Build Coastguard WorkerIf an invalid journal size is given to mke2fs, it will now complain 636*6a54128fSAndroid Build Coastguard Workerand exit sooner. 637*6a54128fSAndroid Build Coastguard Worker 638*6a54128fSAndroid Build Coastguard WorkerDebugfs was erroneously giving spurious error messages for certain 639*6a54128fSAndroid Build Coastguard Workerextent_inode subcommands which take arguments (split_node, 640*6a54128fSAndroid Build Coastguard Workerreplace_node, and insert_node). This has been fixed. 641*6a54128fSAndroid Build Coastguard Worker 642*6a54128fSAndroid Build Coastguard WorkerFix the parsing of the 's' (sectors) in parse_num_blocks2, which among 643*6a54128fSAndroid Build Coastguard Workerother programs is used by mke2fs. 644*6a54128fSAndroid Build Coastguard Worker 645*6a54128fSAndroid Build Coastguard WorkerChange mke2fs so that it does not set the root directory to the real 646*6a54128fSAndroid Build Coastguard Workeruid/gid of the mke2fs process. Add the extended option root_owner to 647*6a54128fSAndroid Build Coastguard Workeroverride this behavior. 648*6a54128fSAndroid Build Coastguard Worker 649*6a54128fSAndroid Build Coastguard WorkerFix resize2fs when shrinking file systems to make sure that bitmap 650*6a54128fSAndroid Build Coastguard Workerblocks aren't left outside the bounds of the shrunken file system. 651*6a54128fSAndroid Build Coastguard WorkerThis could happen with flex_bg file systems that were grown using 652*6a54128fSAndroid Build Coastguard Workerthe old online resizing algorithm. 653*6a54128fSAndroid Build Coastguard Worker 654*6a54128fSAndroid Build Coastguard WorkerE2fsck will now detect and repair corrupted extent trees which contain 655*6a54128fSAndroid Build Coastguard Workerinvalid extents at the end of the extent tree leaf block. 656*6a54128fSAndroid Build Coastguard Worker 657*6a54128fSAndroid Build Coastguard WorkerE2fsck will now longer complain about zero length extended attribute 658*6a54128fSAndroid Build Coastguard Workervalues. 659*6a54128fSAndroid Build Coastguard Worker 660*6a54128fSAndroid Build Coastguard WorkerFix a regression introduced in e2fsprogs v1.42 which caused e2image -s 661*6a54128fSAndroid Build Coastguard Workerto crash. 662*6a54128fSAndroid Build Coastguard Worker 663*6a54128fSAndroid Build Coastguard WorkerAdd safety check so tune2fs will not attempt to set the inode size to 664*6a54128fSAndroid Build Coastguard Workerbe larger than the block size. 665*6a54128fSAndroid Build Coastguard Worker 666*6a54128fSAndroid Build Coastguard WorkerFix e2fsck so it can check a read-only root file system with an 667*6a54128fSAndroid Build Coastguard Workerexternal journal. (Addresses Debian Bug: #707030 668*6a54128fSAndroid Build Coastguard Worker 669*6a54128fSAndroid Build Coastguard WorkerFix off-line resizing of file systems with flex_bg && !resize_inode 670*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #696746) 671*6a54128fSAndroid Build Coastguard Worker 672*6a54128fSAndroid Build Coastguard WorkerFix e2image with large (> 32-bit) file systems (Addresses Debian Bug: 673*6a54128fSAndroid Build Coastguard Worker#703067) 674*6a54128fSAndroid Build Coastguard Worker 675*6a54128fSAndroid Build Coastguard WorkerEnhance chattr to allow clearing the extent flag if the kernel allows 676*6a54128fSAndroid Build Coastguard Workermigrating extent based files to use indirect blocks. 677*6a54128fSAndroid Build Coastguard Worker 678*6a54128fSAndroid Build Coastguard WorkerUpdate German translation. 679*6a54128fSAndroid Build Coastguard Worker 680*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bugs: #712429, 681*6a54128fSAndroid Build Coastguard Worker#712430, #707609) 682*6a54128fSAndroid Build Coastguard Worker 683*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging Issues (Addresses Debian Bug #708307) 684*6a54128fSAndroid Build Coastguard Worker 685*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 686*6a54128fSAndroid Build Coastguard Worker------------------ 687*6a54128fSAndroid Build Coastguard Worker 688*6a54128fSAndroid Build Coastguard WorkerUse secure_getenv() in preference to __secure_getenv(). 689*6a54128fSAndroid Build Coastguard Worker 690*6a54128fSAndroid Build Coastguard WorkerOptimize CPU utilization of ext2fs_bg_has_super(). 691*6a54128fSAndroid Build Coastguard Worker 692*6a54128fSAndroid Build Coastguard WorkerFix ext2fs_llseek() on 32-bit i386 systems to work correctly when 693*6a54128fSAndroid Build Coastguard WorkerSEEK_CUR is used with large files. 694*6a54128fSAndroid Build Coastguard Worker 695*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_read_inode_full() function will no longer use 696*6a54128fSAndroid Build Coastguard Workerfs->read_inode() if the caller has requested more than the base 128 697*6a54128fSAndroid Build Coastguard Workerbyte inode structure and the inode size is greater than 128 bytes. 698*6a54128fSAndroid Build Coastguard Worker 699*6a54128fSAndroid Build Coastguard WorkerFix build failure with --enable-jbd-debug. 700*6a54128fSAndroid Build Coastguard Worker 701*6a54128fSAndroid Build Coastguard WorkerClean up filtering of outputs for the regression tests by using a 702*6a54128fSAndroid Build Coastguard Workercommon sed script. 703*6a54128fSAndroid Build Coastguard Worker 704*6a54128fSAndroid Build Coastguard WorkerFix gcc -Wall and clang nits. 705*6a54128fSAndroid Build Coastguard Worker 706*6a54128fSAndroid Build Coastguard Worker 707*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.7 (January 21, 2013) 708*6a54128fSAndroid Build Coastguard Worker=================================== 709*6a54128fSAndroid Build Coastguard Worker 710*6a54128fSAndroid Build Coastguard WorkerAdd warnings to mke2fs, resize2fs, and tune2fs that the bigalloc and 711*6a54128fSAndroid Build Coastguard Workerquota features are still under development. For more information 712*6a54128fSAndroid Build Coastguard Workerplease see: 713*6a54128fSAndroid Build Coastguard Worker * https://ext4.wiki.kernel.org/index.php/Bigalloc 714*6a54128fSAndroid Build Coastguard Worker * https://ext4.wiki.kernel.org/index.php/Quota 715*6a54128fSAndroid Build Coastguard Worker 716*6a54128fSAndroid Build Coastguard WorkerAdd some new options to filefrag from Lustre's patches to e2fsprogs: 717*6a54128fSAndroid Build Coastguard Worker * add -k option to print extents in kB-sized units (like df -k) 718*6a54128fSAndroid Build Coastguard Worker * add -b {blocksize} to print extents in blocksize units 719*6a54128fSAndroid Build Coastguard Worker * add -e option to print extent format, even when FIBMAP is used 720*6a54128fSAndroid Build Coastguard Worker * add -X option to print extents in hexadecimal format 721*6a54128fSAndroid Build Coastguard Worker 722*6a54128fSAndroid Build Coastguard WorkerFix resize2fs so that it can handle off-line resizes of file systems 723*6a54128fSAndroid Build Coastguard Workerwith the flex_bg feature but without a resize_inode (or if we run out 724*6a54128fSAndroid Build Coastguard Workerof reserved gdt blocks). This also fixes a problem where if the user 725*6a54128fSAndroid Build Coastguard Workercreates a filesystem with a restricted number of reserved gdt blocks, 726*6a54128fSAndroid Build Coastguard Workeran off-line resize which grows the file system could potentially 727*6a54128fSAndroid Build Coastguard Workerresult in file system corruption. 728*6a54128fSAndroid Build Coastguard Worker 729*6a54128fSAndroid Build Coastguard WorkerFix a resize2fs bug which could cause it to corrupt bigalloc file 730*6a54128fSAndroid Build Coastguard Workersystems when doing an off-line resize. 731*6a54128fSAndroid Build Coastguard Worker 732*6a54128fSAndroid Build Coastguard WorkerFurther optimize resize2fs so it doesn't use quite as much CPU when 733*6a54128fSAndroid Build Coastguard Workerresizing very large file systems. 734*6a54128fSAndroid Build Coastguard Worker 735*6a54128fSAndroid Build Coastguard WorkerFixed 32-bit overflow bugs which could cause resize2fs to fail and 736*6a54128fSAndroid Build Coastguard Workerpossibly corrupt the file system while resizing 64-bit file systems. 737*6a54128fSAndroid Build Coastguard Worker 738*6a54128fSAndroid Build Coastguard WorkerFix a bug in mke2fs where parsing "-E resize=NNN" will result in a 739*6a54128fSAndroid Build Coastguard Workermke2fs crash due to a divide-by-zero if the 64bit file system feature 740*6a54128fSAndroid Build Coastguard Workeris enabled. 741*6a54128fSAndroid Build Coastguard Worker 742*6a54128fSAndroid Build Coastguard WorkerAdd better error checking to mke2fs to check for invalid parameters 743*6a54128fSAndroid Build Coastguard Workerwhen creating bigalloc file system. 744*6a54128fSAndroid Build Coastguard Worker 745*6a54128fSAndroid Build Coastguard WorkerWhen creating bigalloc filesystems, the -g option to mke2fs will now 746*6a54128fSAndroid Build Coastguard Workerspecify the number of clusters per block group. 747*6a54128fSAndroid Build Coastguard Worker 748*6a54128fSAndroid Build Coastguard WorkerAdd to debugfs the functionality to corrupt a specific file system 749*6a54128fSAndroid Build Coastguard Workerblock via the "zap_block" command. 750*6a54128fSAndroid Build Coastguard Worker 751*6a54128fSAndroid Build Coastguard WorkerAdd to debugfs the functionality to print out a hex dump of a block in 752*6a54128fSAndroid Build Coastguard Workerthe file system via the "block_dump" command. 753*6a54128fSAndroid Build Coastguard Worker 754*6a54128fSAndroid Build Coastguard WorkerAdd to debugfs the functionality to manipulate the extent tree 755*6a54128fSAndroid Build Coastguard Workerdirectly via the "extent_open" command. 756*6a54128fSAndroid Build Coastguard Worker 757*6a54128fSAndroid Build Coastguard WorkerFixed debugfs's mknod command so that it updates the block group 758*6a54128fSAndroid Build Coastguard Workerstatistics. 759*6a54128fSAndroid Build Coastguard Worker 760*6a54128fSAndroid Build Coastguard WorkerFix e2fsck so it can detect and fix inconsistencies in the interior 761*6a54128fSAndroid Build Coastguard Workernodes of an inode's extent tree. 762*6a54128fSAndroid Build Coastguard Worker 763*6a54128fSAndroid Build Coastguard WorkerFix a potential memory corruption failure in e2fsck's error path if 764*6a54128fSAndroid Build Coastguard Workerthe call to ext2fs_open2() fails. 765*6a54128fSAndroid Build Coastguard Worker 766*6a54128fSAndroid Build Coastguard WorkerFix e2fsck if its logging function is enabled in e2fsck.conf, and the 767*6a54128fSAndroid Build Coastguard Workerresulting file name for the log file is longer than 100 bytes, that it 768*6a54128fSAndroid Build Coastguard Workerproperly handles this situation instead of crashing. 769*6a54128fSAndroid Build Coastguard Worker 770*6a54128fSAndroid Build Coastguard WorkerE2fsck will now report the amount of memory that it attempted to 771*6a54128fSAndroid Build Coastguard Workerallocate when a memory allocation request fails, to make it easier to 772*6a54128fSAndroid Build Coastguard Workertrack down the problem. 773*6a54128fSAndroid Build Coastguard Worker 774*6a54128fSAndroid Build Coastguard WorkerFix mke2fs's handling of the mmp_update_interval option. (Addresses 775*6a54128fSAndroid Build Coastguard WorkerLustre Bug: LU-1888) 776*6a54128fSAndroid Build Coastguard Worker 777*6a54128fSAndroid Build Coastguard WorkerE2image can now include all data blocks in the e2image output file 778*6a54128fSAndroid Build Coastguard Workerwhen the user specifies the -a option. 779*6a54128fSAndroid Build Coastguard Worker 780*6a54128fSAndroid Build Coastguard WorkerIf e2fsprogs is compiled without --enable-quota, make sure that 781*6a54128fSAndroid Build Coastguard Workertune2fs can not turn on the feature for new-style quota support, since 782*6a54128fSAndroid Build Coastguard Workerafterwards, none of the e2fsprogs tools will be willing to touch that 783*6a54128fSAndroid Build Coastguard Workerfile system. 784*6a54128fSAndroid Build Coastguard Worker 785*6a54128fSAndroid Build Coastguard WorkerOptimize e2fsck's so that it uses much less CPU for large file 786*6a54128fSAndroid Build Coastguard Workersystems. This can result in significant speedups, especially on 787*6a54128fSAndroid Build Coastguard WorkerCPU-constrained systems. This was primarily done by optimizing 788*6a54128fSAndroid Build Coastguard Workerlibext2fs's bitmap functions. (Addresses Google Bug: #7534813) 789*6a54128fSAndroid Build Coastguard Worker 790*6a54128fSAndroid Build Coastguard WorkerFix debugfs's htree command so that all its messages are sent through 791*6a54128fSAndroid Build Coastguard Workerthe pager. 792*6a54128fSAndroid Build Coastguard Worker 793*6a54128fSAndroid Build Coastguard WorkerFixed debugfs's "dump_file" and "cat" functions work correctly 794*6a54128fSAndroid Build Coastguard Workeron file systems whose block size is greater than 8k. 795*6a54128fSAndroid Build Coastguard Worker 796*6a54128fSAndroid Build Coastguard WorkerFix e2freefrag so it works on 64-bit file systems, and so it uses much 797*6a54128fSAndroid Build Coastguard Workerless memory. (Addresses Google Bug: 7269948) 798*6a54128fSAndroid Build Coastguard Worker 799*6a54128fSAndroid Build Coastguard WorkerUpdate the spd_readdir.c file in the contrib directory to include some 800*6a54128fSAndroid Build Coastguard Workeradditions which were made in 2008 that didn't get folded into the 801*6a54128fSAndroid Build Coastguard Workerversion which we checked into the e2fsprogs source tree. These 802*6a54128fSAndroid Build Coastguard Workerenhancements include thread safety, support for readdir64_r(), and 803*6a54128fSAndroid Build Coastguard Workersafe_getenv() support in case spd_readdir.so is used for setuid binaries. 804*6a54128fSAndroid Build Coastguard Worker 805*6a54128fSAndroid Build Coastguard WorkerUpdate Czech, Dutch, French, German, Polish, Swedish, and Vietnamese 806*6a54128fSAndroid Build Coastguard Workertranslations 807*6a54128fSAndroid Build Coastguard Worker 808*6a54128fSAndroid Build Coastguard WorkerAdd a command to debugfs to create symlinks. 809*6a54128fSAndroid Build Coastguard Worker 810*6a54128fSAndroid Build Coastguard WorkerDocument the bigalloc feature in the mke2fs man page. (Addresses 811*6a54128fSAndroid Build Coastguard WorkerDebian Bug: #669730) 812*6a54128fSAndroid Build Coastguard Worker 813*6a54128fSAndroid Build Coastguard Worker 814*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 815*6a54128fSAndroid Build Coastguard Worker------------------ 816*6a54128fSAndroid Build Coastguard Worker 817*6a54128fSAndroid Build Coastguard WorkerFix gcc -Wall nits. 818*6a54128fSAndroid Build Coastguard Worker 819*6a54128fSAndroid Build Coastguard WorkerFix a spelling typo in the libext2fs texinfo documentation. 820*6a54128fSAndroid Build Coastguard Worker 821*6a54128fSAndroid Build Coastguard WorkerChange the output from "make check" so that tools such as emacs's "M-x 822*6a54128fSAndroid Build Coastguard Workercompile" does not mistake the output as containing a compiler error. 823*6a54128fSAndroid Build Coastguard Worker 824*6a54128fSAndroid Build Coastguard WorkerExport two new functions from libext2fs: ext2fs_extent_node_split() 825*6a54128fSAndroid Build Coastguard Workerand ext2fs_extent_goto2(). 826*6a54128fSAndroid Build Coastguard Worker 827*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_extents_fix_parents() was fixed so it does not modify the 828*6a54128fSAndroid Build Coastguard Workerlocation of the extent handle if its current location is at an 829*6a54128fSAndroid Build Coastguard Workerinterior node, rather than a leaf node of an inode's extent tree. 830*6a54128fSAndroid Build Coastguard Worker 831*6a54128fSAndroid Build Coastguard WorkerAdd a regression test to assure that e2fsck can correctly fix an 832*6a54128fSAndroid Build Coastguard Workerinconsistent interior node in an inode's extent tree. 833*6a54128fSAndroid Build Coastguard Worker 834*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_{mark,unmark,test}_block_bitmap_range2() functions now 835*6a54128fSAndroid Build Coastguard Workercorrectly support bigalloc file systems which use store block usage 836*6a54128fSAndroid Build Coastguard Workerinformation in units of clusters. 837*6a54128fSAndroid Build Coastguard Worker 838*6a54128fSAndroid Build Coastguard WorkerFixed the help text in the configure script for --enable-quota. 839*6a54128fSAndroid Build Coastguard Worker 840*6a54128fSAndroid Build Coastguard WorkerThe m68k-specific bitops code has been removed since they were 841*6a54128fSAndroid Build Coastguard Workerincorrectly treating bit numbers with the high bit set as signed 842*6a54128fSAndroid Build Coastguard Workerintegers. Furthermore, modern compilers do a good enough job 843*6a54128fSAndroid Build Coastguard Workeroptimizing the generic code there is no point in having the m68k 844*6a54128fSAndroid Build Coastguard Workerspecific asm statements. 845*6a54128fSAndroid Build Coastguard Worker 846*6a54128fSAndroid Build Coastguard WorkerFixed how we link the test programs so they always use the static 847*6a54128fSAndroid Build Coastguard Workerlibraries, so that we test using the libraries which we have just 848*6a54128fSAndroid Build Coastguard Workerbuilt. 849*6a54128fSAndroid Build Coastguard Worker 850*6a54128fSAndroid Build Coastguard WorkerUpdate config.guess and config.sub to the latest versions from the GNU 851*6a54128fSAndroid Build Coastguard Workerproject. 852*6a54128fSAndroid Build Coastguard Worker 853*6a54128fSAndroid Build Coastguard WorkerFixed the com_err.texinfo file so that it can produce a valid 854*6a54128fSAndroid Build Coastguard Workerpostscript/pdf printed output. 855*6a54128fSAndroid Build Coastguard Worker 856*6a54128fSAndroid Build Coastguard WorkerAdd a regression test which checks debugfs's ability to create 857*6a54128fSAndroid Build Coastguard Workersymlinks, named FIFO's, and device nodes. 858*6a54128fSAndroid Build Coastguard Worker 859*6a54128fSAndroid Build Coastguard WorkerAdd a function ext2fs_symlink(), which creates symlinks to the 860*6a54128fSAndroid Build Coastguard Workerlibext2fs library. 861*6a54128fSAndroid Build Coastguard Worker 862*6a54128fSAndroid Build Coastguard WorkerAdd debugging code so we can test old kernel interfaces for online 863*6a54128fSAndroid Build Coastguard Workerresize to resize2fs. This backwards compatibility checking is keyed 864*6a54128fSAndroid Build Coastguard Workeroff of the RESIZE2FS_KERNEL_VERSION, which is designed to allow us to 865*6a54128fSAndroid Build Coastguard Workertest the functionality of the kernel's older resize ioctls without 866*6a54128fSAndroid Build Coastguard Workerneeding to install an old version of resize2fs, and to also test a 867*6a54128fSAndroid Build Coastguard Workermodern resize2fs's ability to work with older kernels without having 868*6a54128fSAndroid Build Coastguard Workerto install an older version of the kernel. 869*6a54128fSAndroid Build Coastguard Worker 870*6a54128fSAndroid Build Coastguard Worker 871*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.6 (September 21, 2012) 872*6a54128fSAndroid Build Coastguard Worker===================================== 873*6a54128fSAndroid Build Coastguard Worker 874*6a54128fSAndroid Build Coastguard WorkerWhen mke2fs creates file systems with lazy itable initialization, the 875*6a54128fSAndroid Build Coastguard Workerprogress updates for writing the inode table happens so quickly that 876*6a54128fSAndroid Build Coastguard Workeron a serial console, the time to write the progress updates can be the 877*6a54128fSAndroid Build Coastguard Workerbottleneck. So mke2fs will now only update its progress indicators 878*6a54128fSAndroid Build Coastguard Workeronce a second. 879*6a54128fSAndroid Build Coastguard Worker 880*6a54128fSAndroid Build Coastguard WorkerResize2fs will skip initializing the inode tables if the kernel 881*6a54128fSAndroid Build Coastguard Workersupports lazy_itable_init, which speeds up growing off-line growth of 882*6a54128fSAndroid Build Coastguard Workeruninit_bg file systems significantly. Resize2fs will now also 883*6a54128fSAndroid Build Coastguard Workercorrectly set the itable_unused field in the block group descriptor to 884*6a54128fSAndroid Build Coastguard Workerspeed up the first e2fsck after the file system is grown. 885*6a54128fSAndroid Build Coastguard Worker 886*6a54128fSAndroid Build Coastguard WorkerResize2fs has been fixed so that on-line resizing of meta_bg file 887*6a54128fSAndroid Build Coastguard Workersystems work correctly. This is needed to grow file system which are 888*6a54128fSAndroid Build Coastguard Workerlarger than 16T. 889*6a54128fSAndroid Build Coastguard Worker 890*6a54128fSAndroid Build Coastguard WorkerResize2fs will now correctly handle resizing file systems to 16TB on 891*6a54128fSAndroid Build Coastguard Worker32-bit file systems when "16TB" is specified on the command line. 892*6a54128fSAndroid Build Coastguard Worker 893*6a54128fSAndroid Build Coastguard WorkerFix mke2fs so that it will be careful to set the reserved blocks ratio 894*6a54128fSAndroid Build Coastguard Workerlarger than 50%; this can happen when creating small file systems and 895*6a54128fSAndroid Build Coastguard Workerwhen the last block group is dropped because there are not enough 896*6a54128fSAndroid Build Coastguard Workerblocks to support the metadata blocks in the last block group. 897*6a54128fSAndroid Build Coastguard Worker 898*6a54128fSAndroid Build Coastguard WorkerFixed spelling mistake in debugfs's help message. 899*6a54128fSAndroid Build Coastguard Worker 900*6a54128fSAndroid Build Coastguard WorkerFixed a potential seg fault in e2fsck when there is an I/O error while 901*6a54128fSAndroid Build Coastguard Workerreading the superblock. 902*6a54128fSAndroid Build Coastguard Worker 903*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging Issues (Addresses Debian Bug #677497) 904*6a54128fSAndroid Build Coastguard Worker 905*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Sourceforge Bug: 906*6a54128fSAndroid Build Coastguard Worker#3559210) 907*6a54128fSAndroid Build Coastguard Worker 908*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 909*6a54128fSAndroid Build Coastguard Worker------------------ 910*6a54128fSAndroid Build Coastguard Worker 911*6a54128fSAndroid Build Coastguard WorkerThe configure option --enable-relative-symlink was broken so that it 912*6a54128fSAndroid Build Coastguard Workerneeded to be --enable-symlink-relative-symlinks. We will support both 913*6a54128fSAndroid Build Coastguard Workerfor at least two years, but then the wrong configure option will be 914*6a54128fSAndroid Build Coastguard Workerremoved. 915*6a54128fSAndroid Build Coastguard Worker 916*6a54128fSAndroid Build Coastguard WorkerFixed a regression introduced in 1.42.5 so the link order for 917*6a54128fSAndroid Build Coastguard Workere2fsprogs' libraries will be correct for both static and shared 918*6a54128fSAndroid Build Coastguard Workerlinking. (Addresses Sourceforge Bug: #3554345) 919*6a54128fSAndroid Build Coastguard Worker 920*6a54128fSAndroid Build Coastguard WorkerAdd support for e2fsprogs to be compiled using clang/LLVM. 921*6a54128fSAndroid Build Coastguard Worker 922*6a54128fSAndroid Build Coastguard WorkerFix portability problems on non-Linux systems: avoid compile failures 923*6a54128fSAndroid Build Coastguard Workeron systems that don't have malloc.h 924*6a54128fSAndroid Build Coastguard Worker 925*6a54128fSAndroid Build Coastguard WorkerFix f_mmp regression test suite so that debugfs gets killed if the 926*6a54128fSAndroid Build Coastguard Workertest is interrupted. 927*6a54128fSAndroid Build Coastguard Worker 928*6a54128fSAndroid Build Coastguard Worker 929*6a54128fSAndroid Build Coastguard Worker 930*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.5 (July 29, 2012) 931*6a54128fSAndroid Build Coastguard Worker================================ 932*6a54128fSAndroid Build Coastguard Worker 933*6a54128fSAndroid Build Coastguard WorkerFixed a bug with mke2fs where if there is only 8 inodes per block 934*6a54128fSAndroid Build Coastguard Workergroup, the calculation of the number of uninitialized inodes in the 935*6a54128fSAndroid Build Coastguard Workerfirst block group would go negative. This resulted in "mke2fs -N 256 936*6a54128fSAndroid Build Coastguard Worker-t ext4 /tmp/foo.img 256m" trying to write so many blocks that /tmp 937*6a54128fSAndroid Build Coastguard Workerwould run out of space. (Addresses Sourceforge Bug: #3528892) 938*6a54128fSAndroid Build Coastguard Worker 939*6a54128fSAndroid Build Coastguard WorkerFixed a bug in how e2fsck would uniquify directory entry names. 940*6a54128fSAndroid Build Coastguard Worker(AddressesSourceforge Bug: #3540545) 941*6a54128fSAndroid Build Coastguard Worker 942*6a54128fSAndroid Build Coastguard WorkerPreviously, e2fsck would only allow a mounted file system to be 943*6a54128fSAndroid Build Coastguard Workerchecked if it was the root file system and it was mounted read-only. 944*6a54128fSAndroid Build Coastguard WorkerNow it will allow any file system mounted read-only to be checked if 945*6a54128fSAndroid Build Coastguard Workerthe -f option is specified. This makes it easier to test how e2fsck 946*6a54128fSAndroid Build Coastguard Workerhandles checking file systems which are mounted without having to test 947*6a54128fSAndroid Build Coastguard Workeron the root file system. 948*6a54128fSAndroid Build Coastguard Worker 949*6a54128fSAndroid Build Coastguard WorkerFixed a problem if e2fsck where if the root file system is mounted 950*6a54128fSAndroid Build Coastguard Workerread-only, e2fsck would not clear an error indication in the journal 951*6a54128fSAndroid Build Coastguard Workersuperblock. Combined with a kernel bug, this would cause the e2fsck 952*6a54128fSAndroid Build Coastguard Workerto check the file system after every single boot. 953*6a54128fSAndroid Build Coastguard Worker 954*6a54128fSAndroid Build Coastguard WorkerThe e4defrag program can now handle device symlinks, such as 955*6a54128fSAndroid Build Coastguard Worker/dev/mapper/testvg-testlv, instead of insisting on a less 956*6a54128fSAndroid Build Coastguard Workerhuman-friendly name such as /dev/dm-2. (Addresses Red Hat Bugzilla: 957*6a54128fSAndroid Build Coastguard Worker#707209) 958*6a54128fSAndroid Build Coastguard Worker 959*6a54128fSAndroid Build Coastguard WorkerFixed filefrag so it will not crash with a segfault on files from a 960*6a54128fSAndroid Build Coastguard Workervirtual file system such as /proc. (e.g., "filefrag 961*6a54128fSAndroid Build Coastguard Worker/proc/partitions") 962*6a54128fSAndroid Build Coastguard Worker 963*6a54128fSAndroid Build Coastguard WorkerFixed filefrag so that it correctly reports the number of extents. 964*6a54128fSAndroid Build Coastguard Worker(Addresses Red Hat Bugzilla: #840848) 965*6a54128fSAndroid Build Coastguard Worker 966*6a54128fSAndroid Build Coastguard WorkerFixed a file descriptor leak in logsave which could cause it to hang. 967*6a54128fSAndroid Build Coastguard Worker(Addresses Debian Bug: #682592) 968*6a54128fSAndroid Build Coastguard Worker 969*6a54128fSAndroid Build Coastguard WorkerFixed e2fsck so that the file system is marked as containing an error 970*6a54128fSAndroid Build Coastguard Workerif the user chooses not to fix the quota usage information. 971*6a54128fSAndroid Build Coastguard Worker 972*6a54128fSAndroid Build Coastguard WorkerFixed tune2fs so that it correctly removes the quota feature when the 973*6a54128fSAndroid Build Coastguard Workerlast quota inode is removed. 974*6a54128fSAndroid Build Coastguard Worker 975*6a54128fSAndroid Build Coastguard WorkerFix tune2fs so that after removing a quota inode, the block bitmap is 976*6a54128fSAndroid Build Coastguard Workerupdated; otherwise, e2fsck would complain after running 'tune2fs -O 977*6a54128fSAndroid Build Coastguard Worker^quota <dev>'. 978*6a54128fSAndroid Build Coastguard Worker 979*6a54128fSAndroid Build Coastguard WorkerFix tune2fs so that when converting a file system from using legacy 980*6a54128fSAndroid Build Coastguard Workerquota files to the new quota file system feature with hidden quota 981*6a54128fSAndroid Build Coastguard Workerfiles, the accounting for these files is handled correctly so that 982*6a54128fSAndroid Build Coastguard Workere2fsck doesn't complain. 983*6a54128fSAndroid Build Coastguard Worker 984*6a54128fSAndroid Build Coastguard WorkerImproved e2fsck's verbose reporting statistics, and allow the more 985*6a54128fSAndroid Build Coastguard Workerverbose reporting to be enabled via /etc/e2fsck.conf. 986*6a54128fSAndroid Build Coastguard Worker 987*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging Issues (Addresses Debian Bug #678395) 988*6a54128fSAndroid Build Coastguard Worker 989*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bugs: #680114) 990*6a54128fSAndroid Build Coastguard Worker 991*6a54128fSAndroid Build Coastguard Worker 992*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 993*6a54128fSAndroid Build Coastguard Worker------------------ 994*6a54128fSAndroid Build Coastguard Worker 995*6a54128fSAndroid Build Coastguard WorkerFixed portability problems on other operating systems (e.g., Hurd and 996*6a54128fSAndroid Build Coastguard WorkerFreeBsd) caused by the attempted inclusion of <sys/quota.h>. 997*6a54128fSAndroid Build Coastguard Worker 998*6a54128fSAndroid Build Coastguard WorkerMake sure that shared libraries link with the shared libraries built 999*6a54128fSAndroid Build Coastguard Workerin the build tree, instead of the system provided libraries. 1000*6a54128fSAndroid Build Coastguard WorkerPreviously, libraries and executables were linked with the system 1001*6a54128fSAndroid Build Coastguard Workerlibraries if present, and possibly using static archives instead of 1002*6a54128fSAndroid Build Coastguard Workershared libraries. This was also problematic since if libext2fs.so is 1003*6a54128fSAndroid Build Coastguard Workerlinked with a static libcom_err.a from system, the build system would 1004*6a54128fSAndroid Build Coastguard Workerattempt to link without -lpthread. (Addresses Sourceforge Bug: 1005*6a54128fSAndroid Build Coastguard Worker#3542572) 1006*6a54128fSAndroid Build Coastguard Worker 1007*6a54128fSAndroid Build Coastguard Worker 1008*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.4 (June 12, 2012) 1009*6a54128fSAndroid Build Coastguard Worker================================ 1010*6a54128fSAndroid Build Coastguard Worker 1011*6a54128fSAndroid Build Coastguard WorkerFixed more 64-bit block number bugs (which could end up corrupting 1012*6a54128fSAndroid Build Coastguard Workerfile systems!) in e2fsck, debugfs, and libext2fs. 1013*6a54128fSAndroid Build Coastguard Worker 1014*6a54128fSAndroid Build Coastguard WorkerFixed e2fsck's handling of the journal's s_errno field. E2fsck was 1015*6a54128fSAndroid Build Coastguard Workernot properly propagating the journal's s_errno field to the superblock 1016*6a54128fSAndroid Build Coastguard Workerfield; it was not checking this field if the journal had already been 1017*6a54128fSAndroid Build Coastguard Workerreplayed, and if the journal *was* being replayed, the "error bit" 1018*6a54128fSAndroid Build Coastguard Workerwasn't getting flushed out to disk. 1019*6a54128fSAndroid Build Coastguard Worker 1020*6a54128fSAndroid Build Coastguard WorkerFixed a false positive complaint by e2fsck if all of the extents in 1021*6a54128fSAndroid Build Coastguard Workerthe last extent tree block are uninitialized and located after the end 1022*6a54128fSAndroid Build Coastguard Workerof the file as defined by i_size. 1023*6a54128fSAndroid Build Coastguard Worker 1024*6a54128fSAndroid Build Coastguard WorkerThe dumpe2fs will now display the journal's s_errno field if it is 1025*6a54128fSAndroid Build Coastguard Workernon-zero, and it will also display the journal's 64-bit feature flag 1026*6a54128fSAndroid Build Coastguard Workerif present. 1027*6a54128fSAndroid Build Coastguard Worker 1028*6a54128fSAndroid Build Coastguard WorkerFix e2fsck so that it always opens the device file in exclusive mode 1029*6a54128fSAndroid Build Coastguard Workerwhen it might need to modify the file system, and never if the -n 1030*6a54128fSAndroid Build Coastguard Workeroption is specified. (Previously, there were a few corner cases where 1031*6a54128fSAndroid Build Coastguard Workerit might get things wrong in either direction.) 1032*6a54128fSAndroid Build Coastguard Worker 1033*6a54128fSAndroid Build Coastguard WorkerE2fsck now correctly truncates or deallocates extent-mapped inodes on 1034*6a54128fSAndroid Build Coastguard Workerthe orphan list. The root cause was a bug in libext2fs's block 1035*6a54128fSAndroid Build Coastguard Workeriterator which could end up skipping an extent when the last block in 1036*6a54128fSAndroid Build Coastguard Workeran extent is removed, causing the current extent to be removed from 1037*6a54128fSAndroid Build Coastguard Workerthe extent tree. 1038*6a54128fSAndroid Build Coastguard Worker 1039*6a54128fSAndroid Build Coastguard WorkerE2fsck now correctly sets the global free block and inode counts when 1040*6a54128fSAndroid Build Coastguard Workertruncating or removing inodes on the orphan list in preen mode. 1041*6a54128fSAndroid Build Coastguard WorkerPreviously, it would leave these values would be set incorrectly, 1042*6a54128fSAndroid Build Coastguard Workerwhich is largely a cosmetic issue since the kernel no longer pays 1043*6a54128fSAndroid Build Coastguard Workerattention to those fields, but it can cause spurious complaints in 1044*6a54128fSAndroid Build Coastguard Workersubsequent e2fsck runs. 1045*6a54128fSAndroid Build Coastguard Worker 1046*6a54128fSAndroid Build Coastguard WorkerFix i_blocks accounting when the libext2fs library needs to add or 1047*6a54128fSAndroid Build Coastguard Workerremove an extent tree block on bigalloc file systems. 1048*6a54128fSAndroid Build Coastguard Worker 1049*6a54128fSAndroid Build Coastguard WorkerThe lsattr and chattr programs now support the No_COW flag for the 1050*6a54128fSAndroid Build Coastguard Workerbenefit of btrfs. 1051*6a54128fSAndroid Build Coastguard Worker 1052*6a54128fSAndroid Build Coastguard WorkerDebugfs now interprets date strings of the form @ddd as ddd seconds 1053*6a54128fSAndroid Build Coastguard Workerafter the beginning of the epoch. This is handy when setting an inode 1054*6a54128fSAndroid Build Coastguard Workernumber into the d_time field when debugging orphan list handling. 1055*6a54128fSAndroid Build Coastguard Worker 1056*6a54128fSAndroid Build Coastguard WorkerFix a precedence bug with built-in quota support which might result in 1057*6a54128fSAndroid Build Coastguard Workere2fsck paying attention to the quota inode field even if the built-in 1058*6a54128fSAndroid Build Coastguard Workerquota feature flag is not set. Fortunately, in practice that 1059*6a54128fSAndroid Build Coastguard Workersuperblock field should be zero for non-built-in quota file systems, 1060*6a54128fSAndroid Build Coastguard Workerso it's unlikely this bug would have caused problems. 1061*6a54128fSAndroid Build Coastguard Worker 1062*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bugs: #674453, 1063*6a54128fSAndroid Build Coastguard Worker#674694) 1064*6a54128fSAndroid Build Coastguard Worker 1065*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 1066*6a54128fSAndroid Build Coastguard Worker------------------ 1067*6a54128fSAndroid Build Coastguard Worker 1068*6a54128fSAndroid Build Coastguard WorkerThe regression test suite can now run the integration tests in the 1069*6a54128fSAndroid Build Coastguard Workertests directory in parallel, via "make -jN check". 1070*6a54128fSAndroid Build Coastguard Worker 1071*6a54128fSAndroid Build Coastguard WorkerAdd new test, f_zero_extent_length which tests e2fsck's handling of 1072*6a54128fSAndroid Build Coastguard Workerthe case where all of the extents in the last extent tree block are 1073*6a54128fSAndroid Build Coastguard Workeruninitialized extents after i_size. 1074*6a54128fSAndroid Build Coastguard Worker 1075*6a54128fSAndroid Build Coastguard WorkerAdd a new test, f_jnl_errno, which checks handling of an error 1076*6a54128fSAndroid Build Coastguard Workerindication set in the journal superblock. 1077*6a54128fSAndroid Build Coastguard Worker 1078*6a54128fSAndroid Build Coastguard WorkerFix the test f_jnl_64bit so that it properly checks e2fsck's handling 1079*6a54128fSAndroid Build Coastguard Workerof a 64-bit journal. 1080*6a54128fSAndroid Build Coastguard Worker 1081*6a54128fSAndroid Build Coastguard WorkerAdd two tests, f_orphan_indirect_inode and f_orphan_extent_inode which 1082*6a54128fSAndroid Build Coastguard Workertests e2fsck's handling of orphan inodes in preen mode, and truncation 1083*6a54128fSAndroid Build Coastguard Workerof extent inodes on the orphan list. 1084*6a54128fSAndroid Build Coastguard Worker 1085*6a54128fSAndroid Build Coastguard WorkerFixed more OS X portability issues. 1086*6a54128fSAndroid Build Coastguard Worker 1087*6a54128fSAndroid Build Coastguard Worker 1088*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.3 (May 14, 2012) 1089*6a54128fSAndroid Build Coastguard Worker=============================== 1090*6a54128fSAndroid Build Coastguard Worker 1091*6a54128fSAndroid Build Coastguard WorkerFix a bug in the Unix I/O manager which could cause corruption of file 1092*6a54128fSAndroid Build Coastguard Workersystems with more than 16TB when e2fsprogs is compiled in 32-bit mode 1093*6a54128fSAndroid Build Coastguard Worker(i.e., when unsigned long is 32-bits). Also fix a bug which caused 1094*6a54128fSAndroid Build Coastguard Workerdumpe2fs to incorrectly display block numbers > 32-bits. 1095*6a54128fSAndroid Build Coastguard Worker 1096*6a54128fSAndroid Build Coastguard WorkerImprove the support for integrated quota files (where quota is a first 1097*6a54128fSAndroid Build Coastguard Workerclass supported feature using hidden files in the ext4 file system). 1098*6a54128fSAndroid Build Coastguard WorkerPreviously the quota file was getting rewritten even when it was not 1099*6a54128fSAndroid Build Coastguard Workernecessary, and e2fsck would erroneously try to hide quota files which 1100*6a54128fSAndroid Build Coastguard Workerwere already hidden. 1101*6a54128fSAndroid Build Coastguard Worker 1102*6a54128fSAndroid Build Coastguard WorkerQuiet complaints in e2fsck when the total free blocks or inodes are 1103*6a54128fSAndroid Build Coastguard Workerincorrect in the superblock after an system crash, since we don't 1104*6a54128fSAndroid Build Coastguard Workerupdate nor depend on the superblock summaries at each commit boundary. 1105*6a54128fSAndroid Build Coastguard Worker 1106*6a54128fSAndroid Build Coastguard WorkerFixed a regression introduced in 1.42.2 which would cause applications 1107*6a54128fSAndroid Build Coastguard Workeroutside of e2fsprogs which did not pass the EXT2_FLAG_64BIT (and so 1108*6a54128fSAndroid Build Coastguard Workerwould were still using the legacy 32-bit bitmaps) to crash. This was 1109*6a54128fSAndroid Build Coastguard Workerdue to missing 32-bit compat code in side the function 1110*6a54128fSAndroid Build Coastguard Workerext2fs_find_first_zero_generic_bmap(). (Addresses Red Hat Bugzilla: 1111*6a54128fSAndroid Build Coastguard Worker#808421) 1112*6a54128fSAndroid Build Coastguard Worker 1113*6a54128fSAndroid Build Coastguard WorkerFix a bug which would cause mke2fs to fail creating the journal if 1114*6a54128fSAndroid Build Coastguard Worker/etc/mtab and /proc/mounts are missing. (Addresses Sourceforge Bug: 1115*6a54128fSAndroid Build Coastguard Worker#3509398) 1116*6a54128fSAndroid Build Coastguard Worker 1117*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. 1118*6a54128fSAndroid Build Coastguard Worker 1119*6a54128fSAndroid Build Coastguard WorkerUpdate Czech, Dutch, French, German, Polish, Swedish, and Vietnamese 1120*6a54128fSAndroid Build Coastguard Workertranslations 1121*6a54128fSAndroid Build Coastguard Worker 1122*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging issues. 1123*6a54128fSAndroid Build Coastguard Worker 1124*6a54128fSAndroid Build Coastguard Worker 1125*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 1126*6a54128fSAndroid Build Coastguard Worker------------------ 1127*6a54128fSAndroid Build Coastguard Worker 1128*6a54128fSAndroid Build Coastguard WorkerChange the nonsensically wrong types in the function signature of the 1129*6a54128fSAndroid Build Coastguard Workerinline function ext2fs_find_first_zero_block_bitmap2(). This was 1130*6a54128fSAndroid Build Coastguard Workercaused by a cut and paste error; fortunately no code in e2fsprogs used 1131*6a54128fSAndroid Build Coastguard Workerthis inline function, and there are any users of this functions 1132*6a54128fSAndroid Build Coastguard Workeroutside of e2fsprogs. 1133*6a54128fSAndroid Build Coastguard Worker 1134*6a54128fSAndroid Build Coastguard WorkerAdd support for systems which have valloc(), but which do have 1135*6a54128fSAndroid Build Coastguard Workerposix_memalign() nor memalign() (such as MacOS 10.5). 1136*6a54128fSAndroid Build Coastguard Worker 1137*6a54128fSAndroid Build Coastguard WorkerRefactor and clean up the allocation of aligned buffers for Direct I/O 1138*6a54128fSAndroid Build Coastguard Workersupport. Previously some allocations were requesting a greater 1139*6a54128fSAndroid Build Coastguard Workeralignment factor that what was strictly necessary. Also optimize 1140*6a54128fSAndroid Build Coastguard Workerreading and writing bitmaps using Direct I/O when the size of the 1141*6a54128fSAndroid Build Coastguard Workerbitmap did not fully cover the file system blocksize. 1142*6a54128fSAndroid Build Coastguard Worker 1143*6a54128fSAndroid Build Coastguard WorkerReserve the codepoints for the INCOMPAT features LARGEDATA and 1144*6a54128fSAndroid Build Coastguard WorkerINLINEDATA. 1145*6a54128fSAndroid Build Coastguard Worker 1146*6a54128fSAndroid Build Coastguard WorkerImproved the regression test suite by adding some new integration 1147*6a54128fSAndroid Build Coastguard Workertests (f_jnl_32bit, f_jnl_64bit) which detect breakage of the on-disk 1148*6a54128fSAndroid Build Coastguard Workerjbd2 format, as well as f_eofblocks which tests the new handling of 1149*6a54128fSAndroid Build Coastguard Workeruninitialized and initialized blocks beyond i_size. Also add a new 1150*6a54128fSAndroid Build Coastguard Workerunit test which verifies 32-bit bitmaps support and the new 1151*6a54128fSAndroid Build Coastguard Workerfind_first_zero primitives. 1152*6a54128fSAndroid Build Coastguard Worker 1153*6a54128fSAndroid Build Coastguard WorkerAdd a few dependencies to fix parallel (make -j) builds. 1154*6a54128fSAndroid Build Coastguard Worker 1155*6a54128fSAndroid Build Coastguard WorkerRemoved bash'isms which were breaking the regression test suite on 1156*6a54128fSAndroid Build Coastguard Workersystems where /bin/sh is not bash. 1157*6a54128fSAndroid Build Coastguard Worker 1158*6a54128fSAndroid Build Coastguard WorkerThe config.guess and config.sub have been updated to the 2012-02-10 1159*6a54128fSAndroid Build Coastguard Workerversion. 1160*6a54128fSAndroid Build Coastguard Worker 1161*6a54128fSAndroid Build Coastguard WorkerFix a portability problem caused by assuming the present of mntent.h 1162*6a54128fSAndroid Build Coastguard Workermeans that setmntent() exists. Instead, explicitly test for this in 1163*6a54128fSAndroid Build Coastguard Workerthe configure script. 1164*6a54128fSAndroid Build Coastguard Worker 1165*6a54128fSAndroid Build Coastguard WorkerIf the sys/signal.h header file does not exist, don't try to include 1166*6a54128fSAndroid Build Coastguard Workerit, since it's not available on all systems. 1167*6a54128fSAndroid Build Coastguard Worker 1168*6a54128fSAndroid Build Coastguard WorkerAdd support for systems that do not support getpwuid_r() 1169*6a54128fSAndroid Build Coastguard Worker 1170*6a54128fSAndroid Build Coastguard WorkerThe configure script now supports a new option, 1171*6a54128fSAndroid Build Coastguard Worker--enable-relative-symlinks, which will install relative symlinks for 1172*6a54128fSAndroid Build Coastguard Workerthe ELF shared library files. (Addresses Sourceforge Bug: #3520767). 1173*6a54128fSAndroid Build Coastguard Worker 1174*6a54128fSAndroid Build Coastguard WorkerWhen building BSD shared libraries make sure the LDFLAGS variable is 1175*6a54128fSAndroid Build Coastguard Workerpassed to the linker. Fixing this allows, for example, e2fsprogs to 1176*6a54128fSAndroid Build Coastguard Workerbe built in 32-bit mode on Mac OS X Lion (Addresses Sourceforge Bug: 1177*6a54128fSAndroid Build Coastguard Worker#3517272) 1178*6a54128fSAndroid Build Coastguard Worker 1179*6a54128fSAndroid Build Coastguard WorkerFix gcc -Wall nitpicks 1180*6a54128fSAndroid Build Coastguard Worker 1181*6a54128fSAndroid Build Coastguard Worker 1182*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.2 (March 27, 2012) 1183*6a54128fSAndroid Build Coastguard Worker================================= 1184*6a54128fSAndroid Build Coastguard Worker 1185*6a54128fSAndroid Build Coastguard WorkerThe resize2fs program uses much less CPU and is much faster for very 1186*6a54128fSAndroid Build Coastguard Workerlarge file systems. (Addresses Debian Bug: #663237) 1187*6a54128fSAndroid Build Coastguard Worker 1188*6a54128fSAndroid Build Coastguard WorkerThe seti and freei commands in debugfs can now take an optional length 1189*6a54128fSAndroid Build Coastguard Workerargument to set and clear a contiguous range of inodes. 1190*6a54128fSAndroid Build Coastguard Worker 1191*6a54128fSAndroid Build Coastguard WorkerE2fsck will now make explicit checks for the EOFBLOCKS_FL, since we 1192*6a54128fSAndroid Build Coastguard Workerplan to remove support for it from the kernel file system driver. It 1193*6a54128fSAndroid Build Coastguard Workerreally wasn't very useful and was causing more problems than it 1194*6a54128fSAndroid Build Coastguard Workersolves. Since e2fsck will complain if inodes that should have 1195*6a54128fSAndroid Build Coastguard WorkerEOFBLOCKS_FL do not have the flag set, we are going to remove this 1196*6a54128fSAndroid Build Coastguard Workercheck from e2fsprogs first, and then only remove the flag from the 1197*6a54128fSAndroid Build Coastguard Workerkernel much later. 1198*6a54128fSAndroid Build Coastguard Worker 1199*6a54128fSAndroid Build Coastguard WorkerThe mke2fs program can now use direct I/O via "mke2fs -D". This will 1200*6a54128fSAndroid Build Coastguard Workerslow down the mke2fs, but it makes it more polite on a loaded server 1201*6a54128fSAndroid Build Coastguard Workerby limiting the amount of memory that gets dirtied by mke2fs when it 1202*6a54128fSAndroid Build Coastguard Workeris using buffered I/O. 1203*6a54128fSAndroid Build Coastguard Worker 1204*6a54128fSAndroid Build Coastguard WorkerE2fsck was needlessly closing and re-opening the file system as a side 1205*6a54128fSAndroid Build Coastguard Workereffect of adding Multiple Mount Protection (MMP). This isn't 1206*6a54128fSAndroid Build Coastguard Workernecessary for non-MMP file systems, so drop it. 1207*6a54128fSAndroid Build Coastguard Worker 1208*6a54128fSAndroid Build Coastguard WorkerPrint errors returned by ext2fs_open2() and ext2fs_check_desc() so we 1209*6a54128fSAndroid Build Coastguard Workercan more easily diagnose memory allocation failures caused by 1210*6a54128fSAndroid Build Coastguard Workerinsufficient memory. E2fsck will now abort if there are memory 1211*6a54128fSAndroid Build Coastguard Workerallocation failures when the file system is initially opened and 1212*6a54128fSAndroid Build Coastguard Workerduring the block group descriptor checks. (Addresses Google Bug: 1213*6a54128fSAndroid Build Coastguard Worker#6208183) 1214*6a54128fSAndroid Build Coastguard Worker 1215*6a54128fSAndroid Build Coastguard WorkerIf there are incorrect block group checks, e2fsck will now report the 1216*6a54128fSAndroid Build Coastguard Workerincorrect and corrected checksum values. 1217*6a54128fSAndroid Build Coastguard Worker 1218*6a54128fSAndroid Build Coastguard WorkerThe e2fsck program can now write log files containing the details of 1219*6a54128fSAndroid Build Coastguard Workerthe problems that were found and fixed directly, via configuration 1220*6a54128fSAndroid Build Coastguard Workerparameters in /etc/e2fsck.conf. 1221*6a54128fSAndroid Build Coastguard Worker 1222*6a54128fSAndroid Build Coastguard WorkerAdded the ability to limit the number of messages reported by e2fsck 1223*6a54128fSAndroid Build Coastguard Workerfor a given problem type. This avoids a potential bottleneck if there 1224*6a54128fSAndroid Build Coastguard Workeris a serial console which can cause a boot sequence to take a long 1225*6a54128fSAndroid Build Coastguard Workertime if e2fsck needs to report many, many file system errors. 1226*6a54128fSAndroid Build Coastguard Worker 1227*6a54128fSAndroid Build Coastguard WorkerThe dumpe2fs, debugfs, and tune2fs now use rbtree bitmaps, which cause 1228*6a54128fSAndroid Build Coastguard Workerthem to use much less memory for large file systems. 1229*6a54128fSAndroid Build Coastguard Worker 1230*6a54128fSAndroid Build Coastguard WorkerThe dumpe2fs program will now print the expected block group checksum 1231*6a54128fSAndroid Build Coastguard Workerif it is incorrect. This helps to diagnose problems caused by 1232*6a54128fSAndroid Build Coastguard Workerincorrect block group checksums. 1233*6a54128fSAndroid Build Coastguard Worker 1234*6a54128fSAndroid Build Coastguard WorkerE2fsck now checks for extents with a zero length, since the kernel 1235*6a54128fSAndroid Build Coastguard Workerwill oops if it comes across such a corrupted data structure. (See 1236*6a54128fSAndroid Build Coastguard Workerhttps://bugzilla.kernel.org/show_bug.cgi?id=42859) 1237*6a54128fSAndroid Build Coastguard Worker 1238*6a54128fSAndroid Build Coastguard WorkerE2fsck has a number of bugs relating to discard that have been fixed. 1239*6a54128fSAndroid Build Coastguard Worker(1) Fixed a bug which could cause e2fsck to discard portions of the 1240*6a54128fSAndroid Build Coastguard Workerinode table which were actually in use. (2) E2fsck will now avoid 1241*6a54128fSAndroid Build Coastguard Workerusing discard if the block device doesn't zero data on discard, since 1242*6a54128fSAndroid Build Coastguard Workerotherwise this could cause problems if the file system gets corrupted 1243*6a54128fSAndroid Build Coastguard Workerin the future. (3) E2fsck will now avoid using discard when it is run 1244*6a54128fSAndroid Build Coastguard Workerin read-only mode. (4) Fixed a bug which caused e2fsck to not issue 1245*6a54128fSAndroid Build Coastguard Workerdiscards in the last block group. 1246*6a54128fSAndroid Build Coastguard Worker 1247*6a54128fSAndroid Build Coastguard WorkerE2fsck's CPU utilization in pass 5 has been optimized, which will 1248*6a54128fSAndroid Build Coastguard Workerspeed up e2fsck slightly. 1249*6a54128fSAndroid Build Coastguard Worker 1250*6a54128fSAndroid Build Coastguard WorkerE2image will now skip copying uninitialized bitmap and inode table 1251*6a54128fSAndroid Build Coastguard Workerblocks. 1252*6a54128fSAndroid Build Coastguard Worker 1253*6a54128fSAndroid Build Coastguard WorkerFixed mke2fs -S so it does not corrupt the first block group's 1254*6a54128fSAndroid Build Coastguard Workerinformation. 1255*6a54128fSAndroid Build Coastguard Worker 1256*6a54128fSAndroid Build Coastguard WorkerE2fsck will now check the new sysfs interface to determine if we are 1257*6a54128fSAndroid Build Coastguard Workerusing the battery or AC mains. (Addresses SourceForge Bug: #3439277) 1258*6a54128fSAndroid Build Coastguard Worker 1259*6a54128fSAndroid Build Coastguard WorkerUpdated/fixed various man pages. (Addresses Debian Bug: #665427) 1260*6a54128fSAndroid Build Coastguard Worker 1261*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging issues. (Addresses Debian Bug: #665885) 1262*6a54128fSAndroid Build Coastguard Worker 1263*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 1264*6a54128fSAndroid Build Coastguard Worker------------------ 1265*6a54128fSAndroid Build Coastguard Worker 1266*6a54128fSAndroid Build Coastguard WorkerFixed various portability issues for non-Linux systems, particularly 1267*6a54128fSAndroid Build Coastguard WorkerMacOS X, as well as Linux systems running with the just-released glibc 1268*6a54128fSAndroid Build Coastguard Worker2.15. 1269*6a54128fSAndroid Build Coastguard Worker 1270*6a54128fSAndroid Build Coastguard WorkerFix file descriptor leak in ext2fs_close() if the file system with 1271*6a54128fSAndroid Build Coastguard Workeruninit_bg is opened read/only with a backup superblock. (Addresses 1272*6a54128fSAndroid Build Coastguard WorkerSourceForge Bug: #3444351) 1273*6a54128fSAndroid Build Coastguard Worker 1274*6a54128fSAndroid Build Coastguard WorkerFixed an invalid return in a non-void function in the quota code. 1275*6a54128fSAndroid Build Coastguard Worker(Addresses SourceForge Bug: #3468423) 1276*6a54128fSAndroid Build Coastguard Worker 1277*6a54128fSAndroid Build Coastguard WorkerFixed the debian rules file so that the calls to dpkg-buildflags works 1278*6a54128fSAndroid Build Coastguard Workerwhen the shell is dash. 1279*6a54128fSAndroid Build Coastguard Worker 1280*6a54128fSAndroid Build Coastguard WorkerThe debian package build now uses V=1 so that there is more 1281*6a54128fSAndroid Build Coastguard Workerinformation about potential build failures in debian build logs. 1282*6a54128fSAndroid Build Coastguard Worker 1283*6a54128fSAndroid Build Coastguard WorkerIf the uninit flags get cleared by functions such as 1284*6a54128fSAndroid Build Coastguard Workerext2fs_new_inode() or ext2fs_new_block2(), we now make sure the 1285*6a54128fSAndroid Build Coastguard Workersuperblock is marked dirty and the block group descriptor checksum is 1286*6a54128fSAndroid Build Coastguard Workerupdated if necessary. 1287*6a54128fSAndroid Build Coastguard Worker 1288*6a54128fSAndroid Build Coastguard WorkerThe debian rules file will now try to load debian/rules.custom of it 1289*6a54128fSAndroid Build Coastguard Workerexists. This file can skip various builds for speed reasons if there 1290*6a54128fSAndroid Build Coastguard Workeris no need for the e2fsck-static or udeb packages. Available 1291*6a54128fSAndroid Build Coastguard Workercustomizations in the rules file includes SKIP_STATIC=yes, 1292*6a54128fSAndroid Build Coastguard WorkerSKIP_BF=yes, and SKIP_DIETLIBC=yes. 1293*6a54128fSAndroid Build Coastguard Worker 1294*6a54128fSAndroid Build Coastguard WorkerIn addition, if the file misc/mke2fs.conf.custom.in exists in the 1295*6a54128fSAndroid Build Coastguard Workersource tree, it will be used instead of the standard misc.conf file in 1296*6a54128fSAndroid Build Coastguard Workerthe upstream sources. This makes it easier for Debian-derived systems 1297*6a54128fSAndroid Build Coastguard Workerto distribute a custom mke2fs.conf file without having to worry about 1298*6a54128fSAndroid Build Coastguard Workermerge issues if future versions of e2fsprogs makes changes in the 1299*6a54128fSAndroid Build Coastguard Workerupstream default version of mke2fs.conf. 1300*6a54128fSAndroid Build Coastguard Worker 1301*6a54128fSAndroid Build Coastguard Worker 1302*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42.1 (February 17, 2012) 1303*6a54128fSAndroid Build Coastguard Worker=================================== 1304*6a54128fSAndroid Build Coastguard Worker 1305*6a54128fSAndroid Build Coastguard WorkerThe mke2fs and e2fsck now use significantly less memory when creating 1306*6a54128fSAndroid Build Coastguard Workeror checking very large file systems. This was enabled by adding 1307*6a54128fSAndroid Build Coastguard Workerextent-based bitmaps which are stored using a red-block tree, since 1308*6a54128fSAndroid Build Coastguard Workerblock and inode allocations tend to be contiguous. 1309*6a54128fSAndroid Build Coastguard Worker 1310*6a54128fSAndroid Build Coastguard WorkerThe command mke2fs -S is used as a last ditch recovery command to 1311*6a54128fSAndroid Build Coastguard Workerwrite new superblock and block group descriptors, but _not_ to destroy 1312*6a54128fSAndroid Build Coastguard Workerthe inode table in hopes of recovering from a badly corrupted file 1313*6a54128fSAndroid Build Coastguard Workersystem. So if the uninit_bg feature is enabled, mke2fs -S will now 1314*6a54128fSAndroid Build Coastguard Workerset the unused inodes count field to zero. Otherwise, e2fsck -fy 1315*6a54128fSAndroid Build Coastguard Workerafter using mke2fs -S would leave the file system completely empty. 1316*6a54128fSAndroid Build Coastguard Worker 1317*6a54128fSAndroid Build Coastguard WorkerSince mke2fs recognizes mke3fs in argv[0] to mean "mkfs.ext3", also 1318*6a54128fSAndroid Build Coastguard Workerhonor "mke4fs" to work the same as "mke2fs.ext4", since RHEL5 has 1319*6a54128fSAndroid Build Coastguard Workerinstalled an mke2fs binary using that name. 1320*6a54128fSAndroid Build Coastguard Worker 1321*6a54128fSAndroid Build Coastguard WorkerThe usage and help messages for the -G, -t and -T options in mke2fs 1322*6a54128fSAndroid Build Coastguard Workerhave been fixed. 1323*6a54128fSAndroid Build Coastguard Worker 1324*6a54128fSAndroid Build Coastguard WorkerIf e2fsck needs to use the backup group descriptors, the 1325*6a54128fSAndroid Build Coastguard Workerext2fs_open2() function clears the UNINIT bits to ensure all of the 1326*6a54128fSAndroid Build Coastguard Workerinodes in the file systems get scanned. However, the code which reset 1327*6a54128fSAndroid Build Coastguard Workerthe UNINIT flags did not also recalculate the checksum, which produced 1328*6a54128fSAndroid Build Coastguard Workermany spurious (and scary) e2fsck messages. This has been fixed by 1329*6a54128fSAndroid Build Coastguard Workerresetting checksums when the UNINIT bits are cleared. 1330*6a54128fSAndroid Build Coastguard Worker 1331*6a54128fSAndroid Build Coastguard WorkerRelax a check in e2fsck which required that the block bitmap to be 1332*6a54128fSAndroid Build Coastguard Workerinitialized when the inode bitmap is in use. This will allow us to 1333*6a54128fSAndroid Build Coastguard Workereventually eliminate code from the kernel which forcibly initialized 1334*6a54128fSAndroid Build Coastguard Workerthe block bitmap when the inode bitmap is first used, requiring an 1335*6a54128fSAndroid Build Coastguard Workerextra journal credit and disk write. (Addresses Google Bug: #5944440) 1336*6a54128fSAndroid Build Coastguard Worker 1337*6a54128fSAndroid Build Coastguard WorkerMake sure rdebugfs (which may be installed setuid or setgid disk) does 1338*6a54128fSAndroid Build Coastguard Workernot honor environment variables if euid != uid or egid != gid. 1339*6a54128fSAndroid Build Coastguard Worker 1340*6a54128fSAndroid Build Coastguard WorkerDebugfs's ncheck command has been optimized and now is much more 1341*6a54128fSAndroid Build Coastguard Workerrobust with faced with corrupted file systems. The ncheck command 1342*6a54128fSAndroid Build Coastguard Workeralso now has a -c option which will verify the file type information 1343*6a54128fSAndroid Build Coastguard Workerin the directory entry to see if matches the inode's mode bits. This 1344*6a54128fSAndroid Build Coastguard Workeris extremely useful when trying to use debugsfs to determine which 1345*6a54128fSAndroid Build Coastguard Workerparts of the file system metadata can be trusted. 1346*6a54128fSAndroid Build Coastguard Worker 1347*6a54128fSAndroid Build Coastguard WorkerE2image will try to use ftruncate64() to set the i_size for raw 1348*6a54128fSAndroid Build Coastguard Workerimages, instead of writing a single null byte. This avoid allocating 1349*6a54128fSAndroid Build Coastguard Workeran extra block to the raw image, for those file systems and/or 1350*6a54128fSAndroid Build Coastguard Workeroperating systems that support this. (Linux does.) In addition, fix 1351*6a54128fSAndroid Build Coastguard Workera logic bug that caused the file to not be properly extended if the 1352*6a54128fSAndroid Build Coastguard Workersize of the last hole was exactly an multiple of a megabyte. 1353*6a54128fSAndroid Build Coastguard Worker 1354*6a54128fSAndroid Build Coastguard WorkerFixed a bug in resize2fs where for 1k and 2k file systems, where 1355*6a54128fSAndroid Build Coastguard Workers_first_data_block is non-zero, this wasn't taken into account when 1356*6a54128fSAndroid Build Coastguard Workercalculate the minimum file system size for use with the -M option. 1357*6a54128fSAndroid Build Coastguard Worker 1358*6a54128fSAndroid Build Coastguard WorkerFixed the badblocks program to honor the -s flag when in read-only -t 1359*6a54128fSAndroid Build Coastguard Workermode. (Addresses Debian Bug #646629) 1360*6a54128fSAndroid Build Coastguard Worker 1361*6a54128fSAndroid Build Coastguard WorkerUpdate Czech, Dutch, French, Polish, and Swedish translations from the 1362*6a54128fSAndroid Build Coastguard WorkerTranslation Project. 1363*6a54128fSAndroid Build Coastguard Worker 1364*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging issues so that dpkg-buildflags is used 1365*6a54128fSAndroid Build Coastguard Workerif present, which allows e2fsprogs to be built with security hardening 1366*6a54128fSAndroid Build Coastguard Workerflags. (Addresses Debian Bugs: #654457) 1367*6a54128fSAndroid Build Coastguard Worker 1368*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 1369*6a54128fSAndroid Build Coastguard Worker------------------ 1370*6a54128fSAndroid Build Coastguard Worker 1371*6a54128fSAndroid Build Coastguard WorkerFix a bug in ext2fs_clear_generic_bmap() when used for 32-bit bitmaps. 1372*6a54128fSAndroid Build Coastguard WorkerThis was only an issue for programs compiled against e2fsprogs 1.41 1373*6a54128fSAndroid Build Coastguard Workerthat manipulate bitmaps directly. (Addresses Sourceforge Bugs: 1374*6a54128fSAndroid Build Coastguard Worker#3451486) 1375*6a54128fSAndroid Build Coastguard Worker 1376*6a54128fSAndroid Build Coastguard WorkerThe libext2fs library now uses sysconf() to fetch the page size, instead 1377*6a54128fSAndroid Build Coastguard Workerof the deprecated getpagesize(). 1378*6a54128fSAndroid Build Coastguard Worker 1379*6a54128fSAndroid Build Coastguard WorkerThe ext2fs_get_pathname() function will return a partial path if an a 1380*6a54128fSAndroid Build Coastguard Workerdirectory in the path is not a directory, displaying it as an inode 1381*6a54128fSAndroid Build Coastguard Workernumber in angle brackets instead of giving up and displaying an error. 1382*6a54128fSAndroid Build Coastguard WorkerThis is much more helpful when a user is trying to debug a corrupted 1383*6a54128fSAndroid Build Coastguard Workerfile system. 1384*6a54128fSAndroid Build Coastguard Worker 1385*6a54128fSAndroid Build Coastguard WorkerCodepoints for the RO_COMPAT_REPLICA feature has been reserved. 1386*6a54128fSAndroid Build Coastguard Worker 1387*6a54128fSAndroid Build Coastguard WorkerAdded a new library function, ext2fs_file_get_inode_num(), for use by 1388*6a54128fSAndroid Build Coastguard Workerfuse2fs. 1389*6a54128fSAndroid Build Coastguard Worker 1390*6a54128fSAndroid Build Coastguard WorkerFixed a bug in ext2fs_file_set_size2() so that when it is truncating a 1391*6a54128fSAndroid Build Coastguard Workerfile, it actually works. 1392*6a54128fSAndroid Build Coastguard Worker 1393*6a54128fSAndroid Build Coastguard WorkerThe block iterator now properly honors the BLOCK_ABORT flag for 1394*6a54128fSAndroid Build Coastguard Workerextent-based flags. Previously, it didn't, which generally made code 1395*6a54128fSAndroid Build Coastguard Workerbe less efficient, but it could cause bugs in ext2fs_link(), for 1396*6a54128fSAndroid Build Coastguard Workerexample, by causing it to insert multiple directory entries. 1397*6a54128fSAndroid Build Coastguard Worker 1398*6a54128fSAndroid Build Coastguard WorkerFixed an (harmless other than causing a compiler warning) use of an 1399*6a54128fSAndroid Build Coastguard Workeruninitialized variable in e2fsck's MMP code. 1400*6a54128fSAndroid Build Coastguard Worker 1401*6a54128fSAndroid Build Coastguard Worker 1402*6a54128fSAndroid Build Coastguard WorkerE2fsprogs 1.42 (November 29, 2011) 1403*6a54128fSAndroid Build Coastguard Worker================================== 1404*6a54128fSAndroid Build Coastguard Worker 1405*6a54128fSAndroid Build Coastguard WorkerThis release of e2fsprogs has support for file systems > 16TB. Online 1406*6a54128fSAndroid Build Coastguard Workerresize requires kernel support which will hopefully be in Linux 1407*6a54128fSAndroid Build Coastguard Workerversion 3.2. Offline support is not yet available for > 16TB file 1408*6a54128fSAndroid Build Coastguard Workersystems, but will be coming. 1409*6a54128fSAndroid Build Coastguard Worker 1410*6a54128fSAndroid Build Coastguard WorkerThis release of e2fsprogs has support for clustered allocation. This 1411*6a54128fSAndroid Build Coastguard Workerreduces the number of block (now cluster) bitmaps by allocating and 1412*6a54128fSAndroid Build Coastguard Workerdeallocating space in contiguous power-of-2 collections of blocks, 1413*6a54128fSAndroid Build Coastguard Workerwhich are called clustered. This is a file system level feature, 1414*6a54128fSAndroid Build Coastguard Workercalled 'bigalloc', which must be enabled when the file system is 1415*6a54128fSAndroid Build Coastguard Workerinitially formatted. It is not backwards compatible with older 1416*6a54128fSAndroid Build Coastguard Workerkernels. 1417*6a54128fSAndroid Build Coastguard Worker 1418*6a54128fSAndroid Build Coastguard WorkerAdded support for the Multi-Mount Protection (MMP) feature. 1419*6a54128fSAndroid Build Coastguard Worker 1420*6a54128fSAndroid Build Coastguard WorkerE2fsck more efficiently uses scratch files for really big file 1421*6a54128fSAndroid Build Coastguard Workersystems. (This is a feature that has to be turned on explicitly; see 1422*6a54128fSAndroid Build Coastguard Worker[scratch_files] in the e2fsck.conf man page.) 1423*6a54128fSAndroid Build Coastguard Worker 1424*6a54128fSAndroid Build Coastguard WorkerFix a bug in e2fsck where if the free blocks and inodes counts are 1425*6a54128fSAndroid Build Coastguard Workerincorrect, e2fsck would fix them without printing an error message. 1426*6a54128fSAndroid Build Coastguard WorkerThis would cause a "*** FILE SYSTEM WAS MODIFIED ***" message without 1427*6a54128fSAndroid Build Coastguard Workerany explanation of what was fixed. 1428*6a54128fSAndroid Build Coastguard Worker 1429*6a54128fSAndroid Build Coastguard WorkerE2fsck will no longer attempt to clone an extended attribute block in 1430*6a54128fSAndroid Build Coastguard Workerpass1b handling if the file system does not support extended 1431*6a54128fSAndroid Build Coastguard Workerattributes. 1432*6a54128fSAndroid Build Coastguard Worker 1433*6a54128fSAndroid Build Coastguard WorkerE2fsck will be more careful accidentally asking the user to continue 1434*6a54128fSAndroid Build Coastguard Workerif the file system is mounted, so that an escape sequence won't cause 1435*6a54128fSAndroid Build Coastguard Workera false positive. (Addresses Debian Bug: #619859) 1436*6a54128fSAndroid Build Coastguard Worker 1437*6a54128fSAndroid Build Coastguard WorkerE2fsck now uses less cpu time in pass 5 when large portions of the 1438*6a54128fSAndroid Build Coastguard Workerbitmaps are uninitialized. 1439*6a54128fSAndroid Build Coastguard Worker 1440*6a54128fSAndroid Build Coastguard WorkerE2fsck will no longer segfault when a corrupted file system has a bad 1441*6a54128fSAndroid Build Coastguard Workerextent, and removing it leads to a block needing to be deallocated. 1442*6a54128fSAndroid Build Coastguard Worker(Addresses SourceForge Bug: #2971800) 1443*6a54128fSAndroid Build Coastguard Worker 1444*6a54128fSAndroid Build Coastguard WorkerE2fsck will catch termination signals (segfaults, bus errors, sigfpe) 1445*6a54128fSAndroid Build Coastguard Workerand print debugging information to make it easier to find potential 1446*6a54128fSAndroid Build Coastguard Workerproblems. 1447*6a54128fSAndroid Build Coastguard Worker 1448*6a54128fSAndroid Build Coastguard WorkerE2fsck will check to see if the bad block inode looks insane, and will 1449*6a54128fSAndroid Build Coastguard Workerskip trying to use if it certain fields which should be zero look 1450*6a54128fSAndroid Build Coastguard Workernon-zero. This is to avoid a corrupted bad block inode causing e2fsck 1451*6a54128fSAndroid Build Coastguard Workerto get confused and do more harm than good. 1452*6a54128fSAndroid Build Coastguard Worker 1453*6a54128fSAndroid Build Coastguard WorkerIf e2fsck modifies certain superblock fields which the kernel doesn't 1454*6a54128fSAndroid Build Coastguard Workerlook at, it will now mark the superblock as dirty without marking the 1455*6a54128fSAndroid Build Coastguard Workerfile system as changed. This avoids signaling the init scripts that 1456*6a54128fSAndroid Build Coastguard Workera reboot is necessary, since the kernel isn't going to look at those 1457*6a54128fSAndroid Build Coastguard Workerfields, so it won't care if they have been changed. 1458*6a54128fSAndroid Build Coastguard Worker 1459*6a54128fSAndroid Build Coastguard WorkerFixed a bug in the libext2fs library (in the binary search routine of 1460*6a54128fSAndroid Build Coastguard Workerthe icount abstraction) that could (very, very rarely) cause e2fsck to 1461*6a54128fSAndroid Build Coastguard Workerdie in the middle of pass 1 or pass 2 processing. 1462*6a54128fSAndroid Build Coastguard Worker 1463*6a54128fSAndroid Build Coastguard WorkerE2fsck will not try to do a discard operation if the -n option was 1464*6a54128fSAndroid Build Coastguard Workerspecified on the command line. 1465*6a54128fSAndroid Build Coastguard Worker 1466*6a54128fSAndroid Build Coastguard WorkerE2fsck now supports an extended "discard" option which will cause 1467*6a54128fSAndroid Build Coastguard Workere2fsck to attempt discard all unused blocks after a full, successful 1468*6a54128fSAndroid Build Coastguard Workerfile system check. 1469*6a54128fSAndroid Build Coastguard Worker 1470*6a54128fSAndroid Build Coastguard WorkerE2fsck will check for the bad block inode to make sure it looks sane 1471*6a54128fSAndroid Build Coastguard Workerbefore trusting it, to avoid causing more harm than good to the file 1472*6a54128fSAndroid Build Coastguard Workersystem. 1473*6a54128fSAndroid Build Coastguard Worker 1474*6a54128fSAndroid Build Coastguard WorkerE2fsck now returns additional status bits in its exit code if it 1475*6a54128fSAndroid Build Coastguard Workeraborts early in the e2fsck run. 1476*6a54128fSAndroid Build Coastguard Worker 1477*6a54128fSAndroid Build Coastguard WorkerE2fsck now correctly calculates the maximum file size in the case of 1478*6a54128fSAndroid Build Coastguard Workerthe huge_file file system feature enabled without extents. 1479*6a54128fSAndroid Build Coastguard Worker 1480*6a54128fSAndroid Build Coastguard WorkerThe mke2fs and e2fsck programs now tries to use the punch hole command 1481*6a54128fSAndroid Build Coastguard Workeras a "discard" when operating on normal files. 1482*6a54128fSAndroid Build Coastguard Worker 1483*6a54128fSAndroid Build Coastguard WorkerThe e2image program now supports the qcow2 format, which is a more 1484*6a54128fSAndroid Build Coastguard Workerefficient way of capturing file system dumps. 1485*6a54128fSAndroid Build Coastguard Worker 1486*6a54128fSAndroid Build Coastguard WorkerMke2fs now supports the [devices] stanza in mke2fs.conf which allows 1487*6a54128fSAndroid Build Coastguard Workerper-device defaults to be specified in the configuration file. 1488*6a54128fSAndroid Build Coastguard Worker 1489*6a54128fSAndroid Build Coastguard WorkerMke2fs now supports the reserved_ratio relation in the [defaults] and 1490*6a54128fSAndroid Build Coastguard Worker[fs_types] section in mke2fs.conf. 1491*6a54128fSAndroid Build Coastguard Worker 1492*6a54128fSAndroid Build Coastguard WorkerMke2fs now creates extent-mapped directories for the root and 1493*6a54128fSAndroid Build Coastguard Workerlost+found directories. 1494*6a54128fSAndroid Build Coastguard Worker 1495*6a54128fSAndroid Build Coastguard WorkerMke2fs will skip zero'ing the journal if the extended option 1496*6a54128fSAndroid Build Coastguard Worker"lazy_journal_init" is specified. This can save a lot of time, but it 1497*6a54128fSAndroid Build Coastguard Workerdoes add a small amount of risk if the system crashes before the 1498*6a54128fSAndroid Build Coastguard Workerjournal is overwritten entirely once. It is especially useful for 1499*6a54128fSAndroid Build Coastguard Workertesting. 1500*6a54128fSAndroid Build Coastguard Worker 1501*6a54128fSAndroid Build Coastguard WorkerMke2fs will now create file systems that enable user namespace 1502*6a54128fSAndroid Build Coastguard Workerextended attributes and with time- and mount count-based file 1503*6a54128fSAndroid Build Coastguard Workersystem checks disabled. 1504*6a54128fSAndroid Build Coastguard Worker 1505*6a54128fSAndroid Build Coastguard WorkerMke2fs will not set a stride or strip size of one block based on block 1506*6a54128fSAndroid Build Coastguard Workerdevice attributes obtained from sysfs. 1507*6a54128fSAndroid Build Coastguard Worker 1508*6a54128fSAndroid Build Coastguard WorkerMke2fs now displays a progress report during the discard process. 1509*6a54128fSAndroid Build Coastguard Worker 1510*6a54128fSAndroid Build Coastguard WorkerMke2fs now handles extreme file system parameters correctly which 1511*6a54128fSAndroid Build Coastguard Workerpreviously caused the inodes per group to drop below 8, leading to a 1512*6a54128fSAndroid Build Coastguard Workersegfault. (The inodes per group must be a multiple of 8, but the code 1513*6a54128fSAndroid Build Coastguard Workerdidn't correctly deal with an inodes per group count less than 8.) 1514*6a54128fSAndroid Build Coastguard Worker 1515*6a54128fSAndroid Build Coastguard WorkerMke2fs and tune2fs previously would give an error if the user tried 1516*6a54128fSAndroid Build Coastguard Workersetting the stride and stripe-width parameters to zero; but this is 1517*6a54128fSAndroid Build Coastguard Workernecessary to disable the stride and stripe-width settings. So allow 1518*6a54128fSAndroid Build Coastguard Workersetting these superblock fields to zero. (Addresses Google Bug: 1519*6a54128fSAndroid Build Coastguard Worker#4988557) 1520*6a54128fSAndroid Build Coastguard Worker 1521*6a54128fSAndroid Build Coastguard WorkerMke2fs now gives a warning if the auto-detected block size exceeds the 1522*6a54128fSAndroid Build Coastguard Workersystem's page size. 1523*6a54128fSAndroid Build Coastguard Worker 1524*6a54128fSAndroid Build Coastguard WorkerIf the enable_periodic_fsck option is false in /etc/mke2fs.conf (which 1525*6a54128fSAndroid Build Coastguard Workeris the default), mke2fs will now set the s_max_mnt_count superblock 1526*6a54128fSAndroid Build Coastguard Workerfield to -1, instead of 0. Kernels older then 3.0 will print a 1527*6a54128fSAndroid Build Coastguard Workerspurious message on each mount then they see a s_max_mnt_count set to 1528*6a54128fSAndroid Build Coastguard Worker0, which will annoy users. (Addresses Debian Bug: #632637) 1529*6a54128fSAndroid Build Coastguard Worker 1530*6a54128fSAndroid Build Coastguard WorkerThe default mke2fs.conf now has entries for "big" and "huge", which 1531*6a54128fSAndroid Build Coastguard Workerare needed for very big file systems. 1532*6a54128fSAndroid Build Coastguard Worker 1533*6a54128fSAndroid Build Coastguard WorkerThe resize2fs program now has support for a new online resize ioctl 1534*6a54128fSAndroid Build Coastguard Workerthat can support file systems > 16TB, once it arrives in v3.x kernels. 1535*6a54128fSAndroid Build Coastguard Worker 1536*6a54128fSAndroid Build Coastguard WorkerFixed bug which caused resize2fs to fail when shrinking an empty file 1537*6a54128fSAndroid Build Coastguard Workersystem down to its minimal size. (Addresses Sourceforge Bug #3404051) 1538*6a54128fSAndroid Build Coastguard Worker 1539*6a54128fSAndroid Build Coastguard WorkerFixed tune2fs's mount options parsing. (Addresses Debian Bug: #641667) 1540*6a54128fSAndroid Build Coastguard Worker 1541*6a54128fSAndroid Build Coastguard WorkerAllow tune2fs to remove external journals if the device can not be 1542*6a54128fSAndroid Build Coastguard Workerfound. 1543*6a54128fSAndroid Build Coastguard Worker 1544*6a54128fSAndroid Build Coastguard WorkerDebugfs's icheck will now correctly find inodes which use the 1545*6a54128fSAndroid Build Coastguard Workersearched-for block as an extended attribute block. 1546*6a54128fSAndroid Build Coastguard Worker 1547*6a54128fSAndroid Build Coastguard WorkerDebugfs now has a new "punch" command which remove blocks from the 1548*6a54128fSAndroid Build Coastguard Workermiddle of an inode. 1549*6a54128fSAndroid Build Coastguard Worker 1550*6a54128fSAndroid Build Coastguard WorkerDebugfs now has a new "e2freefrag" command which analyzes the free 1551*6a54128fSAndroid Build Coastguard Workerspace fragmentation of the file system, using the same code as the 1552*6a54128fSAndroid Build Coastguard Workere2freefrag program. 1553*6a54128fSAndroid Build Coastguard Worker 1554*6a54128fSAndroid Build Coastguard WorkerDebugfs now has a "filefrag" command which displays information about 1555*6a54128fSAndroid Build Coastguard Workera file's fragmentation. 1556*6a54128fSAndroid Build Coastguard Worker 1557*6a54128fSAndroid Build Coastguard WorkerAdd support to build a metadata-only, read-only, stripped-down version 1558*6a54128fSAndroid Build Coastguard Workerof debugfs called rdebugfs. 1559*6a54128fSAndroid Build Coastguard Worker 1560*6a54128fSAndroid Build Coastguard WorkerFixed a potential stack overrun bug in debugfs. 1561*6a54128fSAndroid Build Coastguard Worker 1562*6a54128fSAndroid Build Coastguard WorkerThe badblocks program now correctly recovers from I/O errors when 1563*6a54128fSAndroid Build Coastguard Workerdirect I/O is being used. The badblocks command now also supports a 1564*6a54128fSAndroid Build Coastguard Worker-B option which forces the use of buffered I/O, and the -v option will 1565*6a54128fSAndroid Build Coastguard Workerprovide a more detailed breakdown of read, write, and failed 1566*6a54128fSAndroid Build Coastguard Workercomparison errors. 1567*6a54128fSAndroid Build Coastguard Worker 1568*6a54128fSAndroid Build Coastguard WorkerAdded e4defrag tool which uses the EXT4_IOC_MOVE_EXT ioctl. 1569*6a54128fSAndroid Build Coastguard Worker 1570*6a54128fSAndroid Build Coastguard WorkerAdded support for journals larger than 2GB. 1571*6a54128fSAndroid Build Coastguard Worker 1572*6a54128fSAndroid Build Coastguard WorkerSupport using both hard links and symlinks when installing e2fsprogs. 1573*6a54128fSAndroid Build Coastguard Worker 1574*6a54128fSAndroid Build Coastguard WorkerAdd overflow checking to tune2fs -i's fsck interval, which must fit in 1575*6a54128fSAndroid Build Coastguard Workera 32-bit field. 1576*6a54128fSAndroid Build Coastguard Worker 1577*6a54128fSAndroid Build Coastguard WorkerThe debugfs command now has a new 'blocks' command which prints out 1578*6a54128fSAndroid Build Coastguard Workerdata blocks of a particular inode in a format which is useful for 1579*6a54128fSAndroid Build Coastguard Workerscripting. 1580*6a54128fSAndroid Build Coastguard Worker 1581*6a54128fSAndroid Build Coastguard WorkerFilefrag will report 0 extents correctly in verbose mode. (Addresses 1582*6a54128fSAndroid Build Coastguard WorkerRedHat Bugzilla: #653234) 1583*6a54128fSAndroid Build Coastguard Worker 1584*6a54128fSAndroid Build Coastguard WorkerFilefrag has been fixed so its -v report prints the correct expected 1585*6a54128fSAndroid Build Coastguard Workerblock number (previously there had been an off-by-one error). In 1586*6a54128fSAndroid Build Coastguard Workeraddition, it will now display the number of contiguous extents when -v 1587*6a54128fSAndroid Build Coastguard Workeris not specified. This makes it consistent with the number of extents 1588*6a54128fSAndroid Build Coastguard Workerprinted when the -v option was specified. In addition, the number of 1589*6a54128fSAndroid Build Coastguard Workercontiguous extents is far more interesting/useful than the number of 1590*6a54128fSAndroid Build Coastguard Workerphysical extents for very large files. (Addresses Debian Bug: 1591*6a54128fSAndroid Build Coastguard Worker#631498, #644792) 1592*6a54128fSAndroid Build Coastguard Worker 1593*6a54128fSAndroid Build Coastguard WorkerLogsave's usage message has been fixed. (Addresses Debian Bug: 1594*6a54128fSAndroid Build Coastguard Worker#619788) 1595*6a54128fSAndroid Build Coastguard Worker 1596*6a54128fSAndroid Build Coastguard WorkerAvoid an infinite loop in ext2fs_find_block_device() if there are 1597*6a54128fSAndroid Build Coastguard Workersymlink loops in /dev caused by a buggy udev. 1598*6a54128fSAndroid Build Coastguard Worker 1599*6a54128fSAndroid Build Coastguard WorkerAdded a useful "fallocate" program to the contrib directory. 1600*6a54128fSAndroid Build Coastguard Worker 1601*6a54128fSAndroid Build Coastguard WorkerFixed an ABI compatibility problem in libext2fs which broke the dump 1602*6a54128fSAndroid Build Coastguard Workerprogram. Also added back some macros which dump needed so it could 1603*6a54128fSAndroid Build Coastguard Workercompile against the latest version of ext2_fs.h (Addresses Debian Bug: 1604*6a54128fSAndroid Build Coastguard Worker#636418) 1605*6a54128fSAndroid Build Coastguard Worker 1606*6a54128fSAndroid Build Coastguard WorkerFixed parsing of MNTOPT_ options for tune2fs and debugfs (Addresses 1607*6a54128fSAndroid Build Coastguard WorkerDebian Bug: #641667) 1608*6a54128fSAndroid Build Coastguard Worker 1609*6a54128fSAndroid Build Coastguard WorkerAdded internationalization support for libcom_err error table strings. 1610*6a54128fSAndroid Build Coastguard Worker 1611*6a54128fSAndroid Build Coastguard WorkerFixed various spelling mistakes found in various output strings found 1612*6a54128fSAndroid Build Coastguard Workerby I18N translators. 1613*6a54128fSAndroid Build Coastguard Worker 1614*6a54128fSAndroid Build Coastguard WorkerUpdate translations: French, Chinese, Germany, Indonesian, Swedish, 1615*6a54128fSAndroid Build Coastguard WorkerVietnamese, Polish, Dutch, Czech. (Addresses Debian Bugs: #520985, 1616*6a54128fSAndroid Build Coastguard Worker#620659) 1617*6a54128fSAndroid Build Coastguard Worker 1618*6a54128fSAndroid Build Coastguard WorkerFixed various Debian Packaging issues. (Addresses Debian Bugs: 1619*6a54128fSAndroid Build Coastguard Worker#614662, #632169, #641838, #627535, #629355) 1620*6a54128fSAndroid Build Coastguard Worker 1621*6a54128fSAndroid Build Coastguard WorkerUpdated/clarified man pages. (Addresses Debian Bugs: #639411, 1622*6a54128fSAndroid Build Coastguard Worker#642193, #634883) 1623*6a54128fSAndroid Build Coastguard Worker 1624*6a54128fSAndroid Build Coastguard WorkerProgrammer's Notes 1625*6a54128fSAndroid Build Coastguard Worker------------------ 1626*6a54128fSAndroid Build Coastguard Worker 1627*6a54128fSAndroid Build Coastguard WorkerInitial support for quota as an integrated feature, where the quota 1628*6a54128fSAndroid Build Coastguard Workerfiles are hidden system files that are automatically maintained by 1629*6a54128fSAndroid Build Coastguard Workere2fsck is present, although disabled by default. It must be enabled 1630*6a54128fSAndroid Build Coastguard Workerby using the configure option --enable-quota. 1631*6a54128fSAndroid Build Coastguard Worker 1632*6a54128fSAndroid Build Coastguard WorkerReserved the on-disk fields for the metadata checksum and snapshot 1633*6a54128fSAndroid Build Coastguard Workerfeatures, which are currently in development. 1634*6a54128fSAndroid Build Coastguard Worker 1635*6a54128fSAndroid Build Coastguard WorkerThe ext2fs library now has the new functions ext2fs_punch(), 1636*6a54128fSAndroid Build Coastguard Workerext2fs_get_memzero() and ext2fs_file_get_inode(). 1637*6a54128fSAndroid Build Coastguard Worker 1638*6a54128fSAndroid Build Coastguard WorkerThe ext2fs library now has support for calculating the crc32c checksum 1639*6a54128fSAndroid Build Coastguard Worker(via the new functions ext2fs_crc32c_be and ext2fs_crc32c_le). 1640*6a54128fSAndroid Build Coastguard Worker 1641*6a54128fSAndroid Build Coastguard WorkerThe I/O manager now supports the discard operation. 1642*6a54128fSAndroid Build Coastguard Worker 1643*6a54128fSAndroid Build Coastguard WorkerReserved file system code points for new 1st class quota feature. 1644*6a54128fSAndroid Build Coastguard Worker 1645*6a54128fSAndroid Build Coastguard WorkerShortened the compilation lines by moving the autoconf defines to 1646*6a54128fSAndroid Build Coastguard Workera config.h header file. 1647*6a54128fSAndroid Build Coastguard Worker 1648*6a54128fSAndroid Build Coastguard WorkerFixed a potential free of an uninitialized pointer in 1649*6a54128fSAndroid Build Coastguard Workerext2fs_update_bb_inode(). 1650*6a54128fSAndroid Build Coastguard Worker 1651*6a54128fSAndroid Build Coastguard WorkerFixed miscellaneous gcc -Wall and coverity warnings. 1652*6a54128fSAndroid Build Coastguard Worker 1653*6a54128fSAndroid Build Coastguard WorkerFixed portability issues for Mac OS X, Hurd, and FreeBSD. 1654*6a54128fSAndroid Build Coastguard Worker 1655*6a54128fSAndroid Build Coastguard WorkerFixed a build failure when OMIT_COM_ERR is defined. 1656*6a54128fSAndroid Build Coastguard Worker 1657*6a54128fSAndroid Build Coastguard WorkerImproved error checking and fixed memory leaks caused by error return 1658*6a54128fSAndroid Build Coastguard Workerpaths. 1659*6a54128fSAndroid Build Coastguard Worker 1660*6a54128fSAndroid Build Coastguard WorkerAdd ext2fs_flush2() and ext2fs_close2() which takes a flag to allow 1661*6a54128fSAndroid Build Coastguard Workerthe fsync() to be skipped. 1662*6a54128fSAndroid Build Coastguard Worker 1663*6a54128fSAndroid Build Coastguard WorkerAdded a test for extent-mapped journals by mke2fs and tune2fs. 1664*6a54128fSAndroid Build Coastguard Worker 1665*6a54128fSAndroid Build Coastguard WorkerAdded a test for creating a large (over 4GB) journal using mke2fs. 1666*6a54128fSAndroid Build Coastguard Worker 1667*6a54128fSAndroid Build Coastguard WorkerAdded a test to make sure the inode size remains constant. 1668*6a54128fSAndroid Build Coastguard Worker 1669*6a54128fSAndroid Build Coastguard WorkerThe regression test script now prints the list of which tests failed. 1670*6a54128fSAndroid Build Coastguard Worker 1671*6a54128fSAndroid Build Coastguard WorkerThe regression test system now uses /tmp for its scratch files, which 1672*6a54128fSAndroid Build Coastguard Workeris often a tmpfs mounted file system and hence much faster. 1673*6a54128fSAndroid Build Coastguard Worker 1674*6a54128fSAndroid Build Coastguard WorkerThe i_e2image test was fixed so it works with valgrind. 1675*6a54128fSAndroid Build Coastguard Worker 1676*6a54128fSAndroid Build Coastguard WorkerTests that rely on debugfs are now skipped if debugfs wasn't built. 1677*6a54128fSAndroid Build Coastguard Worker 1678*6a54128fSAndroid Build Coastguard WorkerFixed the dependencies for "make check" so all required dependencies 1679*6a54128fSAndroid Build Coastguard Workerare built before running the regression tests. 1680*6a54128fSAndroid Build Coastguard Worker 1681*6a54128fSAndroid Build Coastguard WorkerA link to com_err.h is installed in $(includedir) during a "make install". 1682*6a54128fSAndroid Build Coastguard Worker 1683*6a54128fSAndroid Build Coastguard WorkerThe po/*.gmo files are automatically rebuilt if they are missing or 1684*6a54128fSAndroid Build Coastguard Workerout of date. This helps out Debian packaging. 1685*6a54128fSAndroid Build Coastguard Worker 1686*6a54128fSAndroid Build Coastguard WorkerAllow ext2fs_get_memalign() to compile on systems that don't have 1687*6a54128fSAndroid Build Coastguard Workerposix_memalign(). 1688*6a54128fSAndroid Build Coastguard Worker 1689*6a54128fSAndroid Build Coastguard WorkerFixed a namespace leak in libext2fs (tdb_null). 1690*6a54128fSAndroid Build Coastguard Worker 1691