From 58541b47f9ae4dc4310b51ccd9d25e4de17b4673 Mon Sep 17 00:00:00 2001 From: jpandre Date: Wed, 8 Apr 2009 19:04:05 +0000 Subject: [PATCH] Checked the actual data format for block map request --- src/ntfs-3g.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index 53ad3f99..01a82a28 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -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; }