* [PATCH] xfs_io: support shutdown command on foreign fses
@ 2017-02-27 18:50 Darrick J. Wong
2017-02-28 14:02 ` Christoph Hellwig
0 siblings, 1 reply; 2+ messages in thread
From: Darrick J. Wong @ 2017-02-27 18:50 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs
Since f2fs and ext4 support the shutdown ioctl, enable them here.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
---
io/shutdown.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/io/shutdown.c b/io/shutdown.c
index d9cd520..022a0e9 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");
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-02-28 14:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-27 18:50 [PATCH] xfs_io: support shutdown command on foreign fses Darrick J. Wong
2017-02-28 14:02 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).