OSDN Git Service

libext2fs: implement fallocate
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 10 Jun 2015 23:56:43 +0000 (19:56 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 10 Jun 2015 23:56:46 +0000 (19:56 -0400)
commit5aad5b8e0e3cfa2eaaf29d773df16941166e51cd
tree1ab74d677a3344160b35e106865520c9f9e7cd5d
parent647e8786156061658b6d8038452718e1102fadc1
libext2fs: implement fallocate

Create a library function to perform fallocation on arbitrary files.
This is a bit more intense than Ted's original mk_hugefiles
implementation since we have to honor any blocks that may already be
allocated to the file.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/ext2fs/Makefile.in
lib/ext2fs/ext2fs.h
lib/ext2fs/fallocate.c [new file with mode: 0644]