9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Dmitry Golubovsky <golubovsky@gmail.com>
To: 9fans@9fans.net
Subject: Re: [9fans] 9vx and create (...DMEXCL)
Date: Tue, 22 Dec 2009 15:44:18 +0000	[thread overview]
Message-ID: <24e4e67a-d202-4316-98d1-43feba6f79a9@p32g2000vbi.googlegroups.com> (raw)
In-Reply-To: <2c9ff7e46c74a5faea56c49b88065b08@brasstown.quanstro.net>

Hi,

OK, thanks for the clue.

Unfortunately, this (devfs-posix.c in 9vx):

	if(perm & ~(DMDIR|0777))
		error(Ebadarg);

generates the error, and the values of DMEXCL and DMAPPEND do not seem
to fit into Unix permissions. So these won't work in 9vx as long as
the host filesystem is used*.

------------------------------------------------
* Unless the host FS is ext?fs and the kernel supports extended
attributes which may require specific patches

On Dec 22, 4:50 am, fors...@terzarima.net (Charles Forsyth) wrote:

> no, it won't: OEXCL, perhaps, but not DMEXCL.
> i'd have thought it should be used in fscreate, though,
> to help chan.c implement OEXCL correctly. fscreate should
> fail if the file exists, but perhaps that happens another way.

Dmitry.



  parent reply	other threads:[~2009-12-22 15:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<bcba51a0912211848n63cca76es7a2a42993f3635bd@mail.gmail.com>
2009-12-22  3:27 ` erik quanstrom
2009-12-22  9:51   ` Charles Forsyth
2009-12-22 16:31     ` Russ Cox
2009-12-22 15:44   ` Dmitry Golubovsky [this message]
     [not found] <<1c5f6c9c85185a32b8833d01de47e34d@terzarima.net>
2009-12-22 14:19 ` erik quanstrom
2009-12-22  2:48 Dimitry Golubovsky

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=24e4e67a-d202-4316-98d1-43feba6f79a9@p32g2000vbi.googlegroups.com \
    --to=golubovsky@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).