summaryrefslogtreecommitdiffstats
path: root/fs/ntfs/attrib.c
diff options
context:
space:
mode:
authorAnton Altaparmakov <aia21@cantab.net>2005-03-03 17:38:59 +0100
committerAnton Altaparmakov <aia21@cantab.net>2005-05-05 12:17:08 +0200
commit7e693073a940c7484c0c21e3e1603e29ce46f30c (patch)
tree865f7c9374fd2c4f072c17b97aff2225bfc06a75 /fs/ntfs/attrib.c
parentNTFS: Correct sparse file handling. The compressed values need to be (diff)
downloadlinux-7e693073a940c7484c0c21e3e1603e29ce46f30c.tar.xz
linux-7e693073a940c7484c0c21e3e1603e29ce46f30c.zip
NTFS: Add AT_EA in addition to AT_DATA to whitelist for being allowed to be
non-resident in fs/ntfs/attrib.c::ntfs_attr_can_be_non_resident(). Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to '')
-rw-r--r--fs/ntfs/attrib.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c
index 7a16f7ca76d8..fa464fce2261 100644
--- a/fs/ntfs/attrib.c
+++ b/fs/ntfs/attrib.c
@@ -1049,10 +1049,11 @@ int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPE type)
ATTR_DEF *ad;
/*
- * $DATA is always allowed to be non-resident even if $AttrDef does not
- * specify this in the flags of the $DATA attribute definition record.
+ * $DATA and $EA are always allowed to be non-resident even if $AttrDef
+ * does not specify this in the flags of the $DATA attribute definition
+ * record.
*/
- if (type == AT_DATA)
+ if (type == AT_DATA || type == AT_EA)
return 0;
/* Find the attribute definition record in $AttrDef. */
ad = ntfs_attr_find_in_attrdef(vol, type);