Checked the actual data format for block map request

N2009_11_14_FIXES
jpandre 2009-04-08 19:04:05 +00:00
parent 2fbaecd759
commit 58541b47f9
1 changed files with 2 additions and 1 deletions

View File

@ -1873,7 +1873,8 @@ static int ntfs_fuse_bmap(const char *path, size_t blocksize, uint64_t *idx)
goto close_inode;
}
if (NAttrCompressed(na) || NAttrEncrypted(na) || !NAttrNonResident(na)){
if ((na->data_flags & (ATTR_COMPRESSION_MASK | ATTR_IS_ENCRYPTED))
|| !NAttrNonResident(na)) {
ret = -EINVAL;
goto close_attr;
}