Skip to contentSkip to conversation

xfs_io: support shutdown command on foreign fses

PATCH In review Darrick J. Wong 2 participants 2 messages Feb 27, 2017 – Feb 28, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_io: support shutdown command on foreign fses

Since f2fs and ext4 support the shutdown ioctl, enable them here.

---
 io/shutdown.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
io/shutdown.c +1 -1
index d9cd520..022a0e9 100644
@@ -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");