| To: | "Darrick J. Wong" <darrick.wong@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 2/2] generic/15[78]: fix error messages in the golden output |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Mon, 23 Nov 2015 23:41:59 -0800 |
| Cc: | Christoph Hellwig <hch@xxxxxxxxxxxxx>, david@xxxxxxxxxxxxx, fstests@xxxxxxxxxxxxxxx, xfs@xxxxxxxxxxx, tao.peng@xxxxxxxxxxxxxxx, linux-ext4@xxxxxxxxxxxxxxx, Anna.Schumaker@xxxxxxxxxx, linux-btrfs@xxxxxxxxxxxxxxx |
| Delivered-to: | xfs@xxxxxxxxxxx |
| In-reply-to: | <20151123212533.GC10589@xxxxxxxxxxxxxxxx> |
| References: | <20151121005001.20398.92856.stgit@xxxxxxxxxxxxxxxx> <20151121005014.20398.22316.stgit@xxxxxxxxxxxxxxxx> <20151121180644.GA23916@xxxxxxxxxxxxx> <20151123212533.GC10589@xxxxxxxxxxxxxxxx> |
| User-agent: | Mutt/1.5.23 (2014-03-12) |
On Mon, Nov 23, 2015 at 01:25:33PM -0800, Darrick J. Wong wrote: > > Shouldn't these be Invalid argument just like the > > to a device case above or the clone case? > > I was trying to mirror the behavior of reflink, which spits out > EOPNOTSUPP when the destination isn't a regular file and EINVAL > when the source isn't a regular file. clone is called on the destination and takes the source from the ioctl argument. dedupe is called on the source and then opens the destinations, so they're not really comparable. Btrfs currently returns EACCES for non-dir, non-regular destinations which look wrong and I think EINVAL for a mismatch between source and destination types would make most sense. I've also prepared a btrfs patch for this and clone, but I'd like to have consensus on the exact error first. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | 业务传统的开发客户效率低,寻找开发新思路!, MTV1 |
|---|---|
| Next by Date: | Important Information, NatWest |
| Previous by Thread: | Re: [PATCH 2/2] generic/15[78]: fix error messages in the golden output, Darrick J. Wong |
| Next by Thread: | [ANNOUNCE] xfsprogs: v4.3.0 released, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |