Is Linux NFS block size 512 bytes or is this a bug?
From: Jidong Xiao <hidden>
Date: 2022-12-05 05:44:21
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