On Thu, May 8, 2008 at 12:56 PM, Brian L. Stuart <[EMAIL PROTECTED]> wrote:
> I've found something that looks odd in the way v9fs
>  under Linux interacts with a fossil running on Plan 9.
>  If I create a file by redirecting output, the shell
>  seems able to happily create the file.  If I try to
>  cp a file, then it fails.  The logs show the error
>  "unknown mode."  As near as I can tell, here's what's
>  happening:
>
>  - cp creates the file with the O_EXCL flag.
>  - v9fs_uflags2mode() sets the P9_OEXCL flag.
>  - v9fs defines P9_OEXCL to be 4, where
>   /sys/include/libc.h defines OEXCL to be 0x1000

Which version of v9fs are you using: (this is the current version on my tree:)
[EMAIL PROTECTED]:~/src/linux/9p/include/net/9p$ grep P9_OEXCL *
9p.h: * @P9_OEXCL: only create a file, do not open it
9p.h:   P9_OEXCL = 0x1000,

         -eric

Reply via email to