Control NFS exported filesystems

Jack F. Vogel jackv at turnkey.tcc.com
Thu Jun 20 03:23:54 AEST 1991


In article <1991Jun19.162331.25505 at bellcore.bellcore.com> jona at iscp.Bellcore.COM (Jon Alperin) writes:
>In article <1991Jun19.154830.17276 at uai.com>, mrl at uai.com (Mark R. Ludwig) writes:
[ stuff about using the 'hard' mount for data integrity deleted...]
>
>	Hey...maybe this explains the reason that when I save a file
>under VI which is kept on another NFS partition, VI tells me that it
>was able to save the file, but because the real physical disk was full I
>end up with a 0 length file (and lose all my work).....
 
No, I don't believe that mounting the filesystem 'hard' will prevent this
from happening. The reason this can happen is that the NFS client is doing
a bawrite() (asynchronous) so it doesn't get an immediate error, rather
just the inode is marked in error. If you wrote enough data that multiple
calls to bawrite() were necessary then the error would be noticed and vi
would tell you.

In the NFS in BSD 4.3 reno, there was a mount option 'synchronous' that
solves this by forcing the client to use bwrite(), thus you will be
guaranteed to see the error, of course you are going to suffer somewhat
of a performance hit by using it. I don't know if the current SunOS has
such an option or not. Also I don't know what level of NFS the 6000 is
based on, so it could have such an option for all I know, check the
man page for mount.

Disclaimer: I'm a kernel hacker not a company spokesweenie :-}.

-- 
Jack F. Vogel			jackv at locus.com
AIX370 Technical Support	       - or -
Locus Computing Corp.		jackv at turnkey.TCC.COM



More information about the Comp.unix.aix mailing list