9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dan Cross <cross@math.psu.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] "Can't read from nvram: /env/nvrof file does not exist"
Date: Fri, 18 Apr 2003 02:13:33 -0400	[thread overview]
Message-ID: <200304180613.h3I6DY517452@augusta.math.psu.edu> (raw)
In-Reply-To: Your message of "Thu, 17 Apr 2003 23:24:23 EDT." <6265ada728c8d7a1a8ce196d11a02462@plan9.bell-labs.com>

> never mind, i missed this part:
>
> 		if(strstr(v[0], "/9fat") == nil)
> 			safeoff = 0;
>
> the open failed, but the error is lost.

Yeah.  It's an unfortunate side effect of readnvram's error recovery.
If it fails to read nvram, it tries to write it, so error printing is
delayed.  As you noted, to use $nvram, $nvoff is not necessary.

> the open might fail because you typed
> the wrong value for $nvram, or perhaps
> it fails because the open is ORDWR?
> i doubt the ide driver is smart
> enough to know that flash is only OREAD,
> so i don't think this is it.

Wha...?  What do you mean `flash is only OREAD'?  This is a solid state
device that looks like an IDE hard disk, and most likely is writable.
After looking at the code again, I'm pretty sure that plan9.nvr doesn't
exist in the 9fat, or that there's a typo in $nvram such that it points
to a non-existant file.

	- Dan C.



  reply	other threads:[~2003-04-18  6:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-17 23:18 ron minnich
2003-04-17 23:24 ` Russ Cox
2003-04-18  3:10   ` Dan Cross
2003-04-18  3:13     ` Russ Cox
2003-04-18 14:12     ` ron minnich
2003-04-18 15:22       ` Russ Cox
2003-04-18  3:24   ` Russ Cox
2003-04-18  6:13     ` Dan Cross [this message]
2003-04-18 14:17       ` ron minnich
2003-04-18 18:33         ` Dan Cross
2003-04-18 18:37           ` rsc
2003-04-18 18:38             ` ron minnich
2003-04-18 18:39             ` Dan Cross
2003-04-18 19:30             ` ron minnich
2003-04-18 19:43               ` Russ Cox
2003-04-18 19:51                 ` ron minnich
2003-04-18 19:56                   ` rsc
2003-04-18 14:13     ` ron minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200304180613.h3I6DY517452@augusta.math.psu.edu \
    --to=cross@math.psu.edu \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).