| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: clone ioctl return values |
| From: | Chris Mason <clm@xxxxxx> |
| Date: | Tue, 17 Nov 2015 13:42:28 -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=VSioXOS4VBdoIClmx6P9JWDGcy+vjkZHZSamqq+P0Vw=; b=dGAEwh48Ux9DzTV6k1LGONGEw41jmeCd+7hTlTlmt0KE9DGHRjaBUB9AzZ0zaXnvn13T 8gKNshId8SiNbgsLpLz6rL+hN5NVlOha0tl5Hlsz5BV8OloCZUEHszW8vO2Dkol2YvAh fpIrx7z054DaZQ4tnyN4pQbcxyWo87I/pjk= |
| In-reply-to: | <20151117152251.GA5392@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> <20151117135745.GF17545@xxxxxxxxxxxxxxxxxxx> <20151117152251.GA5392@xxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.23.1 (2014-03-12) |
On Tue, Nov 17, 2015 at 07:22:52AM -0800, Christoph Hellwig wrote: > On Tue, Nov 17, 2015 at 08:57:45AM -0500, Chris Mason wrote: > > > > 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. > > Yes, I saw that. So so far I'd suggest something like the following > for btrfs: > > - return EBADFD for missing read/wite permissions Why not -EPERM? I don't have strong feelings about picking errnos, as long as we're consistent, I'm not worried. > - return EINVAL for wrong non-directory file types as the > source fd Ack. -chris |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH v2 08/11] dax: add support for fsync/sync, Ross Zwisler |
|---|---|
| Next by Date: | Re: [PATCH v2 11/11] xfs: add support for DAX fsync/msync, Ross Zwisler |
| Previous by Thread: | Re: clone ioctl return values, Christoph Hellwig |
| Next by Thread: | Re: clone ioctl return values, Darrick J. Wong |
| Indexes: | [Date] [Thread] [Top] [All Lists] |