* df on a nfs mounted share vs local?
@ 2002-07-04 14:35 Nils O. Selåsdal
2002-07-05 12:35 ` Trond Myklebust
0 siblings, 1 reply; 2+ messages in thread
From: Nils O. Selåsdal @ 2002-07-04 14:35 UTC (permalink / raw)
To: linux-kernel
Just wondering, how come df reports
root:~# df /mnt/export/
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda5 2562252 383792 2178460 15% /mnt/export
on the server, while on a client that mounts /mnt/export over nfs:
[root@space download]# df /mnt/nfs/
Filesystem 1k-blocks Used Available Use% Mounted on
lfs:/mnt/export 2562256 383792 2178464 15% /mnt/nfs
Just a few blocks diffrent, but I've seen much bigger.. also seen +/-
a few % on "Use"
--
Nils Olav Selåsdal <NOS@Utel.no>
System Developer, UtelSystems a/s
w w w . u t e l s y s t e m s . c o m
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: df on a nfs mounted share vs local?
2002-07-04 14:35 df on a nfs mounted share vs local? Nils O. Selåsdal
@ 2002-07-05 12:35 ` Trond Myklebust
0 siblings, 0 replies; 2+ messages in thread
From: Trond Myklebust @ 2002-07-05 12:35 UTC (permalink / raw)
To: Nils O. Selåsdal; +Cc: linux-kernel
>>>>> " " == Nils O <Selåsdal <noselasd@frisurf.no>> writes:
> Just wondering, how come df reports root:~# df /mnt/export/
> Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda5
> 2562252 383792 2178460 15% /mnt/export on the server, while on
> a client that mounts /mnt/export over nfs: [root@space
> download]# df /mnt/nfs/ Filesystem 1k-blocks Used Available
> Use% Mounted on lfs:/mnt/export 2562256 383792 2178464 15%
> /mnt/nfs
> Just a few blocks diffrent, but I've seen much bigger.. also
> seen +/- a few % on "Use"
It is a rounding error. The block size on the NFS client is typically
4 or 8k, whereas the block size on the local filesystem is typically
512 bytes.
On most UNIX implementations, the 'statvfs()' call supports two
variables f_bsize and f_frsize, which allow you to distinguish between
the two. Linux lacks kernel support for the latter variable.
Cheers,
Trond
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-05 12:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-04 14:35 df on a nfs mounted share vs local? Nils O. Selåsdal
2002-07-05 12:35 ` Trond Myklebust
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.