9fans archive / 1994 / 05 / 5 / prev next
From: philw@pla... philw@pla...
Subject: No subject
Date: Fri, 6 May 1994 21:22:38 -0400
>From: euler.Berkeley.EDU!serge
>
>>Brazil allows file systems to be mounted with a recover option
>>which does exactly what you ask.
>
>Pardon me, can you tell me what Brazil is? Thank you very much.
Brazil is the name of the research version on Plan 9 we are currently
working on.
>From: Scott Schwartz <groucho.cse.psu.edu!schwartz>
>
>One annoying thing in Unix is when you say something like
>open("/no/such/directory/or/file",0), it tells you that it something
>doesn't exist, but doesn't say what, which sometimes makes for
>uninformative error messages. Now that we have errstr, instead of just
>errno, it would be delightful if it would encode something about
>what went wrong, so that perror could say something like
> open: failed because directory 'such' does not exist
This has nothing to do with the plan 9 kernel. The errstr is produced by
whatever file system you are connected to. However, while the file
system could be modified to do this it does not seem unreasonable
to expect the application programmer to print adequate information
especially with the werrstr library function and %r format.