On Sat, May 09, 2020 at 07:01:23PM +0200, Christoph Hellwig wrote: > Clear the other flag when applying the create or replace option, > as the low-level libxfs can't handle both at the same time. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> Reviewed-by: Darrick J. Wong <darrick.wong@xxxxxxxxxx> --D > --- > db/attrset.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/db/attrset.c b/db/attrset.c > index e3575271..b86ecec7 100644 > --- a/db/attrset.c > +++ b/db/attrset.c > @@ -99,9 +99,11 @@ attr_set_f( > /* modifiers */ > case 'C': > args.attr_flags |= XATTR_CREATE; > + args.attr_flags &= ~XATTR_REPLACE; > break; > case 'R': > args.attr_flags |= XATTR_REPLACE; > + args.attr_flags &= ~XATTR_CREATE; > break; > > case 'n': > -- > 2.26.2 >