Re: [PATCH 04/10] vfs: Distinguish between full xattr names and proper prefixes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

Is it worth making an inline wrapper for 'handler->prefix ?: 
handler->name' ?


Reviewed-by: James Morris <james.l.morris@xxxxxxxxxx>


-- 
James Morris
<jmorris@xxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux