[linux-cifs-client] Re: POSIX Create/Mkdir and Create Action

Steve French smfrench at austin.rr.com
Sat Mar 10 06:03:34 GMT 2007


Jeremy Allison wrote:
> On Fri, Mar 09, 2007 at 11:41:42PM -0600, Steve French wrote:
>
>   
>> 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.
>
>   
I agree.
>> 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.
>   
Better now than later ... some things don't become obvious until code 
hits paper/screen/computer



More information about the linux-cifs-client mailing list