xfs
[Top] [All Lists]

Re: clone ioctl return values

To: Christoph Hellwig <hch@xxxxxxxxxxxxx>
Subject: Re: clone ioctl return values
From: Chris Mason <clm@xxxxxx>
Date: Tue, 17 Nov 2015 08:57:45 -0500
Cc: "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>, <xfs@xxxxxxxxxxx>, <linux-fsdevel@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=facebook; bh=8+6a6qF+RUpjggo7H43w9pWxnG5mJzmrXeB3F20gtgU=; b=mcCKzMCAWU8kBSb7Do+FhnMYRmYem4ZufI2/5jz0PW0UUQOofX3zLzDSSntFBumZrdef cW2o7JQG43/gC8N7tV/QbyzZTvVApWBNiwCIo62lGaAGwxnBuv6FVEVZ8Sg8gUfnjI3y jS9vAimImcsHhBPSvIhXW85dmYcsbmUSmDA=
In-reply-to: <20151117105433.GA18093@xxxxxxxxxxxxx>
Mail-followup-to: Chris Mason <clm@xxxxxx>, Christoph Hellwig <hch@xxxxxxxxxxxxx>, "Darrick J. Wong" <darrick.wong@xxxxxxxxxx>, xfs@xxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx
References: <20151116120431.GA2860@xxxxxxxxxxxxx> <20151117002822.GA32467@xxxxxxxxxxxxxxxx> <20151117105433.GA18093@xxxxxxxxxxxxx>
User-agent: Mutt/1.5.23.1 (2014-03-12)
On Tue, Nov 17, 2015 at 02:54:33AM -0800, Christoph Hellwig wrote:
> On Mon, Nov 16, 2015 at 04:28:22PM -0800, Darrick J. Wong wrote:
> > >  Try to reflink a device
> > > -XFS_IOC_CLONE_RANGE: Invalid argument
> > > +/mnt/test/test-157/dev1: No such device or address
> > 
> > Huh.  How did you get -ENODEV here?  I ran this on 4.3 and got -EINVAL.
> 
> This is current 4.4-rc.  The error seems accidental I think.
> 
> > Errrgh, the golden output of this test reflects the changes to the input
> > checking in Anna/Peng's copy_file_range/clone_file_range patches.
> > 
> > So, I guess the question is, should I reset the golden output to whatever
> > btrfs spits out before that patchset, and we'll consider the alterations
> > to be bugs/regressions/whatever that ought to be fixed in their patches?
> 
> Some bits in btrfs don't seem kosher.  But it would be good to
> explicitly send patches for btrfs to adopt to what might make more
> sense, and then follow it in the other implementations.

Btrfs does check for directories, but we should really be checking for
regular files too.  In the end, we only copy extents that would
correspond with regular files, so we're sneaking by.

-chris

<Prev in Thread] Current Thread [Next in Thread>