[linux-cifs-client] Re: POSIX Create/Mkdir and Create Action
Jeremy Allison
jra at samba.org
Sat Mar 10 05:51:56 GMT 2007
On Fri, Mar 09, 2007 at 11:41:42PM -0600, Steve French wrote:
> My proposal would be to either:
> 1) Overload a flag in the same field with the oplock bits e.g.
> #define CREATE_ACTION 0x0010
-1 on this. That's horrid...
> 2) Use the reserved (2 byte) pad field and call it CreateAction just as
> it is in NTCreateX response
> (although we should probably make it 4 bytes to match NTCreateX response)
This would work. Although I still think the mkdir call
needs to return EEXIST just like a posix one.
> 3) Use a return code to indicate it existed and was opened -
> unfortunately EEXIST is probably not possible to return as it would mean
> the file existed and therefore could not be opened
>
> Thoughts? I prefer option #2
Ok, but we're revving this on the fly which I hate.... Good thing
none of this is in production code. James/George - how
far along is your client implementation ?
Jeremy.
More information about the linux-cifs-client
mailing list