> -----Oorspronkelijk bericht----- > Van: Yuval Fledel [mailto:[EMAIL PROTECTED] > Verzonden: zaterdag 6 januari 2007 1:34 > Aan: [EMAIL PROTECTED] > CC: Szakacsits Szabolcs; [email protected] > Onderwerp: Re: [ntfs-3g-devel] error on transfer of very > small files over LAN > > 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 > The problem persists using an ntfs filesystem in a file, mounted at the same place. It occurs as well using the ntfsprogs ntfs module The verbose samba logs don't make any sense to me. No apparent error messages anyhow.
Rein ------------------------------------------------------------------------- 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
