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@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
/* 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':