From: Christoph Hellwig Date: Fri, 23 Jul 2010 06:53:56 +0000 (+0200) Subject: xfs_io: allow resvsp command for foreign filesystems X-Git-Tag: v3.1.3~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=370f69dd8d280ceeca77b00d5d44ac9bfe58315b;p=thirdparty%2Fxfsprogs-dev.git xfs_io: allow resvsp command for foreign filesystems Recent kernels implement the RESVP ioctl in common code, so using command for non-XFS filesystems is fine. Signed-off-by: Christoph Hellwig Reviewed-by: Nathan Scott --- diff --git a/io/prealloc.c b/io/prealloc.c index 7d9bd2f3c..5f6b0294b 100644 --- a/io/prealloc.c +++ b/io/prealloc.c @@ -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");