]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
ocfs2: Support xfs style space reservation ioctls
authorMark Fasheh <mark.fasheh@oracle.com>
Sat, 10 Mar 2007 00:53:21 +0000 (16:53 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Wed, 11 Jul 2007 00:32:09 +0000 (17:32 -0700)
commitb25801038da5823bba1b5440a57ca68afc51b6bd
tree3a6f10f8ddb3a7552630d60aabbb790d1b5a7a77
parent063c4561f52a74de686fe0ff2f96f4f54c9fecd2
ocfs2: Support xfs style space reservation ioctls

We re-use the RESVSP/UNRESVSP ioctls from xfs which allow the user to
allocate and deallocate regions to a file without zeroing data or changing
i_size.

Though renamed, the structure passed in from user is identical to struct
xfs_flock64. The three fields that are actually used right now are l_whence,
l_start and l_len.

This should get ocfs2 immediate compatibility with userspace software using
the pre-existing xfs ioctls.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
fs/ocfs2/file.c
fs/ocfs2/file.h
fs/ocfs2/ioctl.c
fs/ocfs2/ocfs2_fs.h
fs/ocfs2/super.c
fs/ocfs2/super.h