Re: [PATCH 01/31] xfs: reject invalid flags combinations in XFS_IOC_ATTRLIST_BY_HANDLE

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

 



On Tue, Feb 18, 2020 at 08:48:32AM +1100, Dave Chinner wrote:
> On Mon, Feb 17, 2020 at 01:59:27PM +0100, Christoph Hellwig wrote:
> > While the flags field in the ABI and the on-disk format allows for
> > multiple namespace flags, that is a logically invalid combination and
> > listing multiple namespace flags will return no results as no attr
> > can have both set.  Reject this case early with -EINVAL.
> 
> Had a bit of a hard time deciphering this. Perhaps:
> 
> While the flags field in the ABI and the on-disk format allows for
> multiple namespace flags, an attribute can only exist in a single
> namespace at a time. Hence asking to list attributes that exist
> in multiple namespaces simultaneously is a logically invalid
> request and will return no results. Reject this case early with
> -EINVAL.

I like this description a bit better too.  With that fixed up,

Reviewed-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx>

--D

> Other than that, the code is good.
> 
> Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx>
> 
> -- 
> Dave Chinner
> david@xxxxxxxxxxxxx



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux