9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
[parent not found: <<bcba51a0912211848n63cca76es7a2a42993f3635bd@mail.gmail.com>]
* [9fans] 9vx and create (...DMEXCL)
@ 2009-12-22  2:48 Dimitry Golubovsky
  0 siblings, 0 replies; 6+ messages in thread
From: Dimitry Golubovsky @ 2009-12-22  2:48 UTC (permalink / raw)
  To: 9fans

Hi,

Is create (2) with DMEXCL mode supported under 9vx?

I am trying to run webcookie, and am getting the following:


term% webcookies
webcookies: readjar: cannot acquire jar lock:
'/usr/dima/lib/L.webcookies' bad arg in system call
term%

coming likely from this code in webcookies.c:

=============================================

	for(i=0; i<50; i++){
		if((fd = create(jar->lockfile, OWRITE, DMEXCL|0666)) < 0){
			sleep(100);
			continue;
		}
		break;
	}
	if(fd < 0){
		if(debug)
			fprint(2, "open %s: %r", jar->lockfile);
		werrstr("cannot acquire jar lock: %r");
		return -1;
	}

=============================================

If 9vx maps Plan9 permissions directly to Linux permissions this is
understandable. But is there any workaround?

Thanks.


--
Dimitry Golubovsky

Anywhere on the Web



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-22 16:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<1c5f6c9c85185a32b8833d01de47e34d@terzarima.net>
2009-12-22 14:19 ` [9fans] 9vx and create (...DMEXCL) erik quanstrom
     [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
2009-12-22  2:48 Dimitry Golubovsky

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).