e0ed7404719a9ddd2ba427a80db5365c8bad18c0 |
|
20-Mar-2014 |
JP Abgrall <jpa@google.com> |
Switch back to 1.42.9 now that there is a fix Revert "Revert changes that moved from 1.41.14 to 1.42.9" This reverts commit 65f0aab98b20b5994a726ab90d355248bcddfffd.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
65f0aab98b20b5994a726ab90d355248bcddfffd |
|
06-Mar-2014 |
JP Abgrall <jpa@google.com> |
Revert changes that moved from 1.41.14 to 1.42.9 Revert "e2fsck: Don't use e2fsck_global_ctx unless HAVE_SIGNAL_H" commit e80e74c41d85ff93f3d212ba6512340f48054a93. Revert "Merge remote-tracking branch 'linaro/linaro-1.42.9' into aosp_master" This reverts commit e97b2b6fc82f840e84dfc631b87f21be44ff2421, reversing changes made to 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Revert "Prepare for upstream 1.42.9" This reverts commit 7e2fb9d09c245eba70ee008b78007315e9c0f1df. Bug: 13340735 Change-Id: If48b153a95ef5f69f7cdccb00e23524abff3c5a8 Signed-off-by: JP Abgrall <jpa@google.com>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
84397754250d13e8596dd68c157c4c9863800079 |
|
16-Dec-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
libext2fs: only punch complete clusters When bigalloc is enabled, using ext2fs_block_alloc_stats2() to free any block in a cluster has the effect of freeing the entire cluster. This is problematic if a caller instructs us to punch, say, blocks 12-15 of a 16-block cluster, because blocks 0-11 now point to a "free" cluster. The naive way to solve this problem is to see if any of the other blocks in this logical cluster map to a physical cluster. If so, then we know that the cluster is still in use and it mustn't be freed. Otherwise, we are punching the last mapped block in this cluster, so we can free the cluster. The implementation given only does the rigorous checks for the partial clusters at the beginning and end of the punching range. Reviewed-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
85b8f7affa5fadb1972e82e04cc3d1828966b238 |
|
12-Dec-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
debugfs: don't leak mmp_s memory (on error path) ext2fs_free_mem() takes a pointer to a pointer, similar to ext2fs_get_mem(). Improve the documentation, and fix debugfs. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3b6c0938ec5aa401c7ae6c95e94e5ad30a7b8562 |
|
11-Dec-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
libext2fs: fix tests that set LARGE_FILE For each site where we test for a large file (> 2GB) and set the LARGE_FILE feature, use a helper function to make the size test consistent with the test that's in e2fsck. This fixes the fsck complaints when we try to create a 2GB journal (not so hard with 64k block size) and fixes the incorrect test in fileio.c. Reviewed-by: Zheng Liu <wenqing.lz@taobao.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
17abb05f515d72c78667108a95c904ef65bcc6aa |
|
03-Dec-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
libext2fs: fix function declarations to match definition Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
b70483742b7ad993b574fbfb96ce77f5c05c84f9 |
|
03-Dec-2013 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: add explicit casts to ext2fs.h Add some explicit casts to silence some -Wconversion noise. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
832cb612f8c1c10525fe438206d4fe5c6d38a4e7 |
|
12-Oct-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
e2fsprogs: add (optional) sparse checking to the build Run sparse against source files when building e2fsprogs with 'make C=1'. If instead C=2, it configures basic ext2 types for bitwise checking with sparse, which can help find the (many many) spots where conversion errors are (possibly) happening. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4ee4ad80dcceb42b1e5cfd2d4067a38b99b9fa95 |
|
07-Oct-2013 |
Darrick J. Wong <darrick.wong@oracle.com> |
libext2fs: allow callers to punch a single block The range of blocks to punch is treated as an inclusive range on both ends, i.e. if start=1 and end=2, both blocks 1 and 2 are punched out. Thus, start == end means that the caller wishes to punch a single block. Remove the check that prevents us from punching a single block. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4718395120454ad7c193c76258ef5359f2ab3f2f |
|
16-Jun-2013 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: optimize ext2fs_bg_has_super() Reduce the CPU time needed when checking whether a block group has a sparse superblock. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5084088215242e5839fa482dd25e06a127aba311 |
|
25-Feb-2013 |
Jan Kara <jack@suse.cz> |
libext2fs: Provide prototype for ext2fs_symlink() New function ext2fs_symlink() doesn't have a prototype in ext2fs.h and thus debugfs compilation gives warning: debugfs.c:2219:2: warning: implicit declaration of function 'ext2fs_symlink' Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
bee7b67ce92bb912fccc0dcce3c71c186c2a988b |
|
23-Dec-2012 |
Theodore Ts'o <tytso@mit.edu> |
debugfs: add the ability to manipulate the extent tree directly This commit adds the functionality which had previously only been in the tst_extents command to debugfs. The debugfs command extent_open will open extent tree of a particular inode, and enables a series of commands which will allow the user to interact with the extent tree directly. Once the extent tree is closed via extent_open(), these additional commands will be disabled again. This commit exports two new functions from lib/ext2fs/extent.c which had previously been statically defined: ext2fs_extent_node_split() and ext2fs_extent_goto2(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
789bd401c3bce85d3c2ae4504ca62509aa0a8b88 |
|
20-Dec-2012 |
Eric Sandeen <sandeen@redhat.com> |
e2fsck: fix incorrect interior node logical start values An index node's logical start (ei_block) should match the logical start of the first node (index or leaf) below it. If we find a node whose start does not match its parent, fix all of its parents accordingly. If it finds such a problem, we'll see: Pass 1: Checking inodes, blocks, and sizes Interior extent node level 0 of inode 274258: Logical start 3666 does not match logical start 4093 at next level. Fix<y>? Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ab3f5c5aad6310be1d1891c05f1bc8cf7ccf0cef |
|
10-Sep-2012 |
Theodore Ts'o <tytso@mit.edu> |
Allow e2fsprogs to be built using the clang (LLVM) frontend Since clang uses C99 semantics by default, the main changes required to allow clang to build e2fsprogs was to add support the C99 inline semantics, while still allowing us to be built when the legacy (but still default for gcc) GNU C89 inline semantics are in force. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
182acd17bef0cf8dcb66568448a528abb1dfcd71 |
|
28-May-2012 |
Andreas Dilger <adilger@whamcloud.com> |
libext2fs: don't inline ext2fs_open_file() and ext2fs_stat() The creation of inline wrappers ext2fs_open_file() and ext2fs_stat() in commit c859cb1de0d624caa0779fb17d1a53766143136e in ext2fs.h caused difficulties with the use of headers, since the headers for open64() and stat64() may already be included (and skip the declaration of the 64-bit variants) before ext2fs.h is ever read. There is no real way to solve the missing prototypes and resulting compiler warnings inside ext2fs.h. Since ext2fs_open_file() and ext2fs_stat() are not performance critical operations, they do not need to be inline functions at all, and the needed function headers can be handled properly in one file. Similarly, posix_memalloc() was having difficulties with headers, and was being defined in ext2fs.h, but it is now only being used by a single file, so move the required header there. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
dd0a2679ddd0a9bf53e32efc0f67a7e7a5ea5f00 |
|
07-May-2012 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: refactor Direct I/O alignment requirement calculations Create a new function, ext2fs_get_dio_alignment(), which returns the alignment requirements for direct I/O. This way we can factor out the code from MMP and the Unix I/O manager. The two modules weren't consistently calculating the alignment factors, and in particular MMP would sometimes use a larger alignment factor than was strictly necessary. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
664c332612a0ef86df5c67286155ea895ed88ee3 |
|
06-Apr-2012 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: add 32-bit compat code for ext2fs_find_first_zero_generic_bmap() The lack of 32-bit support was causing febootstrap to crash since it wasn't passing EXT2_FLAG_64BITS when opening the file system, so we were still using the legacy bitmaps. Also add support for bigalloc bitmap into the ffz functions. Addresses-Red-Hat-Bugzilla: #808421 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
304e11c2c1878ef392095d10bf5e93f7ea7131e4 |
|
05-Apr-2012 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs: don't fail creating the journal if /etc/mtab is missing The ext2fs_add_journal_inode() function calls ext2fs_check_mount_point(), which can fail if /etc/mtab is missing. This causes mke2fs to fail in the middle of the file system format process; mke2fs calls ext2fs_check_mount_point() already (and has appropriate fallbacks that calls fails), so add a flag so that mke2fs can request ext2fs_add_journal_inode() to skip trying to call e2fsck_check_mount_point(). Addresses-Sourceforge-Bug: #3509398 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e64e6761aa22f31123a91206a5686526f7b9c6c0 |
|
05-Apr-2012 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
87141781aabb4dc01359428d2feecdc7f43eeac0 |
|
15-Mar-2012 |
Theodore Ts'o <tytso@mit.edu> |
dumpe2fs: print the expected block group checksum if it is incorrect This helps to diagnose problems caused by incorrect block group checksums. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
991211f676f49c6cf30af368dade2f81287f1fa8 |
|
17-Feb-2012 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs, libe2p: Reserve RO_COMPAT_REPLICA feature The replica is a feature which stores multiple copies of the key metadata blocks so a single block failure in failure-prone media (read: certain types of flash storage) doesn't take out the entire file system. Discussion on the upstream list proved not to be very positive on this feature; the arguments were that it added complexity that wasn't warrented, since common practice in industry is to insist on reliable media, and if media is unreliable, you're kind of toast anyway (unless the file system is being used as the back-end store of a cluster file system where checksuming and data replication is happening above the local disk file system level). So, this feature is being developed out of tree. We reserve the code points so that other people won't accidentally step on them. Since it's not upstream, it's a soft reservation, but it's not like we have any shortage of RO_COMPAT features. We are a bit more tight on reserved inodes, but EXT2_BOOT_LOADER_INO and EXT2_UNDEL_DIR_INO are not currently used anywhere, and EXT2_EXCLUDE_INO is a reservation for another out-of-tree feature. There are no features currently being discussed which require a reserved inode, but if a need were to arise, we can claw back code point reservations that were never used or not in tree, as those will always be considered lower priority than in-tree features. Cc: Aditya Kali <adityakali@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3ae682bb0a5e025963b25ff5ac5d53e2115483f2 |
|
17-Feb-2012 |
Darrick J. Wong <djwong@us.ibm.com> |
libext2fs: Add ext2fs_file_get_inode_num call (for fuse2fs) Add a function to return the inode number of an open file. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9288e3be665bb8d5657d7f710687a50fad859acf |
|
16-Dec-2011 |
Lukas Czerner <lczerner@redhat.com> |
libext2fs: add bitmap statistics This feature is especially useful for better understanding how e2fsprogs tools (mainly e2fsck) treats bitmaps and what bitmap backend can be most suitable for particular bitmap. Backend itself (if implemented) can provide statistics of its own as well. [ Changed to provide basic statistics when enabled with the E2FSPROGS_BITMAPS_STATS environment variable -- tytso] Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
830b44f4385eb255d08fe0c8b200f8d8e3e97a8d |
|
16-Dec-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: use different bitmap types as appropriate Now that we have multiple backend implementations of the bitmap code, this commit teaches e2fsck to use either the most appropriate backend for each use case. Since we don't know for sure if we will get it all right, the default choices can be overridden via e2fsck.conf. The various definitions are shown here, with the current defaults (which may change as we add more bitmap implementations and as learn what works better). ; EXT2FS_BAMP64_BITARRAY is 1 ; EXT2FS_BMAP64_RBTREE is 2 ; EXT2FS_BMAP64_AUTODIR is 3 [bitmaps] inode_used_map = 2 ; pass1 inode_dir_map = 3 ; pass1 inode_reg_map = 2 ; pass1 block_found_map = 2 ; pass1 inode_bad_map = 2 ; pass1 inode_imagic_map = 2 ; pass1 block_dup_map = 2 ; pass1 block_ea_map = 2 ; pass1 inode_link_info = 2 ; pass1 inode_dup_map = 2 ; pass1b inode_done_map = 3 ; pass3 inode_loop_detect = 3 ; pass3 fs_bitmaps = 2 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d182831a15dfa4d36979be10fdfd4ec06bdd65b9 |
|
18-Dec-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: add pseudo bitmap backend type EXT2FS_BMAP64_AUTODIR This backend type will automatically switch between the bitarray and the rbtree backend based on the number of directories in the file system. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c1359d91958cadfbc0987921ee5b4db717852e90 |
|
18-Dec-2011 |
Lukas Czerner <lczerner@redhat.com> |
libext2fs: add a bitmap implementation using rbtree's For a long time we had a bitarray backend for storing filesystem metadata bitmaps, however today this approach might hit its limits with todays huge data storage devices, because of its memory utilization. Bitarrays stores bitmaps as ..well, as bitmaps. But this is in most cases highly unefficient because we need to allocate memory even for the big parts of bitmaps we will never use, resulting in high memory utilization especially for huge filesystem, when bitmaps might occupy gigabytes of space. This commit adds another backend to store bitmaps. It is based on rbtrees and it stores just used extents of bitmaps. It means that it can be more memory efficient in most cases. I have done some limited benchmarking and it shows that rbtree backend consumes approx 65% less memory that bitarray on 312GB filesystem aged with Impression (default config). This number may grow significantly with the filesystem size, but also it may be a lot lower (even negative) if the inodes are very fragmented (need more benchmarking). This commit itself does not enable the use of rbtree backend. [ Simplified the code by avoiding unneeded memory allocation and deallocation of del_ext. In addition, fixed a bug discovered by the tst_bitmaps tests: rb_unamrk_bmap() must return true if the bit was previously set in bitmap, and zero otherwise -- tytso ] Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
67861e5bf3ae177b14d34846218fcdfdeee805a6 |
|
16-Dec-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: add default_bitmap_type to the ext2_filsys structure This allows a program to control the bitmap backend implementation that will get used without needing to change the current library API. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5fff8636e54f762fcfe7312ec7c0428924ff7292 |
|
26-Nov-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: move mmp fields to preserve structure layout of ext2_filsys This helps provide better ABI compatibility for e2fsprogs 1.42. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7becb2065ffd5c4b403546d577c2421b4a840c3c |
|
14-Nov-2011 |
Theodore Ts'o <tytso@mit.edu> |
Make quota support disabled by support Quota support can be enabled using --enable-quota. There are still some buglets that we need to fix up before it can be considered 100% supported, so let's disable it for the 1.42 release. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a9f46078c4313a466c7014c733dc3a4daa8fdec4 |
|
10-Nov-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: use HAVE_FSTAT64 instead of HAVE_STAT64 for ext2fs_stat() Commit 6b56f3d92d introduced the use of HAVE_STAT64 without arranging that it be defined in configure.in. Previously ext4.h used HAVE_OPEN64, but apparently there are (broken) platforms that have open64() but not stat64(). Go figure. We do need to consistently use a single test for ext2fs_stat(), ext2fs_fstat(), and struct ext2fs_struct_stat, or we could end up passing a struct stat64 to a fstat() system call, or some such. I've elected to use HAVE_FSTAT64 because: (a) it's already defined in the configure script, and (b) if we ever come across a really broken platform that defines fstat64() but not stat64(), we can always emulate stat64() using open64() followed by a fstat64(). This commit fixed a bug whose symptoms were that mke2fs would not work if given a file > 2GB on 32-bit platforms. Addresses-Debian-Bug: #647245 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7f21666a3da39fd335f5d4b27499d4ff76b53375 |
|
17-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: allow ext2fs_get_memalign() to compile w/o posix_memalign() Addresses-Sourceforge-Bug: #3219173 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
0c80c44bd08c60f3cd0ad87f12a71a75cac3bcaa |
|
17-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: ext2fs_[set_]file_acl_block needs to check for 64-bit feature flag The ext2fs_file_acl_block() and ext2fs_set_file_acl_block() needs to only check i_file_acl_high if the 64-bit flag is set. This is needed because otherwise we will run into problems on Hurd systems which actually use that field for h_i_mode_high. This involves an ABI change since we need to pass ext2_filsys to these functions. Fortunately these functions were first included in the 1.42-WIP series, so it's OK for us to change them now. (This is why we have 1.42-WIP releases. :-) Addresses-Sourceforge-Bug: #3379227 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c4012e5a7ace2e1f382c4d46f56e5749758c9a1a |
|
06-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: make ext2fs_open_file() always use 3 arguments instead of varargs Some architectures have narrow mode_t's which can cause some portability warnings with varargs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
edbfd75d8fb4a13eccc2cadb12a453c3425d17d1 |
|
04-Oct-2011 |
Theodore Ts'o <tytso@mit.edu> |
libquota: clean up some gcc -Wall warnings Remove unused variables, places where 'return' was used with no value in a non-void function, missing function declarations, etc. Don't assume that all systems have quotactl(), and use <sys/quota.h> if it exists to define the quotactl interfaces. One of the unused variables also got rid of a non-portable use of PATH_MAX. Cc: Aditya Kali <adityakali@google.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e43bb12f402c7de72113a24701fcd17024e1f25c |
|
03-Oct-2011 |
Eric Sandeen <sandeen@redhat.com> |
e2fsprogs: include headers for open() in ext2fs.h ext2fs.h now calls open() so it should include the headers needed for this system call as well. Addresses-Red-Hat-Bugzilla: #742147 Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a7a63675af85b4b636e9df4961ca44ea03bf160b |
|
30-Sep-2011 |
Darrick J. Wong <djwong@us.ibm.com> |
libext2fs: Fix various bugs from the metadata checksum integration Fix several minor errors in structure definitions, the byteswap code, and Makefiles that result from merging the crc32c and initial parts of the metadata checksumming patchset. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
0f5eba7501f467f757792ee449d16c9259b994fd |
|
24-Sep-2011 |
Andreas Dilger <adilger@whamcloud.com> |
ext2fs: add multi-mount protection (INCOMPAT_MMP) Multi-mount protection is feature that allows mke2fs, e2fsck, and others to detect if the filesystem is mounted on a remote node (on SAN disks) and avoid corrupting the filesystem. For e2fsprogs this means that it checks the MMP block to see if the filesystem is in use, and marks the filesystem busy while e2fsck is running on the system. This is useful on SAN disks that are shared between high-availability servers, or accessible by multiple nodes that aren't in HA pairs. MMP isn't intended to serve as a primary HA exclusion mechanism, but as a failsafe to protect against user, software, or hardware errors. There is no requirement that e2fsck updates the MMP block at regular intervals, but e2fsck does this occasionally to provide useful information to the sysadmin in case of a detected conflict. For the kernel (since Linux 3.0) MMP adds a "heartbeat" mechanism to periodically write to disk (every few seconds by default) to notify other nodes that the filesystem is still in use and unsafe to modify. Originally-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: Johann Lombardi <johann@whamcloud.com> Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6b56f3d92d08806ab415e8fd883480f7f9c148e8 |
|
24-Sep-2011 |
Andreas Dilger <adilger@whamcloud.com> |
misc: quiet minor compiler errors Several compiler errors are quieted: - zero-length gnu_printf format string - unused variable - uninitalized variable (though it isn't actually used for anything) - fixed a bug in ext2fs_stat() if stat64() does not exist Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9d9a53e651fa877eb4f9df0bfd97fbcc5f514293 |
|
24-Sep-2011 |
Richard W.M. Jones <rjones@redhat.com> |
libext2fs: add flag to ext2fs_flush() and ext2fs_close() to avoid fsync This adds new APIs: ext2fs_flush2 and ext2fs_close2 which take an extra 'int flags' parameter. This allows us to pass in an EXT2_FLAG_FLUSH_NO_SYNC flag which avoids fsync'ing the filesystem when closing it. For the case we have in mind where we are just constructing a throwaway ext2 filesystem in a file in order to boot a VM, this saves over 5 seconds during the boot process and avoids many unnecessary disk writes. Existing code using ext2fs_flush and ext2fs_close remains unaffected by this change. Signed-off-by: Richard W.M. Jones <rjones@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
98f4547198b369bef7e41eb7ce4a16855726c393 |
|
16-Sep-2011 |
Eric Sandeen <sandeen@redhat.com> |
e2fsprogs: add ext2fs_group_blocks_count helper Code to count the number of blocks in the last partial group is cut and pasted around the e2fsprogs codebase a few times. Making this a helper function should improve matters. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
75405ffde6f87f88c7172bfb431ec085c542ec1a |
|
16-Sep-2011 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next
|
c859cb1de0d624caa0779fb17d1a53766143136e |
|
16-Sep-2011 |
Lukas Czerner <lczerner@redhat.com> |
e2fsprogs: create open() and stat() helpers In many places we are using #ifdef HAVE_OPEN64 to determine if we can use open64() but that's ugly. This commit creates two new helpers ext2fs_open_file() for open() and ext2fs_stat() for stat(). Also we need new typedef ext2fs_struct_stat for struct stat. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
db8bbf27c9eeaa9c1803fb52a6cc7a60c5250c7e |
|
16-Sep-2011 |
Darrick J. Wong <djwong@us.ibm.com> |
libext2fs: Add crc32c implementation for metadata checksumming Add a slicing-by-8 CRC32c implementation for metadata checksumming. Adapted from Bob Pearson's kernel patch. Also added a self-test mechanism so we can verify that the crc32c implementation is working correctly. Signed-off-by: Darrick J. Wong <djwong@us.ibm.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3fbfad558e01ffbacc14e5a536c4dfec0a0af4f5 |
|
15-Sep-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: fix binary and source compatibility with the dump program The dump program relies on fs->frag_size and the EXT2_FRAGS_PER_BLOCK() macro. Kind of silly for it to do so, but it's part of the kludgy way the dump program (which was originally written for the BSD FFS was ported over to support ext2/3.) Given how it makes assumptions about the ext2/3/4 file system being similar to the BSD FFS, it's a bit of a miracle it works for ext4 --- or at least appears to work... Addresses-Debian-Bug: #636418 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
624e4a6466dba9889f5f80dc168f2bb7c2a3f5d0 |
|
20-Jul-2011 |
Aditya Kali <adityakali@google.com> |
e2fsck: add support for checking the built-in quota files This patch adds support for doing quota accounting during full e2fsck scan if the 'quota' feature was set on the superblock. If user-visible quota inodes are in use, they will be hidden and converted to the reserved quota inodes. Signed-off-by: Aditya Kali <adityakali@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d32c915abfb224f6f6659e9cada7e9f759b7e3d2 |
|
07-Jul-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Fix gcc -Wall warnings Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6c54689fadc3fe0b0bcae2cc93946cb7a28b9f15 |
|
11-Jun-2011 |
Andreas Dilger <adilger@whamcloud.com> |
mke2fs: skip zeroing journal blocks Add the ability to skip zeroing journal blocks on disk. This can significantly speed up mke2fs with large journals. At worst the uninitialized journal is only a very short-term risk (if at all), because the journal will be overwritten on any new filesystem as soon as any significant amount of data is written to disk, and the new journal TID would need to match the offset/TID of an old commit block still left on disk. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
931b58e1cb2158c1f5218059cce92e94917ef485 |
|
11-Jun-2011 |
Andreas Dilger <adilger@whamcloud.com> |
ext2fs: Handle internal journal over 2^32 bytes The write_journal_inode() code is only setting the low 32-bit i_size for the journal size, even though it is possible to specify a journal up to 10M blocks in size. Trying to create a journal larger than 2GB will succeed, but an immediate e2fsck would fail. Store i_size_high for the journal inode when creating it, and load it upon access. Use s_jnl_blocks[15] to store the journal i_size_high backup. This field is currently unused, as EXT2_N_BLOCKS is 15, so it is using s_jnl_blocks[0..14], and i_size is in s_jnl_blocks[16]. Rename the "size" argument "num_blocks" for the journal creation functions to clarify this parameter is in units of filesystem blocks and not bytes. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1ac2aa23ef030863f51fc77b42715e173967c44d |
|
11-Jun-2011 |
Andreas Dilger <adilger@whamcloud.com> |
ext2fs: fix undeclared posix_memalign() warning Older distros do not define posix_memalign() by default in the headers. If ext2fs.h is included early in the headers, it is possible to "#define _XOPEN_SOURCE 600" so that the stdlib.h header will define it, but if ext2fs.h is included after stdlib.h there is no posix_memalign() declaration. Add a posix_memalign() declaration if stdlib.h didn't do it. This is a bit of a hack for GNU headers, but it works on Linux and OS/X without problems. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cf5301d7f2c3bbed3d26600335102414cbf0c4ba |
|
11-Jun-2011 |
Andreas Dilger <adilger@whamcloud.com> |
misc: clean up compiler warnings Fix several types of compiler warnings (unused variables/labels), uninitialized variables, etc that are hit with gcc -Wall. Signed-off-by: Andreas Dilger <adilger@whamcloud.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
44fe08f1fa1e9a994ff304aa02022c53c9341519 |
|
11-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: add basic bigalloc support to check (but not yet repair) file systems Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
94968e749b224f01fbb9009ed0285e55f6441784 |
|
10-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: teach bitmap functions about bigalloc/cluster This patch makes the following changes: * ext2fs_allocate_block_bitmap() now allocates a bitmap with cluster granularity for bigalloc file systems. For mke2fs and e2fsck, a newly added function, ext2fs_allocate_subcluster_bitmap() allocates a bitmap with block granularity (even for bigalloc file systems). The newly added function ext2fs_get_bitmap_granularity() will return the number of bits (log2) of the granularity used by the bitmap. * The ext2fs_{mark,unmark,test}_block_bitmap2() functions will shift their passed-in argument by log2(cluster_ganularity) bits right. This means that the arguments for the single-argument bitmap functions will be interpreted with block granluarity, since this minimizes code changes in the rest of the code base. * The ext2fs_{get,set}_block_bitmap_range() functions will interpret their arguments in cluster granularity. This is a bit inconsistent, but the caller of those functions will need to be taught about the subtleties of clusters for bigalloc file systems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6a6337c3df7c982eb888764d585ec483a51af16e |
|
05-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: lib/ext2fs/bitmaps.c lib/ext2fs/rw_bitmaps.c misc/dumpe2fs.c
|
1da5ef707904cf99300a0fb36b9ae3b29dbc8bde |
|
04-Jun-2011 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: change fs->clustersize to fs->cluster_ratio_bits The log2 of the ratio of cluster size to block size is far more useful than just storing the cluster size. So make this change, and then define basic utility macros: EXT2FS_CLUSTER_RATIO(), EXT2FS_CLUSTER_MASK(), EXT2FS_B2C(), EXT2FS_C2B(), and EXT2FS_NUM_B2C(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ffec46fea48f1f05fbe2fb863b44fd2dd718c50f |
|
18-May-2011 |
Lukas Czerner <lczerner@redhat.com> |
e2fsprogs: Add memory allocation and zero-out helpers Add functions ext2fs_get_memzero() which will malloc() the memory using ext2fs_get_mem(), but it will zero the allocated memory afterwards with memset(). Add function ext2fs_get_arrayzero() which will use calloc() for allocating and zero-out the array. Signed-off-by: Lukas Czerner <lczerner@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
829d9994880394e48c883510799b1536812d6efb |
|
28-Feb-2011 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: lib/ext2fs/initialize.c
|
412376efff3c0e0c2fea00666c2457e6f2ae1878 |
|
26-Feb-2011 |
Theodore Ts'o <tytso@mit.edu> |
Add basic BIGALLOC support for cluster-based allocation This adds the superblock fields needed so that dumpe2fs works and the code points and renames the superblock fields from describing fragments to clusters. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9d92a201deec7bbb1911e6e5ee98abf3c83882d4 |
|
25-Sep-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure configure.in lib/ext2fs/ext2fs.h misc/mke2fs.c
|
73fbe2323af6a2b4d807c80069657bf1449b3bff |
|
25-Sep-2010 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Change EXT2_FLAG_DIRECT_IO to avoid conflict with devel branch The development branch of e2fsprogs already has a code point assigned in conflict with EXT2_FLAG_DIRECT_IO. Fix this. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7f1a1fbf850f6b73b5c9c82365f01029fb250a1c |
|
24-Sep-2010 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs: Add Direct I/O support to the ext2fs library This adds the basic support for Direct I/O to unix_io.c, and adds a new flag EXT_FLAG_DIRECT_IO which can be passed to ext2fs_open() or ext2fs_open2() to request Direct I/O support. Note that device mapper devices in Linux don't support Direct I/O, and in some circumstances using Direct I/O can actually make performance *worse*! Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
023a1df091f9d42f826ee3737190db5de9c823b0 |
|
23-Sep-2010 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs: add ext2fs_get_memalign() function Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
27a0e958e619c3ca105e575670416a964fa2678f |
|
22-Jul-2010 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add ext2fs_file_size_size2() and truncate the file if necessary This adds a 64-bit interface for ext2fs_file_size_size() and enhances it to trunate the file if necessary. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6dc058bd126ba2f631e38233d899f58a04e0c74f |
|
10-Jul-2010 |
Renzo Davoli <renzo@cs.unibo.it> |
libext2fs: Add new function ext2fs_file_get_inode() This patch adds a very simple function: struct ext2_inode *ext2fs_file_get_inode(ext2_file_t file); which is useful for fuse-ext2 when it needs to read the inode of an open file. Signed-off-by: renzo davoli <renzo@cs.unibo.it> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3adb9374fb92736e393ad64f751073b19927ec0e |
|
22-Jul-2010 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add new function ext2fs_punch() This function deallocates a range of blocks from a passed-in file. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
efe0b401465a3ee836180614b5b435acbb84fc27 |
|
14-Jun-2010 |
Eric Sandeen <sandeen@redhat.com> |
libext2fs: make fs->group_desc opaque To prevent direct array indexing of fs->group_desc[i] (because the group_desc may be a different size for different filesystems) make it an opaque pointer that may only be accessed through the accessor functions in blknum.c. The type itself is still available in a public header; if we have a group_desc that we know is one type or another, it's ok to access its fields directly. This change only prevents us from indexing off fs->group_desc[i] directly. Old-style applications who don't want to change their source code can (as a temporary short-term hack) #define EXT2FS_OLD_32_COMPAT before including ext2fs.h. Change the accessors in blknum.c to use ext4fs_group_desc(), a version of ext2fs_group_desc() which returns a ext4_group_desc pointer. This simplifies and collapses a fair bit of code in blknum.c Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
02d6f47e9647d3155a38c8676c2da6ea773d9b68 |
|
13-Jun-2010 |
Jose R. Santos <jrs@us.ibm.com> |
mke2fs: Fix up mke2fs to be able to make 64-bit file systems Use 64-bit interfaces in mke2fs. This should be most most of whats needed to support creating a 64-bit filesystem. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6d8b37fa7661484ca50a4951cffbf531ab1bccbb |
|
13-Jun-2010 |
Valerie Aurora Henson <vaurora@redhat.com> |
libext2fs: More random 64-bit fixes, lots of block_iterate3 Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ab13b5a9795a8c20f1d6da8fe1da340f545ec0e0 |
|
13-Jun-2010 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Create 64-bit dblist functions Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
97d26ce9e3589e9f5fa17014467a9730a884d158 |
|
07-Jun-2010 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: e2fsck/journal.c e2fsck/pass1.c e2fsck/pass2.c misc/mke2fs.c
|
bb1158b92ed8a12ab9e9317ca6ddd97bc12447d3 |
|
18-May-2010 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs: account for physical as well as logical sector size Some devices, notably 4k sector drives, may have a 512 logical sector size, mapped onto a 4k physical sector size. When mke2fs is ratcheting down the blocksize for small filesystems, or when a blocksize is specified on the commandline, we should not willingly go below the physical sector size of the device. When a blocksize is specified, we -must- not go below the logical sector size of the device. Add a new library function, ext2fs_get_device_phys_sectsize() to get the physical sector size if possible, and adjust the logic in mke2fs to enforce the above rules. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
543547a52a20cb7e69d74921b2f691078fd55d83 |
|
18-May-2010 |
Theodore Ts'o <tytso@mit.edu> |
libe2p, libext2fs: Update file copyright permission states to match COPYING The top-level COPYING file states that the e2p and ext2fs libraries are available under the LGPLv2. The files were incorrectly labelled. Alex Thomas/Luster has been consulted wrt to the ext3_extents.h file; the rest of the files were primarily authored by Theodore Ts'o. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cf828f1a72ec1eb0c1e819307137879447c909b7 |
|
26-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Byte-swap 64-bit block group descriptors Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cd65a24e756b8f6770a5961fd94c67eb00dd7baa |
|
26-Oct-2009 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Convert ext2fs_bg_flag_test() to ext2fs_bg_flags_test() After cleaning up ext2fs_bg_flag_set() and ext2fs_bg_flag_clear(), we're left with ext2fs_bg_flag_test(). Convert it to ext2fs_bg_flags_test(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e633b58ac75f2f544b7d6572e37d4b63da31e59c |
|
26-Oct-2009 |
Eric Sandeen <sandeen@redhat.com> |
libext2fs: clean up ext2fs_bg_flags_ interfaces The ext2fs_bg_flag* functions were confusing. Currently we have this: void ext2fs_bg_flags_set(ext2_filsys fs, dgrp_t group, __u16 bg_flags); void ext2fs_bg_flags_clear(ext2_filsys fs, dgrp_t group,__u16 bg_flags); (_set (unused) sets exactly bg_flags; _clear clears all and ignores bg_flags) and these, which can twiddle individual bits in bg_flags: void ext2fs_bg_flag_set(ext2_filsys fs, dgrp_t group, __u16 bg_flag); void ext2fs_bg_flag_clear(ext2_filsys fs, dgrp_t group, __u16 bg_flag); A better interface, after the patch below, is just: ext2fs_bg_flags_zap(fs, group) /* zeros bg_flags */ ext2fs_bg_flags_set(fs, group, flags) /* adds flags to bg_flags */ ext2fs_bg_flags_clear(fs, group, flags) /* clears flags in bg_flags */ and remove the original ext2fs_bg_flags_set / ext2fs_bg_flags_clear. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
95fd65bb7fcf84e8d1e207f84b9d5a9f99626a38 |
|
24-Aug-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
libext2fs: create generic numeric progress meters and use them With 64-bit file systems, mke2fs can take a long time to do things other than write inode tables. I exported the mke2fs numeric progress meter and used it for allocating group tables and the final file system flush. Signed-off-by: Valerie Aurora (Henson) <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d62d218f118863322742093ceb938bcac6093f80 |
|
08-Sep-2009 |
Nick Dokos <nicholas.dokos@hp.com> |
libext2fs: Fix counting routines in blknum.c to take/return __u32 counts Several routines in lib/ext2fs/blknum.c: ext2fs_bg_free_blocks_count() ext2fs_bg_free_inodes_count() ext2fs_bg_used_dirs_count() ext2fs_bg_itable_unused() and their _set() counterparts, operate as if they are dealing with blk64_t quantities, but they should be dealing with __u32 counts instead. Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8f82ef9860339039b54a324be137fbc09b762358 |
|
05-Aug-2009 |
Valerie Aurora Henson <vaurora@redhat.com> |
Convert libext2fs to 64-bit bitmap interface (Includes fixes from Nick Dokos) Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
69365c689b7164014e539b40ef62fc8eb804a05c |
|
22-Aug-2009 |
Theodore Ts'o <tytso@mit.edu> |
Add support for 64-bit bitmaps Initial design was done by Theodore Ts'o; implementation was fleshed out by Valerie Aurora Henson. Also includes some fixes from Nick Dokos. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8a480350952f6f0fdbce54326b6d847e66368897 |
|
22-Jun-2009 |
Theodore Ts'o <tytso@mit.edu> |
Fix encoding for rec_len in directories for >= 64k blocksize file systems Previously e2fsprogs interpreted 0 for a rec_len of 65536 (which could occur if the directory block is completely empty in 64k blocksize filesystems), while the kernel interpreted 65535 to mean 65536. The kernel will accept both to mean 65536, and encodes 65535 to be 65536. This commit changes e2fsprogs to match. We add the encoding agreed upon for 128k and 256k filesystems, but we don't enable support for these larger block sizes, since they haven't been fully tested. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
272631e4baa9f3a87813690d2e79161c8dc4b387 |
|
01-Jun-2009 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add ext2fs_block_iterate3() Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
73d0c4cce5cc6de9525e8a3c9ee690f066d8c0ba |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit mkjournal.c interface Added 64-bit mkjournal.c interface. Needed to zero inode tables. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
743011fbac672c488e54b843bf8a759bef10862e |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add ext2fs_div64_ceil() Add a new div_cell routine able to handle 64bit values Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4f8d6ab222beea3557e26aba9eefedb81db956ab |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit openfs interface Add new ext2fs_descriptor_block_loc2() routine that takes blk64_t as an input. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
71300f35de9b7fd0ab4252500ec5a4da1d9a1424 |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit closefs interface Add new ext2fs_super_and_bgd_loc2() that returns blk64_t pointers. The function now returns the number of blocks used by super block and group descriptors since with flex_bg, it can no longer be assumed that bitmaps and inode tables still resided within the block group. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
b91f14b870d5b4a4d71b62d81b078f2eb40878ae |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit ext_attr interface Add ext2fs_read_ext_attr2(), ext2fs_write_ext_attr2() and ext2fs_adjust_ea_refcount2() that take blk64_t as an input. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8a5e1812ae21d3d847a4df1067a105f284eb187c |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit alloc interface Add new ext2fs_new_block2(), ext2fs_get_free_blocks2() and ext2fs_alloc_block2() that take and return blk64_t. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e8328e31a98a92b39611314612a40b6113921fe2 |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit alloc_stats interface Add new ext2fs_block_alloc_stats2() routine that takes blk64_t as an input. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
57e2467d6211b2ff0dbcc23f705afd3b95fb917f |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit dirblock interface Add new ext2fs_(read|write)_dir_block3() routines that take blk64_t as an input. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e3854b3b7c7c499a663d752f9196a0d74eb5ec98 |
|
06-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
Add new blk64_t handling functions Add new blknum.c file which contains funtions to handle blk64_t and low/high values in super blocks and inodes. (Includes fixes from Nick Dokos, and additions from Valerie Aurora Henson) Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Valerie Aurora Henson <vaurora@redhat.com> Signed-off-by: Nick Dokos <nicholas.dokos@hp.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f6b4c27562837e5964726c1b6b86497c989dd03d |
|
01-Jun-2009 |
Jose R. Santos <jrs@us.ibm.com> |
libext2fs: Add ext2_off64_t type The ext2_off_t type is u32. Create a new 64-bit ext2_off64_t for 64bit offsets. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
84b239aea4da04c7a569b428d3abf6c720e82645 |
|
19-May-2009 |
number9652 <number9652@yahoo.com> |
libext2fs: add ext2fs_extent_open2 The patch below adds a function, ext2fs_extent_open2(), that behaves as ext2fs_extent_open(), but will use the user-supplied inode structure when opening an extent instead of reading the inode from disk. It also changes several of the calls to extent_open() to use this enhancement. Signed-off-by: Nic Case <number9652@yahoo.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
beab8de477110970785077fb3204f171d3fcc485 |
|
20-Aug-2008 |
Jose R. Santos <jrs@us.ibm.com> |
Add 64-bit getsize interface. Added interface capable of opening 64-bit block device. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
efc6f628e15de95bcd13e4f0ee223cb42115d520 |
|
28-Aug-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove trailing whitespace for the entire source tree Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2be8fe43976537b75a6ee154ff3ba47e538b55fb |
|
10-Jul-2008 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs,tune2fs: Enable huge_file, dir_nlink, and extra_isize features Also change mke2fs.conf to enable huge_file,dir_nlink,extra_isize, and uninit_bg by default for ext4 filesystems, and enable extra_isize in the library as well. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f5c562e2324a8950d659ebfc8db4356121d6104e |
|
02-Jun-2008 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add callback functions for _alloc_block() and _block_alloc_stats() Add callback functions for ext2fs_alloc_block() and ext2fs_block_alloc_stats(). This is needed so e2fsck can be informed when the extent_set_bmap() function needs to allocate or deallocate blocks. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c802ad9ed6c6756dfb65d31f0f559e90df3825d5 |
|
20-May-2008 |
Eric Sandeen <sandeen@redhat.com> |
Teach ext2fs_extent_delete() to remove an empty extent node from the tree ext2fs_extent_delete() will also update the parent node and decrement the inode block count. Passing in the EXT2_EXTENT_DELETE_KEEP_EMPTY flag will allow the empty node to remain. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f4e9963c0966734d8dc16877753698193b83cd65 |
|
20-May-2008 |
Eric Sandeen <sandeen@redhat.com> |
libext2fs: add new function ext2fs_extent_set_bmap() Allows unmapping or remapping single mapped logical blocks, and mapping currently unmapped blocks. Also implements ext2fs_extent_fix_parents() to fix parent index logical starts, if the first index of a node changes its logical start block. Currently this can result in unnecessary new single-block extents; I think perhaps ext2fs_extent_insert should grow a flag to request merging with a nearby extent? Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
01229db57ee71518f81d87d6bf900c62fe1de100 |
|
20-May-2008 |
Eric Sandeen <sandeen@redhat.com> |
Teach ext2fs_extent_insert() to split the current node if necessary If ext2fs_extent_insert finds that the requested node for insertion is full, it will currently fail. With this patch it will split as necessary to make room, unless an EXT2_EXTENT_INSERT_NOSPLIT flag is passed to it. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c86085044195c8b721fe9ee327d790316399781e |
|
27-Apr-2008 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs_add_journal_inode: Optimize writing the journal data blocks Add a new function ext2fs_zero_blocks(), and use it so that journal data blocks is written in larger chunks to speed up the creation of the journal. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
16b851cdae98244e117fe91d93b267fcad1102b3 |
|
21-Apr-2008 |
Theodore Ts'o <tytso@mit.edu> |
Remove LAZY_BG feature This simplifies the code, and using the uninit_bg with the inode table lazily initialized is just as good. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1ca1059fd0126fd2c065f272a566c18f14bab16d |
|
09-Apr-2008 |
Theodore Ts'o <tytso@mit.edu> |
Add support for the HUGE_FILE feature Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f628acea2671dda839fc086f1017718e41e34eca |
|
31-Mar-2008 |
Andreas Dilger <adilger@dilger.ca> |
ext2fs_set_gdt_csum(): Return an error code on errors instead of void Change the function signature so that ext2fs_set_gdt_csum() returns an error code. If the inode bitmap hasn't been loaded return EXT2_ET_NO_INODE_BITMAP. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d4f34d41be97e23db07d5ed606fcc1a26f5a3c76 |
|
22-Oct-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Add uninit block group support to various libext2fs functions Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ca2634a46ab9da85a3a015a7772770d9dbe5848e |
|
22-Oct-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Add initial checksum support for the gdt_checksum/uninit_group feature - Add support for computing CRC-16 value. - Add call to check/verify/set csum on block_groups. - Add a test program to verify csum operations. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2d328bb76d2d63bdfdba923b54c28bd686bd8fec |
|
18-Mar-2008 |
Theodore Ts'o <tytso@mit.edu> |
Fix miscellaneous gcc -Wall warnings Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a7c9cb7d0dc464eda26958595b728a6c3a4cacbc |
|
02-Feb-2008 |
Andreas Dilger <adilger@sun.com> |
Add support for the DIR_NLINK feature. This patch includes the changes required to e2fsck to understand the nlink count changes made in the kernel. In e2fsck pass 4, when we fetch the actual link count, if it is exceeds 65,000 we set the link count to 1. We silently fix the situation where the nlink count of the directory is 1, and there are fewer than 65,000 subdirectories, since since that can happen naturally. Patch originally from CFS, significantly rewritten by Theodore Ts'o. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: Kalpak Shah <kalpak@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a040a99b6cc4bf9f10d39747ca6947f0462a2eb2 |
|
13-Mar-2008 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' Conflicts: lib/ext2fs/ext2_err.et.in
|
52b1dd5e496c199e9cbcc238f26fd2264a07a2cf |
|
13-Mar-2008 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add ext2fs_dblist_get_last() and ext2fs_dblist_drop_last() Add two new functions which allows the caller to examine the last directory block entry added to the list, and to drop if it necessary. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a49670e64e28ac3b15e36cb6bd0a8135d3ecdbbb |
|
28-Feb-2008 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' Conflicts: lib/blkid/devname.c lib/blkid/probe.c misc/mke2fs.c misc/tune2fs.c
|
ab52e12a904b4a31fc3416f0ef7d959f0c38e773 |
|
27-Feb-2008 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add EXT2_FLAG_NONFREE_ON_ERROR to ext2fs_open2() Add a flag which returns the partially completed filesystem object so e2fsck can print more intelligent error messages. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
fefaef39e046781ddc75d15a8f12369f17dbd17d |
|
02-Feb-2008 |
Andreas Dilger <adilger@sun.com> |
Improve support for in-inode EA's Add vertificaton of the in-inode EA information, and allow in-inode EA's to have a checksum. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
15d482ba6e46b6979d8d9e9b3b28e0942b626c2e |
|
21-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
e2fsck: Add support for extents Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cc9bf5d246fc23267e14cc328728f146aee142e2 |
|
18-Feb-2008 |
Theodore Ts'o <tytso@mit.edu> |
Add read/only support for extents to ext2fs_bmap() Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3eb07f649350acfd9e145584d57aac3c1b65d0ba |
|
15-Oct-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add support for extents to libext2fs Initial implemenation of extents support in libext2fs Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
357d1863d64ce807c2904e101fc87d3f6be2f3ca |
|
03-Feb-2008 |
Theodore Ts'o <tytso@mit.edu> |
libext2: Add BLOCK_FLAG_READ_ONLY flag to ext2fs_block_iterate2() This flag allows the caller to promise that it will not try to modify the block numbers returned by the iterator. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
fef2b38d8e5b475655771f8208265a8fa9246601 |
|
01-Jan-2008 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: configure debian/rules e2fsck/swapfs.c lib/ext2fs/ext2_fs.h
|
e5aace908e9d1161a594944d9360f9f0cdd18099 |
|
27-Dec-2007 |
Theodore Ts'o <tytso@mit.edu> |
Convert use of ext2fs_get_mem to ext2fs_get_array for overflow detection Add some additional checks, primarily in resize2fs and in the rarely used (and soon to-be-deprecated) e2fsck byte-swap filesystem function. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e6a4571eec5ce0e75fb8a5a41c30bf0e68d90efe |
|
09-Dec-2007 |
Theodore Ts'o <tytso@mit.edu> |
Merge branch 'maint' into next Conflicts: lib/ext2fs/closefs.c
|
ee01079a17bfecd17292ccd60058056fb3a8ba6c |
|
10-Nov-2007 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: Add checks to prevent integer overflows passed to malloc() This addresses a potential security vulnerability where an untrusted filesystem can be corrupted in such a way that a program using libext2fs will allocate a buffer which is far too small. This can lead to either a crash or potentially a heap-based buffer overflow crash. No known exploits exist, but main concern is where an untrusted user who possesses privileged access in a guest Xen environment could corrupt a filesystem which is then accessed by the pygrub program, running as root in the dom0 host environment, thus allowing the untrusted user to gain privileged access in the host OS. Thanks to the McAfee AVERT Research group for reporting this issue. Addresses CVE-2007-5497. Signed-off-by: Rafal Wojtczuk <rafal_wojtczuk@mcafee.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c2d4300b8a4a13d8a78b86c386f76259f23feec2 |
|
14-Aug-2007 |
Jose R. Santos <jrs@us.ibm.com> |
Enable FLEX_BG feature support Add FLEX_BG as a supported feature bit. Add support to mke2fs to create filesystems with FLEX_BG. Add support to tune2fs to add (and remove, if it won't break filesystem consistency) the FLEX_BG feature. Signed-off-by: Jose R. Santos <jrs@us.ibm.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> -- lib/e2p/feature.c | 2 ++ lib/ext2fs/ext2fs.h | 6 ++++-- misc/mke2fs.c | 7 ++++++- 3 files changed, 12 insertions(+), 3 deletions(-)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5d38ef1d049bf56d1c1e88b8b4d287c0f9470e61 |
|
30-Aug-2007 |
Valerie Clement <valerie.clement@bull.net> |
libext2fs: cleanup usage of unsigned int or __u32 and replace it with blk_t Signed-off-by: Valerie Clement <valerie.clement@bull.net> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
eac91b35372c9affff6953165f34fe246272bef9 |
|
14-Oct-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add blk64_t type definition This will be used for all new functions so we can gradually move e2fsprogs to support 64 bit blocks. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a5dda0542283d0674f42a0d1b04d33888f512eab |
|
11-Aug-2007 |
Theodore Ts'o <tytso@mit.edu> |
Remove configure --enable-swapfs and associated support #defines This removes the last vestiges of support for the legacy PowerPC big-endian filesystem format. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f1f115a78f5ea599fc5f8815a741d43fedd5840d |
|
23-Jul-2007 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: 32-bit bitmap refactorization, part 3 Create new functions ext2fs_{set,get}_{inode,block}_bitmap_range() which allow programs like e2fsck, dumpe2fs, etc. to get and set chunks of the bitmap at a time. Move the representation details of the 32-bit old-style bitmaps into gen_bitmap.c. Change calls in dumpe2fs, mke2s, et. al to use the new abstractions. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
50448d3dffc66f86592ee0d4b16e4bbe9d08449e |
|
23-Jul-2007 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: 32-bit bitmap refactorization, part 2 Move the contents of rs_bitmap.c and cmp_bitmaps.c into gen_bitmap.c and bitmaps.c. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a0553c9d6e8dd6f538f18ae447c45e52f3c40eb6 |
|
23-Jul-2007 |
Theodore Ts'o <tytso@mit.edu> |
libext2fs: 32-bit bitmap refactorization, part 1 Move the 32-bit specific bitmap code into gen_bitmap.c, and the high-level interfaces into bitmaps.c. Eventually we'll move the new-style bitmap code into gen_bitmap64.c, but first we need to isolate the code with knowledge of the bitmap internals in one place first. In this patch we move allocation, free, copy, clear, set_padding, and fudge_end function into gen_bitmap.c, and make sure that the bitmaps.c and bitops.c no longer have any knowledge of the bitmap internals. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
56d1236726d8e4624d2f3a2f4713864c1e66bb40 |
|
21-Jun-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add default journal size function Factor out the code which sets the default journal size and move it into libext2fs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1b9d8cb7057387afae106ffa662613205f07e131 |
|
06-Apr-2007 |
Theodore Ts'o <tytso@mit.edu> |
Add support for using TDB to libext2fs's icount abstraction Add support for using TDB to store the icount data, so we don't run out of memory when checking really large filesystems. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2694f31946f0c168cc8d098f3970f0ae08d94e7b |
|
14-Nov-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix type punning bugs in ext2fs_get_mem() and ext2fs_free_mem() This was causing dumpe2fs to crash on the ARM platform when examining the badblocks list. Also reverts an incorrect fix made by changeset 38078f692c20 Addresses Debian Bug: #397044
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cf8272e1081f69d898d5182ed516e28807135dea |
|
13-Nov-2006 |
Theodore Ts'o <tytso@mit.edu> |
Allow debugfs and dumpe2fs to support fs features under development Add support for the new flag EXT2_FLAG_SOFTSUPP_FEATURES flag to ext2fs_open() , which allows application to open filesystes with features which are currently only partially supported by e2fsprogs. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
89dd65704f4397c49d40ae8c171928831e6a74bf |
|
13-Nov-2006 |
Theodore Ts'o <tytso@mit.edu> |
Check in ext4 extent headers into the source tree Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
abf23439d51a3ddbca475b931abebd381ff7ceea |
|
12-Sep-2006 |
Eric Sandeen <esandeen@redhat.com> |
Create new ext2fs library inlines: ext2fs_group_{first,last}_block() Create new ext2fs library inline functions in order to calculate the starting and ending blocks in a block group. Signed-off-by: Eric Sandeen <esandeen@redhat.com>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
69022e029f3273b3b860bf701219cd3fe615f76b |
|
30-Aug-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix potential 2**32-1 overflow problems by ext2fs_div_ceil() Add a new function, ext2fs_div_ceil(), which correctly calculates a division of two unsigned integer where the result is always rounded up the next largest integer. This is used everywhere where we might have previously caused an overflow when the number of blocks or inodes is too close to 2**32-1. Based on patches from Eric Sandeen, but generalized to use this new function Signed-off-by: "Theodore Ts'o" <tytso@mit.edu> Signed-off-by: Eric Sandeen <esandeen@redhat.com>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
067911ae734bb5fef7c5780a639533847b5b578c |
|
16-Jul-2006 |
Andreas Dilger <adilger@clusterfs.com> |
Allow default inode_size to be specified in mke2fs.conf and document mke2fs -I This patch allows "inode_size" to be specified in the mke2fs.conf file, and always compiles in the "-I" option. In addition, it disallows specifying the inode size on rev 0 filesystems, though I don't think this was much of a danger anyways. Clean up dead lines in ext2fs.h. Signed-off-by: Andreas Dilger <adilger@clusterfs.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f5fa20078bfc05b554294fe9c5505375d7913e8c |
|
09-May-2006 |
Theodore Ts'o <tytso@mit.edu> |
Add support for EXT2_FEATURE_COMPAT_LAZY_BG This feature is initially intended for testing purposes; it allows an ext2/ext3 developer to create very large filesystems using sparse files where most of the block groups are not initialized and so do not require much disk space. Eventually it could be used as a way of speeding up mke2fs and e2fsck for large filesystem, but that would be best done by adding an RO_COMPAT extension to the filesystem to allow the inode table to be lazily initialized on a per-block basis, instead of being entirely initialized or entirely unused on a per-blockgroup basis. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
39c47ce6417b81aa74596fd0d4d98d542525a444 |
|
19-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Add EXT2_FLAG_EXCLUSIVE to the ext2fs library. This flag when specified to ext2fs_open or ext2fs_initialize indicates that the application wants the io_channel to be opened in exclusive mode. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7447921dff38ef06a78355c0a7a23df9392102a4 |
|
18-Mar-2006 |
Theodore Ts'o <tytso@mit.edu> |
Fix documentation: BLOCK_FLAG_TRAVERSE should be BLOCK_FLAG_DEPTH_TRAVERSE Addresses Debian Bug #351268 Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9b9a780f5a5823865f62f0c9fd194d262f63a06f |
|
11-Dec-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix various gcc -Wall complaints. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a82a57025c4368de330ecac9a430d84137ae2268 |
|
14-Nov-2005 |
Theodore Ts'o <tytso@mit.edu> |
Add missing #include for string.h to ext2fs.h to fix GCC 4.01 complaints #include <string.h> is needed since the inline functions use memcpy(). (Addresses Sourceforge Bug #1251062) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
32138187f08d1f1dc03feb269f987982db76f3db |
|
25-Sep-2005 |
Theodore Ts'o <tytso@mit.edu> |
Add fs->now to override time(0) in libext2fs If fs->now is non-zero, use that as the time instead of the system time when setting various filesystem fields (last modified time, last write time, etc.) Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
68a7f959c0af3d6e32cf9339433667f04b8a1c56 |
|
06-Sep-2005 |
Matthias Andree <matthias.andree@gmx.de> |
Fix compiler warnings about missing memcpy prototypes. Signed-off-by: Matthias Andree <matthias.andree@gmx.de> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
39c191f5b3bffc5aee56d6335fe54041c582e05d |
|
27-Jun-2005 |
Stephen Tweedie <sct@redhat.com> |
ext2fs_resize_mem() is suffering from C99 strict type aliasing problems. The trouble is that it is modifying pointers in place, but doing so via "void *" types which alias the pointers passed in (which are typically pointers to a struct.) The inline ext2fs_resize_mem() code may update the pointer, but the caller is not required to reload the old value it may have cached in a register, according to the type aliasing rules. This is causing the caller to dereference the old pointer when compiled with -O2, resulting in reproducible SEGV, on at least one ia64 configuration. The compiler *is* required to reload if it sees an update to a dereferenced char value, though, as chars are defined to alias anything; and memcpy() is defined to operate on chars. So using memcpy() to copy the pointer values is guaranteed to force the caller to reload. This has been verified to fix the problem in practice. Fixes Red Hat bug #161183.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2fa8f37ffff4687228d9f204062f2d27b0e5b919 |
|
05-Jun-2005 |
Theodore Ts'o <tytso@mit.edu> |
On Linux 2.6 systems, mke2fs and badblocks will check to see whether the filesystem appears to be busy; if so, the programs will print an error message and abort. (Addresses Debian Bug #308594).
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
030970ed750b6a169c32ffb8b19bce3150198629 |
|
21-Mar-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix e2fsck, debugfs, and the ext2fs_mkdir function so that when we create a new inode we make sure that the extra information in the inode (any extra fields in a large inode and any ea-in-inode information) is cleared. This can happen when e2fsck creates a new root inode or a new lost+found directory, or when the user uses the debugfs write, mknod, or mkdir commands. Otherwise, the newly create inode could inherit garbage (or old EA information) from a previously deleted inode.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7331196a16e57ef80dd6ae40eeeab14747ce2f5d |
|
26-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Add library support for large (EA in inode) inodes. Make sure that garbage doesn't get written into the reserved portion when writing into filesystems that have large inodes defined.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
dc8ce3463791366ac844d3f0436709511fa09c49 |
|
06-Jan-2005 |
Theodore Ts'o <tytso@mit.edu> |
Fix resize inode handling on big endian systems, by adding new routines that read/write indirect blocks, byte swapping them if necessary.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1d667534e93e78eedbf2efcef6d7844041675f26 |
|
23-Dec-2004 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs.h (BMAP_SET), bmap.c (ext2fs_bmap): Add support for new flag, BMAP_SET, which allows the caller to set a particular logical->physical block mapping.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1b4cd9c7464d5bd0f5b416c7303bcc827e312473 |
|
16-Dec-2004 |
Theodore Ts'o <tytso@mit.edu> |
sparse.c (ext2fs_list_backups, ext2fs_bg_has_super), res_gdt.c (list_backups), closefs.c (ext2fs_bg_has_super), ext2fs.h: Move ext2fs_list_backups() to res_gdt.c, and ext2fs_bg_has_super() back to closefs.c. There's no reason for the new file, since list_backups() isn't being used by any other functions, and can be made static, and all users of the ext2fs filesystem will have to call ext2fs_close() anyway.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d323f8fb369089b97d6f3bf0f8d64ceeab0b10f5 |
|
15-Dec-2004 |
Theodore Ts'o <tytso@mit.edu> |
Add support for on-line resizing ala the resize inode. This patch is taken from Fedora Core 3's e2fsprogs 1.35-11.2.src.rpm's e2fsprogs-resize.patch.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2e8ca9a26b0bd7dae546a3f9a98df67b043fe3be |
|
30-Nov-2004 |
Theodore Ts'o <tytso@mit.edu> |
Add support for passing options to the io layer using the URL syntax. For example, /tmp/test.img?offset=1024. Multiple options can separated using the & character, although at the moment the only option implemented is the offset option in the unix_io layer.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1ad54a940c499a66241f624882f1ffa03ce56d90 |
|
29-Jul-2004 |
Theodore Ts'o <tytso@mit.edu> |
Add ability for debugfs to use a separate source of data blocks when reading from an e2image file. (New -d option) Add new functions ext2fs_get_data_io, ext2fs_set_data_io, ext2fs_rewrite_to_io to libext2fs library.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e47fd8414d3bd4632792cc52310e53edcfeea27c |
|
22-Feb-2004 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs.h (ext2fs_resize_mem): Fix C++ problem. (Addresses Red Hat Bugzilla #112448; thanks Thomas Woerner from Red Hat.)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
544349270e4c74a6feb971123884a8cf5052a7ee |
|
07-Dec-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nitpicks
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ef344e13d2125e9dae3764b98f9fe3a170cd79e2 |
|
21-Nov-2003 |
Theodore Ts'o <tytso@mit.edu> |
Centeralize calculation of which blocks are reserved/used for the superblock and block group descriptors into two functions: ext2fs_reserve_super_and_bgd, found in lib/ext2fs/alloc_sb.c, and ext2fs_super_and_bgd_lock, found in lib/ext2fs/close.c. Change e2fsck/pass1.c (mark_table_blocks), lib/ext2fs/closefs.c (ext2fs_flush), lib/ext2fs/initialize.c (ext2fs_initialize), and misc/dumpe2fs.c (list_desc) to use these functions. e2fsck/ChangeLog pass1.c (mark_table_blocks): Use the new function ext2fs_reserve_super_and_bgd to calculate the blocks to be reserved. lib/ext2fs/ChangeLog closefs.c (ext2fs_super_and_bgd_loc): New function which centralizes the calculation of the superblock and block group descriptors. (ext2fs_flush): Use ext2fs_super_and_bgd_lock to figure out where to write the superblock and block group descriptors. alloc_sb.c (ext2fs_reserve_super_and_bgd): New function which reserves space in the block bitmap using ext2fs_super_and_bgd_loc. initialize.c (ext2fs_initialize): Use ext2fs_reserve_super_and_bgd to initialize the block bitmap. misc/ChangeLog dumpe2fs.c (list_desc): Use ext2fs_super_and_bgd_loc to determine the locations of the superblock and block group descriptors.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a435ec3449694a8fa299337197cc09624960a3a6 |
|
21-Aug-2003 |
Theodore Ts'o <tytso@mit.edu> |
Add support for backing up the journal inode location in the superblock. E2fsck will automatically save the journal information in the superblock if it is not there already, and will use it if the journal inode appears to be corrupted. ext2fs_add_journal_inode() will also save the backup information, so that new filesystems created by mke2fs and filesystems that have journals added via tune2fs will also have journal location written to the superblock as well. Debugfs's logdump command has been enhanced so that it can use the journal information in the superblock. The debugfs man page has been improved to more fully describe the logdump command. Added two new functions, ext2fs_file_open2() and ext2fs_inode_io_intern2() which take a pointer to an inode structure; this is needed so that e2fsck and debugfs can synthesize a fake journal inode and use it to access the journal.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c4e3d3f374b409500e3dd05c0b0eca6ac98a6b4e |
|
01-Aug-2003 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs_getmem(), ext2fs_free_mem(), and ext2fs_resize_mem() all now take a 'void *' instead of a 'void **' in order to avoid pointer aliasing problems with GCC 3.x.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7d7bdd578b307cad1dc248310eb279c6fb73b682 |
|
24-Jun-2003 |
Theodore Ts'o <tytso@mit.edu> |
Fix bug in resize2fs which caused it to fail on filesystems with a non-empty bad block list. Resize2fs now discards any blocks on the badblock list which are no longer part of the filesystem as the result of a filesystem shrink. (Note: this means that shrinking and then enlarging a filesystem is no longer a reversible operation; information about bad blocks in the part of the filesystem which is to be chopped off will be lost.)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
93d5c38791a3778eed18fe968cdd136d23d0fa07 |
|
21-May-2003 |
Theodore Ts'o <tytso@mit.edu> |
mke2fs.c (PRS, set_fs_defaults): If the sector size of the device is larger than the default block size, then use the sector size of the device as the default block size. getsectsize.c (ext2fs_get_device_sectsize): New function which returns the hardware sector size (if it is available).
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
220c0040fb4a5e8a2a091a9e3a936bb8a85223d8 |
|
14-Mar-2003 |
Theodore Ts'o <tytso@mit.edu> |
badblocks.c (ext2fs_u32_list_count), ext2fs.h: Add new function which returns the number of entries in the list.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
819157db798cd514aa2f3ae421d64e2e0c9b7fa8 |
|
23-Jan-2003 |
Theodore Ts'o <tytso@mit.edu> |
Remove 32-bit limitations for debugfs's dump command and to the ext2fs library's ext2fs_file_read.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c046ac7f2e4c53e20cf1e909bbe511f91074b396 |
|
20-Oct-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add support for the meta_blockgroup filesystem format.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3e69906495d5898849a6154b0311b5d4a84a27ae |
|
14-Oct-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix gcc -Wall nits. Fix format bug if NLS is in use. Add extra so that the info directory looks OK on OpenWall.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ea1959f01523ffc105747d660ccc5b7f02805928 |
|
31-Aug-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix a bug which caused e2fsck to fail to correctly check filesystems using a non-zero hash version (i.e., half MD4 or TEA hash). The hash version wasn't getting copied into dx_dir->hashversion and this caused the kernel to treat all directories if they were using the legacy hash, which was Bad.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
b33278c4d640c3fc8f99a314b637b7e502fceb9c |
|
17-Aug-2002 |
Theodore Ts'o <tytso@mit.edu> |
Modify the half MD4 hash so it is no longer endian dependent. This is a backwards incompatible change, but this should be OK since the kernel MD4 ext3 code was only in the CVS tree, and hasn't generally escaped. Add support for the TEA hash.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
0684a4f33b5c268fe12f57fcbc77a880c79ab282 |
|
17-Aug-2002 |
Theodore Ts'o <tytso@mit.edu> |
Overhaul extended attribute handling. Should now be correct with respect to the latest V2 bestbits ACL code.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
b7a00563b22b0ea47ddc7117508c0b8e0d65df43 |
|
20-Jul-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add support to e2fsck to reindex directories to use hash trees.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
50cd7e06e26d8cb232819b3d94b67e37ade80c0f |
|
14-Jul-2002 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs.h, read_bb_file.c: Change private to priv_data, to avoid using a C++ reserved word.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
503f9e7f6eb331c5b75d7f1ad126f71bcdcfb4e3 |
|
26-Jun-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add support for the half-MD4 HTREE hash. Add HTREE root node tests.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f9190c8a95c6b76eac567d5896b3ed06ed2a3ada |
|
12-Mar-2002 |
Theodore Ts'o <tytso@mit.edu> |
dirblock.c (ext2fs_read_dir_block2, ext2fs_write_dir_block): New functions which take an extra flags argument. The flag EXT2_DIRBLOCK_V2_STRUCT will reverse when the name_len field is byte swampped on big-endian machines, since in the V2 structure, name_len is a char field which is doesn't need to be byte swapped --- except if an old-style kernel had byte-swapped the name_len field as part of the V1 structure. Also fixed a bug in debugfs which used ext2_dir_entry_2 without worrying about the above issue, with the net result that "ls -l" would print an incorrect file type on big-endian systems.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
52783e0ca72a80c549e9d266b3472f78fc61bdb2 |
|
11-Mar-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add new function to the libext2fs library, ext2fs_dirhash, which calculates the hash of a filename for indexed directories.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
546a1ff18cc912003883ff67ba3e87c69f700fc4 |
|
08-Mar-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix various gcc -Wall complaints.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f12e285ffd9ff0b37c4f91d5ab2b021ed1eb43be |
|
20-Feb-2002 |
Theodore Ts'o <tytso@mit.edu> |
Add new inode I/O abstraction interface which exports an inode as an I/O object. Export ext2_file_flush as a public interface. Also minor cleanups to tighten code in other I/O abstractions, and to mark a void * pointer as const in the ext2_file_write interface.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7f961d424b1ba527e835d01ad24e0e4c3f4088c5 |
|
03-Feb-2002 |
Theodore Ts'o <tytso@mit.edu> |
Fix bug where ext2fs_mkdir wasn't correctly bumping the number of directories in use in a bloock group.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8bd0c95908baa3af706b9e731daff9472bec74c9 |
|
03-Jan-2002 |
Theodore Ts'o <tytso@mit.edu> |
dir_iterate.c (ext2fs_dir_iterate2, ext2fs_process_dir_block): Add support for a new flag, DIRENT_FLAG_INCLUDE_REMOVED, which will return deleted directory entries. ext2fs_dir_iterate2 takes a new callback function which is identical with the one used by ext2fs_dblist_dir_iterate(). If the directory entry is deleted, the callback function will be called with the entry paraemter set to DIRENT_DELETED_FILE. Makefile.in, alloc_stats.c (ext2fs_inode_alloc_stats, ext2fs_block_alloc_stats): New functions which update block/inode allocation statistics in the bitmaps, block group descriptors, and superblock. mkjournal.c (mkjournal_proc), mkdir.c (ext2fs_mkdir), expanddir.c (expand_dir_proc), bb_inode.c (clear_bad_block_proc, set_bad_block_proc, ext2fs_update_bb_inode), alloc.c (ext2fs_alloc_block): Update to use new block/inode allocation statistics.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
07cefe7a7051e32f14b93d9003a6dbb308597bd3 |
|
24-Dec-2001 |
Theodore Ts'o <tytso@mit.edu> |
ismounted.c (is_swap_device): New function used by ext2fs_check_if_mounted and ext2fs_check_mount_point which determines whether or not the specified device is a swap device by using /proc/swaps. More bulletproofing for idiotic/careless system administrators!
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
6a525069a99787ef3ae1156f12230044b3568f4b |
|
24-Dec-2001 |
Theodore Ts'o <tytso@mit.edu> |
Mke2fs now creates the lost+found directory with 0700 permissions, since files which get dropped into that directory may have come from a protected directory, and the system administrator may not deal with immediately. (Addresses Debian bug #118443)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
342d847db355d81299218e07a1e58ece82080a04 |
|
02-Jul-2001 |
Theodore Ts'o <tytso@mit.edu> |
Add initial support for extended attribute blocks
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5df55d7f847e29d23227592a0bb23daad1a61500 |
|
11-Jun-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, swapfs.c, unix.c: Makefile.in: Add message.c and swapfs.c to the list of source files to build the make depend. swapfs.c, unix.c: Only support the -s and -S options to e2fsck if ENABLE_SWAPFS is defined. Many files: ext2fs.h, bitops.h, block.c, bmap.c, closefs.c, dirblock.c, inode.c, native.c, openfs.c, rw_bitmaps.c, swapfs.c: Only include the byte-swapping logic if ENABLE_SWAPFS is turned on or if we're on a big-endian machine. initialize.c (ext2fs_initialize):Use WORDS_BIGENDIAN directly to set EXT2_FLAG_SWAP_BYTES, instead of using ext2fs_native_flag. native.c (ext2fs_native_flag): Use WORDS_BIGENDIAN provided by autoconf to determine whether or not return EXT2_FLAG_SWAP_BYTES.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
797f5ef14e92294b329e52971d467d7af5b2993e |
|
02-Jun-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, wordwrap.pl: Makefile.in: Move include/asm/types.h.in to lib/ext2fs/ext2_fs.h.in. wordwrap.pl: Add some rules which help fix up the dependencies. Many files: Move include/asm/types.h.in to lib/ext2fs/ext2_fs.h.in.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7c2d25699f2da458ba8201a375b00562d7a2469e |
|
21-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: #include <> instead of "" for ext2fs and et header files, since they will be installed in /usr/include ChangeLog, e2p.h: e2p.h: #include <> instead of "" for ext2fs and et header files, since they will be installed in /usr/include
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a78926effb15bbabb1c0ed3e438b03be25c4d48c |
|
03-May-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2fs.h (EXT2_FLAG_IMAGE_FILE): Add new flag, and add image_header field in the ext2_filsys structure block.c (block_iterate_ind, block_iterate_dind, block_iterate_tind): inode.c (ext2fs_read_inode): rw_bitmaps.c (read_bitmaps): openfs.c (ext2fs_open): Add support for EXT2_FLAG_IMAGE_FILE imager.c (ext2fs_image_bitmap_read): Fix bug in imager to make sure the full bitmap is saved.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a112847b39386f9e7332ba5e5a0a5e54cfe301cc |
|
16-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2_err.et.in, ext2fs.h, initialize.c, mkjournal.c, openfs.c: initialize.c (ext2fs_initialize): Add support for initializing the ext2 superblock for external journal devices. This basically means we don't bother to allocate any block group descriptors. openfs.c (ext2fs_open): Only open external journal devices if the new flag EXT2_FLAG_JOURNAL_DEV_OK is passed to ext2fs_open. When opening such devices, don't try to read the block group descriptors, since they're not there. ext2_err.et.in (EXT2_NO_JOURNAL_SB): Add new error code mkjournal.c: Export a new function, ext2fs_create_journal_superblock(), which allocates and returns a buffer containing a journal superblock. This is needed by mke2fs to create an external journal. Rewrote ext2fs_add_journal_device() so that it no longer creates the external journal, but rather adds a filesystem to an existing external journal. It handles all of the UUID manipulation. ext2fs.h: List the EXT3_FEATURE_JOURNAL_DEV as a flag supported by the library. Define the EXT2_FLAG_JOURNAL_DEV_OK. Changed function prototype for ext2fs_add_journal_device().
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
426d734ff06e769cf5117053b6264c4a9decd3b2 |
|
13-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, setsuper.c: setsuper.c: Cleaned up some random whitespace problems. ext2fs.h: Fixed spelling mistake in comment.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4d0f3e17a5b7556505fe437680070fe3bb140d67 |
|
11-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, MCONFIG.in, configure, configure.in: MCONFIG.in: Change --enable-gcc-wall handling so that it's no longer a configure option, but something which is done when the developer uses the command "make gcc-wall". configure.in: Remove test for ino_t, since we don't use it any more (we always use our own ext2_ino_t). Remove --enable-gcc-wall support. Add test for sys/ioctl.h .del-types.h.in~ca55114a: Remove definition of ino_t ChangeLog, Makefile.in, ext2fs.h, flushb.c, jump.funcs: flushb.c (ext2fs_sync_device): New function which centralizes all of the places which might try to use the BLKFLSBUF or FDFLUSH ioctls (and usually failing to define them since the system header files don't usually do this for us, and we're trying to avoid usage of kernel include files now.)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
31dbecd482405e0d3a67eb58e1a1c8cb9f2ad83e |
|
11-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: alloc.c, bb_inode.c, bitmaps.c, bitops.h, block.c, bmap.c, bmove.c, brel.h, cmp_bitmaps.c, dblist.c, dblist_dir.c, dir_iterate.c, expanddir.c, ext2fs.h, ext2fsP.h, fileio.c, finddev.c, get_pathname.c, icount.c, inode.c, irel.h, irel_ma.c, ismounted.c, link.c, lookup.c, mkdir.c, mkjournal.c, namei.c, newdir.c, read_bb_file.c, test_io.c, tst_iscan.c, unix_io.c, unlink.c: Change use of ino_t to ext2_ino_t, to protect applications that attempt to compile -D_FILE_OFFSET_BITS=64, since this inexplicably changes ino_t(!?). So we use ext2_ino_t to avoid an unexpected ABI change.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
cdaf1fa78f6d63457eb5337c14b23e567d1346a7 |
|
05-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, mkjournal.c: mkjournal.c (ext2fs_add_journal_device): Fix various gcc -Wall complaints including a missing return 0 at the end of ext2fs_add_journal_device. ChangeLog, ext2fs.h: ext2fs.h: Indent the #warning to fix gcc -Wall complaint.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
43ec8734f2ecd0a345e831f45fd3dfb077426811 |
|
03-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h, ismounted.c: ismounted.c: add ext2fs_check_mount_point() function, which will optionally return the mount point of a device if mounted ChangeLog, closefs.c, ext2fs.h: ext2fs.h, closefs.c (ext2fs_flush): Add new flag, EXT2_FLAG_SUPER_ONLY, which the close routines to only update the superblock, and not the group descriptors.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
31a17b36d5f7d875f9de8e86501eaf2338f94d2b |
|
03-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h, mkjournal.c: mkjournal.c: rename ext2fs_add_journal_fs() to the more descriptive ext2fs_add_journal_inode()
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e5b38a5fafe4807b54d90a2e70bddf4b41b1695b |
|
01-Jan-2001 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2fs.h: Remove definition of ext2fs_sb. Note: this may break source (but not binary) compatibility of some users of the ext2 library. They should just simply do a global search and replace of struct ext2fs_sb with struct ext2_super_block, and use their own private copy of ext2_fs.h if they aren't already. closefs.c, initialize.c, link.c, newdir.c, openfs.c, swapfs.c: Replace use of ext2fs_sb with ext2_super_block. ChangeLog, main.c: main.c (main): Replace use of struct ext2fs_sb with struct ext2_super_block.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2fe1efe2e56dc9f8223992301aec3844dd9563e6 |
|
31-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: Cleaned up header file by removing definitions of feature flags that might not have been defined in older ext2 header files. Now that we're using our own include/linux/ext2fs.h header file, this can never happen. jfs_dat.h: Removed old header file which is no longer needed. ChangeLog: jfs_compat.h: Remove uneeded header file.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a917d1ccf49605b3009f4e7225f00b81fc16100b |
|
13-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, closefs.c, ext2fs.h, jump.funcs, super.c: Rename _ext2fs_update_fs_dynamic_rev to _ext2fs_update_dynamic_rev
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3fe973b3068f68bb9d3ea6ba309dc7d2df30301f |
|
13-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, closefs.c, ext2fs.h, jump.funcs: closefs.c (ext2fs_update_fs_dynamic_rev): New function suggested by Andreas Dilger to update the filesystem revision to EXT2_DYNAMIC_REV.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4e246704eab31407ac15be9ab206c6f929507cf0 |
|
09-Dec-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h, mkjournal.c: ext2fs.h, mkjournal.c (ext2fs_add_journal_fs, ext2fs_add_journal_device): Add a new argument to the APIs of these function, which is a flags word. This is used to allow the creation of a V1 superblock for those folks who are using ext3 0.3b in production. Note, the user-land interface for getting at this flag won't be documented, as the V1 superblock is deprecated.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
72ed12648368b3f3ea14e8102e20bf5d3a3be6d3 |
|
12-Nov-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, e2image.h, ext2_err.et.in, ext2fs.h, imager.c: imager.c (ext2fs_image_{inode,super,bitmap}_{read,write}, ext2_fs.h, Makefile.in: New file that has routines that save ext2fs metadata to a file. ext2_err.et.in (EXT2_ET_MAGIC_E2IMAGE): New error code assigned. e2image.h: New file which defines the file format for the ext2 image file. (Saved copy of ext2 metadata to a file as a saving throw against worst-case damage.) ChangeLog, Makefile.in, e2image.c: e2image.c, Makefile.in: New program which saves ext2 metadata to a file for people who need a last-ditch saving throw.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c180ac86533bcbfb1560bd4aa01464785a760f70 |
|
26-Oct-2000 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2_io.h (io_channel_write_byte): Add new interface to allow callers to write specific byte ranges. This is an optional interface, which not all IO channels may implement. unix_io.c (unix_write_byte): test_io.c (test_write_byte): Add implementation of the write_byte function. closefs.c (write_primary_superblock, ext2fs_flush): Add a new function which writes the primary superblock. If the IO channel supports writing raw bytes directly, only fields which were modified are written to the disk. This makes it safe(r) to use utilities like tune2fs on a mounted filesystem. freefs.c (ext2fs_free): Free the original superblock if it is available. openfs.c (ext2fs_open): Store a copy of the original superblock when opening it. ext2fs.h: Add a field to store the original superblock in the ext2 context structure.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d3cd93cabeac8c153c8ae7b1b7358d6ced86b15e |
|
24-Oct-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, ext2_err.et.in, ext2fs.h, jfs_dat.h, mkjournal.c: Makefile.in, ext2fs.h, jfs_dat.h, mkjournal.c: Add functions for creating an ext3 journal on a filesystem. ext2_err.et.in (EXT2_JOURNAL_NOT_BLOCK): Add new error code. .del-ext2_fs.h~7a460879, ChangeLog: ext2_fs.h (EXT2_JOURNAL_INO): Add definition for EXT2_JOURNAL_INO; reserve inode #7 for EXT2_RESIZE_INO. TODO: Commit TOOD suggestion.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
de23aa1d177a67283f5f5a1f172b00527fe3b63a |
|
19-Aug-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, ext2fs.h, finddev.c: finddev.c, ext2fs.h, Makefile.in: Add new file, finddev.c, which provides the function ext2fs_find_block_device(). This function returns the pathname to a block device, given its device number.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
ab146766e3c773ef532381328772ec5e9db9e40b |
|
07-Jul-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h (EXT2_LIB_FEATURE_INCOMPAT_SUPP): Add EXT3_FEATURE_INCOMPAT_RECOVER (aka needs_recovery) to the list of filesystem flags supported by the library. ChangeLog, e2fsprogs.spec: e2fsprogs.spec (%post): Remove resize2fs from its old location in /usr/sbin in the postinstall script. RELEASE-NOTES, version.h: Update for WIP release.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8f13d8cb5c8f0419003b7114d293cf1046947f1b |
|
04-Jul-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: Update to include latest journalling additions to the superblock. .del-ext2_fs.h~7a460879, ChangeLog: ext2_fs.h: Update to include latest journalling additions to the superblock.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
57dca85467cf3fc61565e916a5f2e35db8020d88 |
|
04-Jul-2000 |
Theodore Ts'o <tytso@mit.edu> |
Many files: tst_badblocks.c: Update test program to test ext2fs_read_bb_FILE2 and ext2fs_write_FILE. write_bb_file.c (ext2fs_write_bb_FILE): New function which writes out bad blocks list to a file. read_bb_file.c (ext2fs_read_bb_FILE2): Add new function which changes the callback function to take two additional arguments; a private blind pointer supplied by the caller, and pointer to a char * containing a pointer to the invalid string. badblocks.c (ext2fs_badblocks_equal): Add new function which returns true if two badblocks list are equal. Makefile.in: Remove explicit link of -lc in the shared library. (It shouldn't be necessary, and is harmful in some cases). jump.funcs: dll/jump.funcs: Add new jumptable entries for ext2fs_write_bb_FILE, ext2fs_read_bb_FILE2, and ext2fs_badblocks_equal.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
fa7ef7176ee66aaaec58a24c5a5523c4afb550dd |
|
19-May-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: Add appropriate ifdef's to support C++ compilation.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
e589f678e1ed5efa8dd4450f37bee0486caa3504 |
|
03-Apr-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, gen_uuid.c: gen_uuid.c (get_random_bytes): Make more paranoid about misbehaving /dev/urandom. If we get a return of zero without an error more than 8 times in a row, we break out and return an error. Also, if /dev/urandom doesn't exist, try /dev/random. ChangeLog, ext2fs.h: ext2fs.h: Use AUTOCONF SIZEOF_* macros if available to determine how to define __s64 and __u64. Turn off "compression is experimental" warning if the cpp macro I_KNOW_THAT_COMPRESSION_IS_EXPERIMENTAL is defined.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5a63dd28f23e31f4ed47073b558fc701adf83536 |
|
11-Feb-2000 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: Define EXT2FS_COMPRESSED_BLKADDR and HOLE_BLKADDR. Conditionally include Compression as a supported type if ENABLE_COMPRESSION (via --enable-compression) is turned on.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
28e1194e6537c8448b4ce322dc13a9d781ce22b9 |
|
26-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Update for 1.17 release.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
416c93d468ad49a0f83e54492824d5201619e232 |
|
26-Oct-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, ext2fs.h: ext2fs.h: Add kludge to deal with the fact that egcs cpp doesn't seem to handle ~0UL the same way as they used to.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3a5f8eaa9741f6f14520ddd263a996e2764dd437 |
|
14-Sep-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, expanddir.c, ext2fs.h: ext2fs.h: Add new fields for journalling and define new feature bits used by newer filesystems: IMAGIC_INODES, HAS_JOURNAL, RECOVER. expanddir.c (ext2fs_expand_dir, expand_dir_proc): Change where we update the inode block count and size files so that the block count field is updated correctly when we create an indirect block.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a4bf69d919bc7e9716726371ecb0f0900efa5eb9 |
|
29-May-1999 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, fileio.c: fileio.c (ext2fs_file_open): Remove obsolete comment stating that we don't handle writing yet (we do). Fixed bug where we weren't allocating a big enough buffer for ext2_bmap. ChangeLog, ext2fs.h: ext2fs.h: Add feature definition for AFS IMAGIC inodes. ChangeLog, MCONFIG.in, config.sub: MCONFIG.in: Define man1dir, man3dir, and man8dir in terms of mandir. config.sub: Update config.sub from autoconf 2.13 so that it will recognize new machine types from the Alpha. configure: Update to match latest changes to configure.in
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
2eb374c9401079aa56aa12f0047ca3866e69b754 |
|
03-Sep-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: rw_bitmaps.c: Fixed signed/unsigned warnings. fileio.c (ext2fs_file_set_size): Remove unneeded extern from the function declaration. dblist.c (make_dblist): Add safety check in case the dblist pointer passed in is null (in which case, assign it to fs->dblist). Fixed some signed/unsigned warnings. bmap.c: Make addr_per_block be of type blk_t to avoid signed/unsigned warnings. namei.c (ext2fs_follow_link): Remove uneeded extern from the function declaration. get_pathname.c (get_pathname_proc): Use return value from ext2fs_get_mem, instead of checking if &gp->name is NULL. dir_iterate.c (ext2fs_process_dir_block): dblist_dir.c (ext2fs_dblist_dir_iterate): Remove uneeded extern from the function declaration. block.c (ext2fs_block_iterate2): If the read_inode call fails, return the error directly instead of jumping to the cleanup routine, since we don't need to do any cleanup. alloc_table.c (ext2fs_allocate_group_table): Make this function take a dgrp_t for its group argument. ext2fs.h: Make dgrp_t an __u32 type, and make fs->desc_group_count be of type dgrp_t.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
30c42619e83867727f84ee72f411e93bb40e900a |
|
30-Jun-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, closefs.c, ext2fs.h: closefs.c (ext2fs_flush): Update the s_block_group_nr field as appropriate for all of the block group copies, so that it's clear where the beginning of the filesystem is on the disk. (For when the partition table gets scrod.) ext2fs.h: Change the name of the feature from EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE to EXT2_FEATURE_INCOMPAT_FILESIZE (to match with the kernel).
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
8362a4bfdbd26ea54f5ac5c6fb0aaf763037a492 |
|
30-Jun-1998 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs.h: Change the name of the feature to match with the name used in the Linux kernel.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
03673dbb04a3458ce78a394f27d17d434b51a714 |
|
10-Jun-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: alloc_tables.c (ext2fs_allocate_group_table): Fix bug so that if the stride length hits a bad value, we retry the block allocation starting at the beginning of the block group. ext2fs.h, bb_inode.c, block.c, bmove.c, dir_iterate.c, expanddir.c, ext2fsP.h, read_bb.c: Change blkcnt_t to be e2_blkcnt_t to avoid collision with LFS API.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4c77fe50d97a773e32a4756c79dade3adbb6a601 |
|
30-Apr-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, e2fsck.h, pass1.c, super.c: pass1.c (process_inode_cmp): Use EXT2_QSORT_TYPE to define the appropriate return type for comparison functions for qsort. e2fsck.h: Add #ifdef protection for unistd.h super.c: Remove header files already included by e2fsck.h ChangeLog, dblist.c, ext2fs.h: ext2fs.h: Define EXT2_QSORT_TYPE appropriately for the return type for comparison functions for qsort. dblist.c (dir_block_cmp): Use EXT2_QSORT_TYPE in function declaration. ChangeLog, extent.c: extent.c (ext2fs_create_extent_table): Use ext2fs_free_mem instead of free(). (extent_cmp): Use EXT2_QSORT_TYPE to define the appropriate return type for comparison functions for qsort.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
76f875daa1c9c2cdc72f0c6f0f7be4bbc7f0fc07 |
|
27-Apr-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2fs.h, bitops.h: Add support for the Watcom C compiler to do inline functions. ext2fs.h, dosio.c: Use asm/types.h instead of linux/types.h to evade a potential problem with glibc's header files trying to spike out linux/types.h. ext2fs.h (ext2fs_resize_mem): Change the function prototype to include the old size of the memory, which is needed for some braindamaged memory allocation systems that don't support realloc(). badblocks.c (ext2fs_badblocks_list_add): bb_inode.c (clear_bad_block_proc): dblist.c (ext2fs_add_dir_block): icount.c (insert_icount_el): irel_ma.c (ima_put): rs_bitmap.c (ext2fs_resize_generic_bitmap): Update functions to pass the old size of the memory to be resized to ext2fs_resize_mem(). ChangeLog, dirinfo.c: dirinfo.c (e2fsck_add_dir_info): Update function to pass the old size of the memory to be resized to ext2fs_resize_mem(). ChangeLog, extent.c, resize2fs.c: resize2fs.c (adjust_superblock): extent.c (ext2fs_add_extent_entry): Update functions to pass the old size of the memory to be resized to ext2fs_resize_mem().
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4a31c48b827f378f386b28461fd14b41d709e4eb |
|
30-Mar-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, Makefile.in, bmap.c, bmove.c, ext2fs.h, jump.funcs: ext2fs.h: If __STRICT_ANSI__ is defined and we're on a platform with 32 bit longs, then we need to manually define __s64 and __u64, since the current kernel header files don't define these if __STRICT_ANSI__ is defined. This is a problem if we are compiling with full GCC warnings, since we do need 64 bit support. Makefile.in (OBJS): Remove bmove.o from files to be built, since we're not using ext2fs_move_blocks() and there is some question as to its usefulness in its current form. bmap.c (block_bmap): Remove unused function. bmove.c (process_block): Fix -Wall warning. ChangeLog, debugfs.c, debugfs.h, dump.c: debugfs.h: Add declaration for do_dirty_filsys() to prevent -Wall warnings. debugfs.c (copy_file): dump.c (dump_file): Fix -Wall warning caused by signed/unsigned mismatch.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
36a43d675ef61d0f5d5b2ad62d2e670c408d14ac |
|
24-Mar-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: block.c (ext2fs_block_iterate3): Make the ref_offset field contain the offset into the inode.i_blocks array when ref_block is zero. Since we haven't done a formal release of e2fsprogs since block_iterate2 was first introduced, I removed block_iterate2, and renamed block_iterate3 to be block_iterate2. bb_inode.c, bmove.c, dblist_dir.c, dir_iterate.c, expanddir.c, ext2fs.h, ext2fsP.h, read_bb.c: Change use of block_iterate and block_iterate2 to block_iterate2 with the new prototype for the interator function. (using blkcnt_t forr blockcount) ChangeLog, debugfs.c, ls.c, lsdel.c: debugfs.c, ls.c, lsdel.c: Add support for large files. (The high 32 bits share space with the i_dir_acl field.)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
674a4ee1e3e05133ddad701730bfc21c283272a4 |
|
23-Mar-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2fs.h: Add new superblock fields (s_algorithm_usage_bitmap, s_prealloc_blocks, s_prealloc_dir_blocks). Added conditional defines of new features COMPAT_DIR_PREALLOC, RO_COMPAT_LARGE_FILE RO_COMPAT_BTREE_DIR, INCOMPAT_COMPRESSION, INCOMPAT_DIRNAME_SIZE. Changed the library to declare that we support COMPAT_DIR_PREALLOC, INCOMPAT_DIRNAME_SIZE, RO_COMPAT_LARGE_FILE. fileio.c: Rename function ext2fs_file_llseek to be ext2fs_file_lseek, which is more accurate. block.c: Add new function ext2fs_block_iterate3 which calls the iterator function with the blockcount argument of type blkcnt_t. This version of the function is allowed to handle large files; the other fucntions are not. ext2fs.h: Add new type blkcnt_t ext2_err.et.in: Add error code EXT2_ET_FILE_TOO_BIG block.c (ext2fs_block_iterate2): Fix bug where the block count field wasn't getting correctly incremented for sparse files when the indirect or doubly-indirect block specified in the inode was zero. unlink.c (unlink_proc): lookup.c (lookup_proc): link.c (link_proc): get_pathname.c (get_pathname_proc): dir_iterate.c (ext2fs_process_dir_block): Mask off high 8 bits from dirent->name_len, so it can be used for other purposes. ext2fs.h: Add definition of EXT2_FEATURE_INCOMPAT_DIRNAME_SIZE, and indicate that we have support for this incompatible option.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9abd2ce914f9373fb676f0bb620ffba3a0e3c49e |
|
16-Feb-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, bmove.c, ext2_io.h, ext2fs.h, rw_bitmaps.c, test_io.c: ext2_io.h, ext2fs.h: Protect against being included multiple times. bmove.c: #include ext2fsP.h instead of "ext2fs/ext2fs.h" test_io.c (test_flush): Add a debugging printf when the flush method is called. rw_bitmaps.c (ext2fs_read_bitmaps): If the bitmaps are already read in, return right away.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5953b9de9ce59661640f851b217421d734bb0302 |
|
01-Feb-1998 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, bitops.h, ext2fs.h, icount.c, version.c: bitops.h: Don't try to do i386 inline asm functions if the compiler isn't GCC. ext2fs.h: If EXT2_FLAT_INCLUDES is defined, #include e2_types.h, instead of linux/types.h, and e2_bitops.h instead of ext2fs/bitops.h. icount.c, version.c: Don't #include <et/com_err.h>, as it isn't necessary.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
b5abe6fac9c9e7caf4710501d1657d30e4857ef6 |
|
19-Jan-1998 |
Theodore Ts'o <tytso@mit.edu> |
Many files: inode.c (ext2fs_open_inode_scan): Initialize the group variables so that we don't need to call get_next_blockgroup() the first time around. Saves a bit of time, and prevents us from needing to assign -1 to current_group (which is an unsigned value). icount.c (insert_icount_el): Cast the estimated number of inodes from a float to an ino_t. alloc.c, alloc_tables.c, badlbocks.c, bb_compat.c, bb_inode.c, bitmaps.c, bitops.c, block.c, bmap.c, bmove.c, brel_ma.c, check_desc.c, closefs.c, cmp_bitmaps.c, dblist.c, dblist_dir.c, dir_iterate.c, dirblock.c, dupfs.c, expanddir.c, ext2fs.h, fileio.c, freefs.c, get_pathname.c, getsize.c, icount.c, initialize.c, inline.c, inode.c, irel_ma.c, ismounted.c, link.c, lookup.c, mkdir.c, namei.c, native.c, newdir.c, openfs.c, read_bb.c, read_bb_file.c, rs_bitmap.c, rw_bitmaps.c, swapfs.c, test_io.c, tst_badblocks.c, tst_getsize.c, tst_iscan.c, unix_io.c, unlink.c, valid_blk.c, version.c: If EXT2_FLAT_INCLUDES is defined, then assume all of the ext2-specific header files are in a flat directory. block.c, bmove.c, dirblock.c, fileio.c: Explicitly cast all assignments from void * to be compatible with C++. closefs.c (ext2fs_flush): Add a call to io_channel_flush() to make sure the contents of the disk are flushed to disk. dblist.c (ext2fs_add_dir_block): Change new to be new_entry to avoid C++ namespace clash. bitmaps.c (ext2fs_copy_bitmap): Change new to be new_map to avoid C++ namespace clash. ext2fs.h, bb_inode.c, block.c, bmove.c, brel.h, brel_ma.c, irel.h, irel_ma.c, dblist.c, dblist_dir.c, dir_iterate.c, ext2fsP.h, expanddir.c, get_pathname.c, inode.c, link.c, unlink.c: Change private to be priv_data (to avoid C++ namespace clash)
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5be8dc2143c7b3b21a9b8fb56797dd855ee87560 |
|
01-Dec-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: dblist.c (ext2fs_get_num_dirs): Make ext2fs_get_num_dirs more paranoid about validating the directory counts from the block group information. all files: Don't include stdlib.h anymore; include it in ext2_fs.h, since that file requires stdlib.h ChangeLog, Makefile.in, dirinfo.c: dirinfo.c (e2fsck_add_dir_info): Use ext2fs_get_num_dirs instead of e2fsck_get_num_dirs, which has been removed. Makefile.in (PROGS): Remove @EXTRA_PROGS@, since we don't want to compile and install flushb. ChangeLog, configure.in: Remove @EXTRA_PROGS@, since we aren't using it in 2fsck/Makefile.in anymore ChangeLog, Makefile.in: Install debugfs in /sbin, instead of /usr/sbin. libext2fs.texinfo: Update version string to be 1.12 Makefile.in: Fix bug in find script which made the exclusion list, where a '-' was missing from an -name option.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
79a90bdad033e101c38bb3c3207c8f4be47a2de7 |
|
03-Nov-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, bitops.c, ext2fs.h, fileio.c: ext2fs.h: Make ext2fs_get_mem take an unsigned argument. fileio.c (ext2fs_file_get_size, ext2fs_file_set_size, ext2fs_file_get_fs): New functions added. bitops.c (ext2fs_warn_bitmap, ext2fs_warn_bitmap2): Don't call com_err if OMIT_COM_ERR is defined.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
291c9049ba70bb6256099a066243cec1359c9c15 |
|
31-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
ext2fs.h, ext2_err.et.in, ChangeLog, pass1.c, pass3.c: Rename new error codes to _ET_ in them for consistency. ChangeLog, et_c.awk, et_h.awk: Remove support for non STDC compilers, since the workarounds caused problems with the header file. Makefile.pq: Checkpoint of powerquest work.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7b4e4534f9361b21d3fafdd88a58f133decee38c |
|
26-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Added definition of ext2fs_get_mem, ext2fs_free_mem, and ext2fs_resize_mem in ext2fs.h, and changed all library routines to use these wrapper functions.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
30fab293065b7fc6d7d138e8e9eea533a3560873 |
|
26-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: ext2fs.h: Added function declarations and constants for bmap.c and fileio.c. ext2_err.et.in: Added new error messages EXT2_FILE_RO and EXT2_ET_MAGIC_EXT2_FILE Makefile.in: Added files bmap.c and fileio.c, and temporarily commented out brel_ma.c and irel_ma.c bmap.c: New file which maps a file's logical block number to its physical block number. fileio.c: New file which implements simple file reading and writing primitives. alloc.c (ext2fs_alloc_block): New function which allocates a block, zeros it, and updates the filesystem accounting records appropriately.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
c555aebde40afdc0d15d674f2c81c0e05cfded3f |
|
25-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: alloc.c (ext2fs_alloc_block): New function which allocates a block and updates the filesystem accounting records appropriately. ext2_err.et.in: Added new error codes: EXT2_NO_MEMORY, EXT2_INVALID_ARGUMENT, EXT2_BLOCK_ALLOC_FAIL, EXT2_INODE_ALLOC_FAIL, EXT2_NOT_DIRECTORY Change various library files to use these functions instead of EINVAL, ENOENT, etc. ChangeLog, pass1.c, pass3.c: pass3.c (get_lost_and_found): Check error return of EXT2_FILE_NOT_FOUND instead of ENOTDIR pass1.c (pass1_check_directory): Return EXT2_NO_DIRECTORY instead of ENOTDIR expect.icount: Change expected error string to be "Invalid argument passed to ext2 library" instead of just "Invalid argument"
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
d40259fd552d942903f2fd0b426c75a5c2516017 |
|
20-Oct-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Rename io.h to be ext2_io.h (avoid namespace collisions) ChangeLog, resize2fs.h: Add #ifdef's for HAVE_SYS_TYPES_H and HAVE_SYS_TIME_H.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
4cbe8af4b0d0c72fb28bb500c1bd8a46b00fdde3 |
|
11-Aug-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: block.c (ext2fs_block_iterate2): Use retval which is a errcode_t type. bitmaps.c (make_bitmap): Use size_t instead of int where appropriate. bb_inode.c (set_bad_block_proc): Add #pragma argsused for Turbo C. alloc.c (ext2fs_new_inode): Use ino_t instead of int for the group number. get_pathname.c: Use ino_t instead of int where appropriate. ext2fs.h: Make the magic structure element be errcode_t instead of int. alloc.c alloc_tables.c badblocks.c bb_compat.c bb_inode.c bitmaps.c block.c bmove.c brel_ma.c check_desc.c closefs.c cmp_bitmaps.c dblist.c dblist_dir.c dir_iterate.c dirblock.c dupfs.c expanddir.c freefs.c get_pathname.c icount.c initialize.c inline.c inode.c irel_ma.c link.c llseek.c lookup.c mkdir.c namei.c newdir.c read_bb.c read_bb_file.c rs_bitmap.c rw_bitmaps.c swapfs.c test_io.c tst_badblocks.c tst_iscan.c unix_io.c unlink.c valid_blk.c version.c: Add an #ifdef for HAVE_UNISTD_H
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
549860c5c7a5a2974c103a55d881fbd5701aff13 |
|
17-Jun-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, dblist.c, ext2fs.h, jump.funcs: Added new function which returns the number of directory blocks in dblist.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
36f21439f5d8b2233d13e042833d4d921a5c2c40 |
|
14-Jun-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, unix_io.c: Make the io_channel flush function do a fsync to flush the kernel buffers to disk. bmove.c, ext2fs.h: Added debugging flag to block move function.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
9941fb73f530b11d3d1dcc97a585f63449703f5a |
|
12-Jun-1997 |
Theodore Ts'o <tytso@mit.edu> |
ChangeLog, inode.c: Fix bug; the current inode number wasn't being set by the goto_blockgroup function. bmove.c, ext2fs.h: Added new argument to bmove, so that the caller can pass the allocation bitmap. If not specified, the allocation bitmap defaults to fs->block_map.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1e1da29fbd4204a267ebd7c64d37e1f95a9dad08 |
|
09-Jun-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: bmove.c (ext2fs_move_blocks): New function which takes a bitmap of blocks which need to be moved, and moves those blocks to another location in the filesystem. rs_bitmap.c (ext2fs_resize_generic_bitmap): When expanding a bitmap, make sure all of the new parts of the bitmap are zero. bitmaps.c (ext2fs_copy_bitmap): Fix bug; the destination bitmap wasn't being returned to the caller. alloc_tables.c (ext2fs_allocate_group_table): Add new function ext2fs_allocate_group_table() which sets the group tables for a particular block group. The relevant code was factored out of ext2fs_allocate_tables(). dblist.c (make_dblist): Adjust the initial size of the directory block list to be a bit more realize (ten plus twice the number of directories in the filesystem). Check in interim work.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
a29f4d30f24d68f1f1c75548e020689ede532c05 |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 1.10
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
521e36857227b21e7ab47b0a97f788d2af9f9717 |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 1.08.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
19c78dc07fce2d6f39b5e541562afc3ca1ea38ff |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs-1.07
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
5c576477ccb2f0ca8c5d5af2e2354fd8eeff1589 |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 1.06
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
1e3472c5f37ca3686dd69b079d4d02a302f5798d |
|
29-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 1.05
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
7f88b04341d88c5df0360d930832c38040303b61 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 1.03.
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
50e1e10fa0ac12a3e2a9d20a75ee9041873cda96 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checked in e2fsprogs 0.5c
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
f3db3566b5e1342e49dffc5ec3f418a838584194 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 0.5b
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|
3839e65723771b85975f4263102dd3ceec4523c0 |
|
26-Apr-1997 |
Theodore Ts'o <tytso@mit.edu> |
Many files: Checkin of e2fsprogs 0.5b
/external/e2fsprogs/lib/ext2fs/ext2fs.h
|