]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_io: add extsize command support
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Thu, 19 Dec 2024 12:39:15 +0000 (18:09 +0530)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 25 Dec 2024 21:14:45 +0000 (22:14 +0100)
extsize command is currently only supported with XFS filesystem.
Lift this restriction now that ext4 is also supporting extsize hints.

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
io/open.c

index a30dd89a1fd56c62fe388a74c9270ba68d7ee9e5..2582ff9b862ebca5c7fc9b865deda43b162fe1bf 100644 (file)
--- a/io/open.c
+++ b/io/open.c
@@ -997,7 +997,7 @@ open_init(void)
        extsize_cmd.args = _("[-D | -R] [extsize]");
        extsize_cmd.argmin = 0;
        extsize_cmd.argmax = -1;
-       extsize_cmd.flags = CMD_NOMAP_OK;
+       extsize_cmd.flags = CMD_NOMAP_OK | CMD_FOREIGN_OK;
        extsize_cmd.oneline =
                _("get/set preferred extent size (in bytes) for the open file");
        extsize_cmd.help = extsize_help;