Skip to contentSkip to conversation

xfs_io: allow resvsp command for foreign filesystems

PATCH In review Christoph Hellwig 2 participants 2 messages Jul 22, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

io/prealloc.c +1 -1
Index: xfsprogs-dev/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");

_______________________________________________
xfs mailing list
[email protected]
http://oss.sgi.com/mailman/listinfo/xfs