keithtmc123 / macfuse

Automatically exported from code.google.com/p/macfuse
Other
0 stars 0 forks source link

O_WRONLY mangled into O_RDWR during a CREATE opcode? #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. start fusexmp_fh
2. touch mountpoint/foo

What is the expected output? What do you see instead?

If you ktrace touch, you'll see that it calls open() with flags of 0x201
(O_CREAT | O_WRONLY)

If you instrument fusexmp_fh.c:xmp_create(), however, it gets called with
flags of 0x2

I can understand that O_CREAT gets stripped, but why does O_WRONLY get
mutated into O_RDWR?  A similar test on Linux leaves the non-O_CREAT flags
(0x8801) unchanged, as I would expect.

What version of the product are you using? On what operating system?

0.2.2 on Mac OS X 10.4.8

Original issue reported on code.google.com by sch...@gmail.com on 27 Feb 2007 at 9:32

GoogleCodeExporter commented 8 years ago
I got a google page telling me that it failed, to try again, now it's in here 
twice.
 I can't invalidate it myself.

(sigh)

Original comment by sch...@gmail.com on 27 Feb 2007 at 9:34

GoogleCodeExporter commented 8 years ago

Original comment by si...@gmail.com on 27 Feb 2007 at 9:52