Thread (3 messages) 3 messages, 2 authors, 2022-12-05

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

From: Jidong Xiao <hidden>
Date: 2022-12-05 05:44:21

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help