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>
This commit is contained in:
Anton Altaparmakov 2005-03-03 16:38:59 +00:00
parent 9451f8519c
commit 7e693073a9
2 changed files with 6 additions and 3 deletions

View File

@ -88,6 +88,8 @@ ToDo/Notes:
checked and set in the ntfs inode as done for compressed files and checked and set in the ntfs inode as done for compressed files and
the compressed size needs to be used for vfs inode->i_blocks instead the compressed size needs to be used for vfs inode->i_blocks instead
of the allocated size, again, as done for compressed files. of the allocated size, again, as done for compressed files.
- 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().
2.1.22 - Many bug and race fixes and error handling improvements. 2.1.22 - Many bug and race fixes and error handling improvements.

View File

@ -1049,10 +1049,11 @@ int ntfs_attr_can_be_non_resident(const ntfs_volume *vol, const ATTR_TYPE type)
ATTR_DEF *ad; ATTR_DEF *ad;
/* /*
* $DATA is always allowed to be non-resident even if $AttrDef does not * $DATA and $EA are always allowed to be non-resident even if $AttrDef
* specify this in the flags of the $DATA attribute definition record. * 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; return 0;
/* Find the attribute definition record in $AttrDef. */ /* Find the attribute definition record in $AttrDef. */
ad = ntfs_attr_find_in_attrdef(vol, type); ad = ntfs_attr_find_in_attrdef(vol, type);