From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: sandeen@redhat.com, darrick.wong@oracle.com
Cc: linux-xfs@vger.kernel.org
Subject: [PATCH 3/3] xfs_io: support shutdown command on foreign fses
Date: Tue, 07 Mar 2017 16:30:23 -0800 [thread overview]
Message-ID: <148893302305.23674.11901575444165562002.stgit@birch.djwong.org> (raw)
In-Reply-To: <148893300446.23674.6348172768180643163.stgit@birch.djwong.org>
From: Darrick J. Wong <darrick.wong@oracle.com>
Since f2fs and ext4 support the shutdown ioctl, enable it there.
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");
next prev parent reply other threads:[~2017-03-08 0:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 0:30 [PATCH 0/3] xfsprogs: 4.11 rollup Darrick J. Wong
2017-03-08 0:30 ` [PATCH 1/3] misc: use system FICLONE/FICLONERANGE/FIDEDUPERANGE definitions Darrick J. Wong
2017-03-08 15:53 ` Christoph Hellwig
2017-03-08 19:09 ` Darrick J. Wong
2017-03-08 0:30 ` [PATCH 2/3] xfs_repair: detect invalid zero-sized symlink inodes Darrick J. Wong
2017-03-08 0:30 ` Darrick J. Wong [this message]
2017-03-08 15:53 ` [PATCH 3/3] xfs_io: support shutdown command on foreign fses Christoph Hellwig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=148893302305.23674.11901575444165562002.stgit@birch.djwong.org \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).