9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] QTEXCL/DMEXCL redundancy
@ 2012-12-05  9:41 Pavel Klinkovsky
  2012-12-05 11:01 ` Charles Forsyth
  2012-12-05 11:37 ` Pavel Klinkovsky
  0 siblings, 2 replies; 8+ messages in thread
From: Pavel Klinkovsky @ 2012-12-05  9:41 UTC (permalink / raw)
  To: 9fans

Hi all,

first time I am trying to create a "synthetic" file system.

I want to have "synthetic" files with the exclusive flag.

In my getdirent (called from dirread9p) function I have:

>d->qid = (Qid){n, 0, QTFILE|QTEXCL};
>d->mode = 0666;

This does not work (ls -l did not show 'l' flag).


When I made a modification:

>d->qid = (Qid){n, 0, QTFILE|QTEXCL};
>d->mode = DMEXCL|0666;

This works (ls -l shows 'l' flag).


I thought the DMEXCL in 'mode' is a unnecessary since QTEXCL is already present in 'Qid'. I was apparently wrong...

Can you recommend me e.g. the manual page or document explaining such matter?
I really do not understand why such a redundancy (QTEXCL/qid and DMEXCL/mode) is there...

Thanks.

Pavel



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

end of thread, other threads:[~2012-12-05 13:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-05  9:41 [9fans] QTEXCL/DMEXCL redundancy Pavel Klinkovsky
2012-12-05 11:01 ` Charles Forsyth
2012-12-05 11:02   ` Charles Forsyth
2012-12-05 12:39     ` erik quanstrom
2012-12-05 13:06       ` Charles Forsyth
2012-12-05 13:45         ` erik quanstrom
2012-12-05 13:58           ` Charles Forsyth
2012-12-05 11:37 ` Pavel Klinkovsky

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