From: Tahsin Erdogan Date: Wed, 5 Jul 2017 03:53:59 +0000 (-0400) Subject: mke2fs: ea_inode is not supported for hurd X-Git-Tag: v1.44.0-rc1~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfc8fae36b81466e827a8bd16a1185b3dac80062;p=thirdparty%2Fe2fsprogs.git mke2fs: ea_inode is not supported for hurd Extended attribute inodes store their refcount in inode.l_i_version field which is not available for Hurd. Fail mke2fs for this combination. Signed-off-by: Tahsin Erdogan Signed-off-by: Theodore Ts'o --- diff --git a/misc/mke2fs.c b/misc/mke2fs.c index 1ef46f44f..85d88edc2 100644 --- a/misc/mke2fs.c +++ b/misc/mke2fs.c @@ -1992,6 +1992,7 @@ profile_error: ext2fs_clear_feature_filetype(&fs_param); ext2fs_clear_feature_huge_file(&fs_param); ext2fs_clear_feature_metadata_csum(&fs_param); + ext2fs_clear_feature_ea_inode(&fs_param); } edit_feature(fs_features ? fs_features : tmp, &fs_param.s_feature_compat); @@ -2017,6 +2018,11 @@ profile_error: "metadata_csum feature.\n")); exit(1); } + if (ext2fs_has_feature_ea_inode(&fs_param)) { + fprintf(stderr, "%s", _("The HURD does not support the " + "ea_inode feature.\n")); + exit(1); + } } /* Get the hardware sector sizes, if available */