fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls
authorAnkit Jain <me@ankitjain.org>
Fri, 19 Jun 2009 18:28:07 +0000 (14:28 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 24 Jun 2009 12:15:27 +0000 (08:15 -0400)
commit3e63cbb1efca7dd3137de1bb475e2e068e38ef23
tree5a7964068266e778e94c1348192d3c85eba4ac48
parent01c031945f2755c7afaaf456088543312f2b72ea
fs: Add new pre-allocation ioctls to vfs for compatibility with legacy xfs ioctls

This patch adds ioctls to vfs for compatibility with legacy XFS
pre-allocation ioctls (XFS_IOC_*RESVP*). The implementation
effectively invokes sys_fallocate for the new ioctls.
Also handles the compat_ioctl case.
Note: These legacy ioctls are also implemented by OCFS2.

[AV: folded fixes from hch]

Signed-off-by: Ankit Jain <me@ankitjain.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/compat_ioctl.c
fs/ioctl.c
fs/open.c
include/linux/falloc.h
include/linux/fs.h