From 370f69dd8d280ceeca77b00d5d44ac9bfe58315b Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Fri, 23 Jul 2010 08:53:56 +0200 Subject: [PATCH] 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 --- io/prealloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.2