* nfs_fsinfo->bsize size (2.4.2)
@ 2001-04-10 10:47 Alexander V. Lukyanov
0 siblings, 0 replies; only message in thread
From: Alexander V. Lukyanov @ 2001-04-10 10:47 UTC (permalink / raw)
To: linux-kernel; +Cc: sparc-list
Hello!
Some time ago I had an undefined symbol in kernel compilation (__mul64) It
was sparc architecture, cross compilation on solaris/sparc. I have found
that 64-bit multiplication is in nfs2xdr.c, nfs_xdr_statfsres function. The
multiplication is by nfs_fsinfo->bsize.
For some reason nfs_fsinfo->bsize is declared as __u64. I don't see how
block size can be greater that 2G. What is the reason behind such type
for block size?
I did the following change and nfs still works fine. I've also rearranged
structure fields for alignment reasons.
--- include/linux/nfs_xdr.h.1 Fri Apr 6 17:57:25 2001
+++ include/linux/nfs_xdr.h Fri Apr 6 17:59:14 2001
@@ -47,8 +47,8 @@
__u32 wtpref; /* pref. write transfer size */
__u32 wtmult; /* writes should be multiple of this */
__u32 dtpref; /* pref. readdir transfer size */
+ __u32 bsize; /* block size */
__u64 maxfilesize;
- __u64 bsize; /* block size */
__u64 tbytes; /* total size in bytes */
__u64 fbytes; /* # of free bytes */
__u64 abytes; /* # of bytes available to user */
--
Alexander. | http://www.yars.free.net/~lav/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2001-04-10 10:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-10 10:47 nfs_fsinfo->bsize size (2.4.2) Alexander V. Lukyanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®