On 06/01/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> I'm starting to believe it has got something to do with the samba - ntfs
> combination.
> I'll check out the very-verbose logs of samba tomorrow.
In ntfs_fuse_getattr():
stbuf->st_blocks = ni->allocated_size >> vol->sector_size_bits;
Has an off-by-one error.
Also, st_blocks is measured in 512 bytes blocks, not in sectors.
Should be:
stbuf->st_blocks = (ni->allocated_size + 511) & ~511;
--
Yuval Fledel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
ntfs-3g-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel