lkml.org 
[lkml]   [2015]   [Dec]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 04/10] vfs: Distinguish between full xattr names and proper prefixes
From
On Tue, Dec 1, 2015 at 10:42 AM, James Morris <jmorris@namei.org> wrote:
> On Mon, 30 Nov 2015, Andreas Gruenbacher wrote:
>
>> Add an additional "name" field to struct xattr_handler. When the name
>> is set, the handler matches attributes with exactly that name. When the
>> prefix is set instead, the handler matches attributes with the given
>> prefix and with a non-empty suffix.
>>
>> This patch should avoid bugs like the one fixed in commit c361016a in
>> the future.
>>
>> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
>
> Is it worth making an inline wrapper for 'handler->prefix ?:
> handler->name' ?

Yes, I did that.

Thanks,
Andreas


\
 
 \ /
  Last update: 2015-12-02 15:01    [W:4.330 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site