[Linux-NTFS-cvs] CVS: ntfsprogs/libntfs inode.c,1.83,1.84
Development moved to https://sourceforge.net/projects/ntfs-3g/
Brought to you by:
antona,
cha0smaster
From: Yuval <uv...@de...> - 2006-07-21 22:04:54
|
Changes by: uvman Update of /cvs/linux-ntfs/ntfsprogs/libntfs In directory delta357.server4you.de:/tmp/cvs-serv5918/libntfs Modified Files: inode.c Log Message: Fix a logic error that made 'ls -ls' show the wrong file size for compressed and sparse files. Index: inode.c =================================================================== RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/inode.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -p -r1.83 -r1.84 --- inode.c 17 Jul 2006 11:49:52 -0000 1.83 +++ inode.c 21 Jul 2006 22:04:44 -0000 1.84 @@ -200,7 +200,7 @@ get_size: if (ctx->attr->non_resident) { ni->data_size = sle64_to_cpu(ctx->attr->data_size); if (ctx->attr->flags & - (ATTR_IS_COMPRESSED & ATTR_IS_SPARSE)) + (ATTR_IS_COMPRESSED | ATTR_IS_SPARSE)) ni->allocated_size = sle64_to_cpu( ctx->attr->compressed_size); else |