Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!pasteur!ucbvax!unisoft!mtxinu!ed From: ed@mtxinu.UUCP (Ed Gould) Newsgroups: comp.unix.wizards Subject: Re: NFS performance: a question Message-ID: <561@mtxinu.UUCP> Date: 15 Feb 88 19:01:14 GMT References: <663@noao.UUCP> <63500011@convex> <5432@cit-vax.Caltech.Edu> <41894@sun.uucp> Reply-To: ed@mtxinu.UUCP (Ed Gould) Organization: mt Xinu, Berkeley Lines: 22 In article <41894@sun.uucp> guy@gorodish.Sun.COM (Guy Harris) writes: >... when doing NFS writes, "out of space" errors are not synchronously >reported. A program should probably do an "fsync" after writing out a >lot of data, and check the return code from "fsync", so that it can >find out about such errors and report them to the user. The return value from close() will also report the error code, so the fsync() is not necessary in all cases. It's necessary only if the program wishes to check for errors but not close the file. Note that there are errors that can occur on local filesystems that may not be reported synchronously either. Usually, these are hardware errors (not software-only things like "out of space"). In fact, they may not be reported to the user program at all. Moral: Check for and report errors from *all* system calls. -- Ed Gould mt Xinu, 2560 Ninth St., Berkeley, CA 94710 USA {ucbvax,uunet}!mtxinu!ed +1 415 644 0146 "`She's smart, for a woman, wonder how she got that way'..."