Skip to contentSkip to conversation

xfs_io: allow lsattr & lsproj on foreign filesystems

PATCH In review Ross Zwisler 2 participants 2 messages Jul 31, 2017 – Aug 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xfs_io: allow lsattr & lsproj on foreign filesystems

The following commit:

commit 73b54bb6a2fb ("xfs_io: allow chattr & chproj on foreign filesystems")

allowed chattr and chproj to be run on non-xfs filesystems now that FS_IOC_FSSETXATTR is a generic vfs call. It failed to enable the corresponding lsattr and lsproj commands for those filesystems, though.

Fixes 73b54bb6a2fb ("xfs_io: allow chattr & chproj on foreign filesystems")
Cc Eric Sandeen <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Jan Kara <[email protected]>
---
 io/attr.c | 2 +-
 io/open.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
io/attr.c +1 -1
index b8eec1b..728560e 100644
@@ -353,7 +353,7 @@ attr_init(void)
 	lsattr_cmd.args = _("[-R|-D|-a|-v]");
 	lsattr_cmd.argmin = 0;
 	lsattr_cmd.argmax = 1;
-	lsattr_cmd.flags = CMD_NOMAP_OK;
+	lsattr_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
 	lsattr_cmd.oneline =
 		_("list extended inode flags set on the currently open file");
 	lsattr_cmd.help = lsattr_help;
io/open.c +1 -1
index b50f068..f2ea7c3 100644
@@ -812,7 +812,7 @@ open_init(void)
 	lsproj_cmd.args = _("[-D | -R]");
 	lsproj_cmd.argmin = 0;
 	lsproj_cmd.argmax = -1;
-	lsproj_cmd.flags = CMD_NOMAP_OK;
+	lsproj_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
 	lsproj_cmd.oneline =
 		_("list project identifier set on the currently open file");
 	lsproj_cmd.help = lsproj_help;
Signature · 1 line
2.9.4
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Ross Zwisler

The following commit:

commit 73b54bb6a2fb ("xfs_io: allow chattr & chproj on foreign filesystems")

allowed chattr and chproj to be run on non-xfs filesystems now that FS_IOC_FSSETXATTR is a generic vfs call. It failed to enable the corresponding lsattr and lsproj commands for those filesystems, though.

Quoted 5 lines
Fixes 73b54bb6a2fb ("xfs_io: allow chattr & chproj on foreign filesystems")
Cc Eric Sandeen <[email protected]>
Cc Dave Chinner <[email protected]>
Cc Jan Kara <[email protected]>

Looks ok,

--D

Quoted 38 lines
---
 io/attr.c | 2 +-
 io/open.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
io/attr.c +1 -1
index b8eec1b..728560e 100644
@@ -353,7 +353,7 @@ attr_init(void)
 	lsattr_cmd.args = _("[-R|-D|-a|-v]");
 	lsattr_cmd.argmin = 0;
 	lsattr_cmd.argmax = 1;
-	lsattr_cmd.flags = CMD_NOMAP_OK;
+	lsattr_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
 	lsattr_cmd.oneline =
 		_("list extended inode flags set on the currently open file");
 	lsattr_cmd.help = lsattr_help;
io/open.c +1 -1
index b50f068..f2ea7c3 100644
@@ -812,7 +812,7 @@ open_init(void)
 	lsproj_cmd.args = _("[-D | -R]");
 	lsproj_cmd.argmin = 0;
 	lsproj_cmd.argmax = -1;
-	lsproj_cmd.flags = CMD_NOMAP_OK;
+	lsproj_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
 	lsproj_cmd.oneline =
 		_("list project identifier set on the currently open file");
 	lsproj_cmd.help = lsproj_help;
Signature · 6 lines
2.9.4

--
To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html