[PATCH] cifs-utils: Correct max string lengths

Chen Gang gang.chen at asianux.com
Sun Jul 21 19:38:17 MDT 2013


On 07/20/2013 11:24 PM, Scott Lovenberg wrote:
> 
> 
> Sent from my iPod
> 
> On Jul 20, 2013, at 6:43, Jeff Layton <jlayton at redhat.com> wrote:
> 
>> On Fri, 19 Jul 2013 22:44:22 -0400
>> Scott Lovenberg <scott.lovenberg at gmail.com> wrote:
>>
>>> On Jul 19, 2013, at 22:34, Steve French <smfrench at gmail.com> wrote:
>>>
>>>> Leaving Max share length at 256 is fine with me
>>> Works for me. Should this be fixed kernel side?
>>
>> Yes, I think that would make sense. Scott, I assume you'll send a v2 of
>> this patch that preserves the share length at 256?
>>
>> Once that's done, the ideal thing here would be to move these
>> definitions in the kernel to a separate header file that lives under
>> include/linux. Then we could have autoconf in cifs-utils look for that
>> header and use the #defines from that instead if it's present.
>>
>> That way we won't be so reliant on keeping the kernel and cifs-utils in
>> sync...
> 
> Yeah. I'll respin and send tomorrow. I have a wedding to attend this afternoon.  Using autoconf would be terrific and I'm completely on board with that idea. 
> 

Is it better to let the new header file in "include/uapi/linux" ? It
belongs to the interface between user mode and kernel mode.

>> -- 
>> Jeff Layton <jlayton at redhat.com>
> 
> 

Thanks.
-- 
Chen Gang


More information about the samba-technical mailing list