Re: NFSv3 stat() reports incorrect block count

Trond Myklebust (trond.myklebust@fys.uio.no)
02 Sep 1999 16:56:10 +0200


"Bill Rugolsky Jr." <rugolsky@ead.dsa.com> writes:

> -rw-r--r-- 1 rugolsky ead 18158786 Sep 1 08:02 linux-kernel.gz
> rugolsky@ead44: statfile linux-kernel.gz
> dev: 3
> ino: 10103
> mode: 100644
> nlink: 1
> uid: 343
> gid: 50
> rdev: 0
> size: 18158786
> atime: 990901 10:40:46
> mtime: 990901 08:02:38
> ctime: 990901 08:02:38
> blksize: 8192
> blocks: 18186240
>
> The (rounded up) block count is being multipled by the block size.
> Attached is a trivial patch against linux-2.2.12-nfsv3-0.11.6.

Thanks. This bug was also spotted and fixed by James Yarborough
yesterday.

Please note that there is now the embryo of a Changelog file for the
NFSv3 patches that should make it easier for people to track the
latest changes.

It can be downloaded at

http://www.fys.uio.no/~trondmy/src/ChangeLog.NFSv3

Cheers,
Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/