From: Darrick J. Wong Date: Mon, 10 Apr 2017 22:32:04 +0000 (-0500) Subject: xfs_io: support shutdown command on foreign fses X-Git-Tag: v4.11.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75dc6781255fecd42e6861f0328bc4e161b6f82a;p=thirdparty%2Fxfsprogs-dev.git xfs_io: support shutdown command on foreign fses Since f2fs and ext4 support the shutdown ioctl, enable it there. Signed-off-by: Darrick J. Wong Reviewed-by: Christoph Hellwig Signed-off-by: Eric Sandeen --- diff --git a/io/shutdown.c b/io/shutdown.c index d9cd520d1..022a0e9a0 100644 --- a/io/shutdown.c +++ b/io/shutdown.c @@ -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");