9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "ron minnich" <rminnich@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] p9_errstr2errno unknown mode
Date: Sun,  6 Apr 2008 23:45:27 -0700	[thread overview]
Message-ID: <13426df10804062345w40381703w5a61e018f0c4d5b4@mail.gmail.com> (raw)
In-Reply-To: <13426df10804062335x7a1b95a0pb26f96afb660d89b@mail.gmail.com>

btw, this 'unkown mode' -- what is all this you wonder?
what's
p9_errstr2errno: errstr :unknown mode: not found

Not found? Huh? This is the errstr (from plan 9) to errno (for
ancient, primitive OSes that don't have errstr, i.e. 'all of them').

I see in fossil/9p.c this for create:
	if(omode == OREAD || omode == ORDWR || omode == OEXEC)
		open |= FidORead;
	if(omode == OWRITE || omode == ORDWR)
		open |= FidOWrite;
	if((open & (FidOWrite|FidORead)) == 0){
		vtSetError("unknown mode");
		goto error;
	}

Or this for open:
	if((open & (FidOWrite|FidORead)) == 0){
		vtSetError("unknown mode");
		goto error;
	}

So, seems linux client is sending bad omode?

we sure could use that trace.

ron


  reply	other threads:[~2008-04-07  6:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-06  8:47 Matthias Teege
2008-04-06 14:39 ` Eric Van Hensbergen
2008-04-06 16:15   ` Matthias Teege
2008-04-07  6:35     ` ron minnich
2008-04-07  6:45       ` ron minnich [this message]
2008-04-07  6:57       ` Matthias Teege
2008-04-07  7:02         ` ron minnich
2008-04-07  7:06         ` ron minnich
2008-04-07 13:18           ` Matthias Teege
2008-04-07 14:20             ` Eric Van Hensbergen

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=13426df10804062345w40381703w5a61e018f0c4d5b4@mail.gmail.com \
    --to=rminnich@gmail.com \
    --cc=9fans@9fans.net \
    /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).