From 75dc6781255fecd42e6861f0328bc4e161b6f82a Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Mon, 10 Apr 2017 17:32:04 -0500 Subject: [PATCH] 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 --- io/shutdown.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.47.2