Whamcloud - gitweb
libext2fs: allow callers to punch a single block
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 7 Oct 2013 13:51:20 +0000 (09:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Oct 2013 13:51:20 +0000 (09:51 -0400)
commit4ee4ad80dcceb42b1e5cfd2d4067a38b99b9fa95
tree8bbee855ed4e8714e9b35c55e0473dc918962c0e
parent5d494038eede1bb538441dedf4207529629154b3
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>
lib/ext2fs/ext2fs.h
lib/ext2fs/punch.c