Path: utzoo!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!ANDREW.CMU.EDU!gk5g+ From: gk5g+@ANDREW.CMU.EDU (Gary Keim) Newsgroups: comp.soft-sys.andrew Subject: Re: Incorrect error msg in AFS'd EZ Message-ID: Date: 14 Mar 91 18:18:53 GMT References: <1991Mar12.155505.19995@dartvax.dartmouth.edu> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 60 Excerpts from misc: 12-Mar-91 Incorrect error msg in AFS'.. Pat Wilson@ucbvax.Berkel (566) > I haven't looked at the EZ code to figure out what it's > checking, but it seems like it might not be too hard to put a different > (and more correct) error out in this situation. I just read it and[An Andrew ToolKit view (a footnote) was included here, but could not be displayed.] I'm of the opinion that it's an AFS bug. Here is the code frag from andrew/atk/frame/framecmd.c [static int saveBuffer()]: result = buffer_WriteToFile(buffer, filename, buffer_ReliableWrite | buffer_MakeBackup); if (result >= 0) { /* Success */ } else switch (errno) { case EACCES: message_DisplayString(outputFrame, 0, "Could not save file; permission denied."); break; #ifdef ETIMEDOUT case ETIMEDOUT: message_DisplayString(outputFrame, 0, "Could not save file; a server is down."); break; #endif /* ETIMEDOUT */ #ifdef EFAULT case EFAULT: message_DisplayString(outputFrame, 0, "Could not save file; a server is down."); break; #endif /* EFAULT */ #ifdef EDQUOT case EDQUOT: message_DisplayString(outputFrame, 0, "Could not save file; you are over your quota."); break; #endif /* EDQUOT */ case ENOSPC: message_DisplayString(outputFrame, 0, "Could not save file; no space left on partition."); break; #ifdef EIO case EIO: message_DisplayString(outputFrame, 0, "Could not save file; an I/O error occurred on the disk."); break; #endif /* EIO */ case EISDIR: message_DisplayString(outputFrame, 0, "File not found; could not create. Attempt to write to a directory."); break; default: sprintf(message, "Could not save file: %s.", UnixError(errno)); message_DisplayString(outputFrame, 0, message); }