Re: [PATCH] btrfs: send: fix error code if an unknown inode type is found

2017-09-12 Thread David Sterba
On Tue, Sep 12, 2017 at 12:02:44PM +0900, Tsutomu Itoh wrote: > Hi David, > > On 2017/09/12 1:58, David Sterba wrote: > > There are two types for "not supported", but the correct one is > > EOPNOTSUPP, let's use that one. The error message in the error case is > > not very helpful, enhance it at

Re: [PATCH] btrfs: send: fix error code if an unknown inode type is found

2017-09-11 Thread Tsutomu Itoh
Hi David, On 2017/09/12 1:58, David Sterba wrote: > There are two types for "not supported", but the correct one is > EOPNOTSUPP, let's use that one. The error message in the error case is > not very helpful, enhance it at least with the inode number. When I first posted a similar patch, you

[PATCH] btrfs: send: fix error code if an unknown inode type is found

2017-09-11 Thread David Sterba
There are two types for "not supported", but the correct one is EOPNOTSUPP, let's use that one. The error message in the error case is not very helpful, enhance it at least with the inode number. The unknown type seems to be the block device (S_IFBLK)(as it's the only unhandled case. Adding this