]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: allow resvsp command for foreign filesystems
authorChristoph Hellwig <hch@lst.de>
Fri, 23 Jul 2010 06:53:56 +0000 (08:53 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 23 Jul 2010 06:53:56 +0000 (08:53 +0200)
Recent kernels implement the RESVP ioctl in common code, so using
command for non-XFS filesystems is fine.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nathan Scott <nathans@debian.org>
io/prealloc.c

index 7d9bd2f3cd6bd841f57d96c6572e1e79511f78bf..5f6b0294b651ee88fb626023973c7a05cd4845b8 100644 (file)
@@ -182,7 +182,7 @@ prealloc_init(void)
        resvsp_cmd.cfunc = resvsp_f;
        resvsp_cmd.argmin = 2;
        resvsp_cmd.argmax = 2;
-       resvsp_cmd.flags = CMD_NOMAP_OK;
+       resvsp_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
        resvsp_cmd.args = _("off len");
        resvsp_cmd.oneline =
                _("reserves space associated with part of a file");