aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext2fs/inode.c')
-rw-r--r--ext2fs/inode.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext2fs/inode.c b/ext2fs/inode.c
index 5109953f..58edb501 100644
--- a/ext2fs/inode.c
+++ b/ext2fs/inode.c
@@ -562,7 +562,8 @@ diskfs_set_translator (struct node *np, const char *name, unsigned namelen,
/* If xattr is supported for this filesystem, use xattr to store translator
record, otherwise, use legacy translator record */
- if (EXT2_HAS_COMPAT_FEATURE (sblock, EXT2_FEATURE_COMPAT_EXT_ATTR))
+ if (EXT2_HAS_COMPAT_FEATURE (sblock, EXT2_FEATURE_COMPAT_EXT_ATTR)
+ && use_xattr_translator_records)
{
daddr_t blkno;
struct ext2_inode *di;
@@ -714,7 +715,8 @@ diskfs_get_translator (struct node *np, char **namep, unsigned *namelen)
if (blkno)
{
/* If xattr is no supported by this filesystem, don't report a warning */
- if (EXT2_HAS_COMPAT_FEATURE (sblock, EXT2_FEATURE_COMPAT_EXT_ATTR))
+ if (EXT2_HAS_COMPAT_FEATURE (sblock, EXT2_FEATURE_COMPAT_EXT_ATTR)
+ && use_xattr_translator_records)
ext2_warning ("This is an old translator record, please update it");
transloc = disk_cache_block_ref (blkno);