From: Ojaswin Mujoo Date: Thu, 19 Dec 2024 12:39:15 +0000 (+0530) Subject: xfs_io: add extsize command support X-Git-Tag: v6.13.0~17 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=19bca351dcdfef4a63ede08bcc9f7bdeec10c453;p=thirdparty%2Fxfsprogs-dev.git xfs_io: add extsize command support 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 Reviewed-by: Darrick J. Wong --- diff --git a/io/open.c b/io/open.c index a30dd89a..2582ff9b 100644 --- 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;