Is Linux NFS block size 512 bytes or is this a bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I saw this line in fs/nfsd/nfs3xdr.c:

/* used */
p = xdr_encode_hyper(p, ((u64)stat->blocks) << 9);

It seems we are left-shifting the blocks 9 bits, to get the number of
bytes used. Is this a bug or we know the block size is always 512
bytes?

-Jidong



[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux