From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Wed, 5 Dec 2012 09:41:48 +0000 From: Pavel Klinkovsky Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Subject: [9fans] QTEXCL/DMEXCL redundancy Topicbox-Message-UUID: f06bdaf2-ead7-11e9-9d60-3106f5b1d025 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