xfs
[Top] [All Lists]

[PATCH] xfs_io: allow resvsp command for foreign filesystems

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfs_io: allow resvsp command for foreign filesystems
From: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Date: Thu, 22 Jul 2010 01:30:57 -0400
User-agent: Mutt/1.5.20 (2009-08-17)
Recent kernels implement the RESVP ioctl in common code, so using
command for non-XFS filesystems is fine.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>

Index: xfsprogs-dev/io/prealloc.c
===================================================================
--- xfsprogs-dev.orig/io/prealloc.c     2010-07-21 19:11:34.943494680 +0200
+++ xfsprogs-dev/io/prealloc.c  2010-07-21 19:11:57.093494680 +0200
@@ -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");

<Prev in Thread] Current Thread [Next in Thread>