Re: Who needs these silly statfs changes...

2003-11-15 Thread Terry Lambert
Peter Edwards wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of free space! [ ... ] The NFS protocols have unsigned fields where statfs has signed equivalents: NFS can't represent negative available

Re: Who needs these silly statfs changes...

2003-11-15 Thread peter . edwards
(CC's trimmed, I'm sure I'm boring people at this stage.) Peter Edwards wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of free space! [ ... ] The NFS protocols have unsigned fields where statfs has

Re: Who needs these silly statfs changes...

2003-11-15 Thread Terry Lambert
Bruce Evans wrote: I just got around to testing the patch in that reply: [ ... ] This seems to work. On a 2TB-epsilon ffs1 file system (*) on an md malloc disk (**): Try it again. This time, take the remote FS below its free reserve as the root user, and see what the client machine reports.

Re: Who needs these silly statfs changes...

2003-11-15 Thread Terry Lambert
[EMAIL PROTECTED] wrote: I disagree. The intent of the negative number from df is to subtract the amount used from the total amount available, in order to get the amount remaining. I just don't see how you can possibly infer from the NFS spec that abytes is anything other than an

Re: Who needs these silly statfs changes...

2003-11-15 Thread Bruce Evans
On Sat, 15 Nov 2003, Terry Lambert wrote: Bruce Evans wrote: I just got around to testing the patch in that reply: [ ... ] This seems to work. On a 2TB-epsilon ffs1 file system (*) on an md malloc disk (**): Try it again. This time, take the remote FS below its free reserve as the

Re: Who needs these silly statfs changes...

2003-11-15 Thread Bruce Evans
On Fri, 14 Nov 2003 [EMAIL PROTECTED] wrote: Bruce Evans wrote: ... I just got around to testing the patch in that reply: ... Your patch to nfs_vfsops won't apply to my Solaris kernel :-) The protocol says abytes is unsigned, so the server shouldn't be lying by sending a huge

Re: Who needs these silly statfs changes...

2003-11-14 Thread Peter Edwards
Bernd Walter wrote: On Thu, Nov 13, 2003 at 12:54:18AM -0800, Kris Kennaway wrote: On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of

Re: Who needs these silly statfs changes...

2003-11-14 Thread Bruce Evans
On Fri, 14 Nov 2003, Peter Edwards wrote: Bernd Walter wrote: On Thu, Nov 13, 2003 at 12:54:18AM -0800, Kris Kennaway wrote: On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports

Re: Who needs these silly statfs changes...

2003-11-14 Thread Peter Edwards
Bruce Evans wrote: On Fri, 14 Nov 2003, Peter Edwards wrote: Bernd Walter wrote: On Thu, Nov 13, 2003 at 12:54:18AM -0800, Kris Kennaway wrote: On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine

Re: Who needs these silly statfs changes...

2003-11-14 Thread Bruce Evans
On Fri, 14 Nov 2003, Peter Edwards wrote: Bruce Evans wrote: On Fri, 14 Nov 2003, Peter Edwards wrote: The NFS protocols have unsigned fields where statfs has signed equivalents: NFS can't represent negative available disk space ( Without the knowledge of the underlying filesystem on

Re: Who needs these silly statfs changes...

2003-11-14 Thread peter . edwards
On Fri, 14 Nov 2003, Peter Edwards wrote: Bruce Evans wrote: On Fri, 14 Nov 2003, Peter Edwards wrote: The NFS protocols have unsigned fields where statfs has signed equivalents: NFS can't represent negative available disk space ( Without the knowledge of the underlying filesystem on

Re: Who needs these silly statfs changes...

2003-11-13 Thread Peter Jeremy
On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of free space! enigma# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on rot13:/mnt2 56595176 54032286 18014398507517260 0%

Re: Who needs these silly statfs changes...

2003-11-13 Thread Kris Kennaway
On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of free space! enigma# df -k Filesystem 1K-blocks Used Avail Capacity Mounted on

Re: Who needs these silly statfs changes...

2003-11-13 Thread Bernd Walter
On Thu, Nov 13, 2003 at 12:54:18AM -0800, Kris Kennaway wrote: On Thu, Nov 13, 2003 at 06:44:25PM +1100, Peter Jeremy wrote: On Wed, Nov 12, 2003 at 06:04:00PM -0800, Kris Kennaway wrote: ...my sparc machine reports that my i386 nfs server has 15 exabytes of free space! enigma# df -k