]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: support shutdown command on foreign fses
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 10 Apr 2017 22:32:04 +0000 (17:32 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 10 Apr 2017 22:32:04 +0000 (17:32 -0500)
Since f2fs and ext4 support the shutdown ioctl, enable it there.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
io/shutdown.c

index d9cd520d11e2d79c29e53d88504ae4e4093993bd..022a0e9a07ae8a4f4783ebcb85477ed0e2680020 100644 (file)
@@ -54,7 +54,7 @@ shutdown_init(void)
        shutdown_cmd.cfunc = shutdown_f;
        shutdown_cmd.argmin = 0;
        shutdown_cmd.argmax = 1;
-       shutdown_cmd.flags = CMD_NOMAP_OK | CMD_FLAG_ONESHOT;
+       shutdown_cmd.flags = CMD_NOMAP_OK | CMD_FLAG_ONESHOT | CMD_FLAG_FOREIGN_OK;
        shutdown_cmd.args = _("[-f]");
        shutdown_cmd.oneline =
                _("shuts down the filesystem where the current file resides");