Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932088AbaA1Pp7 (ORCPT ); Tue, 28 Jan 2014 10:45:59 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:49440 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754790AbaA1Pp5 (ORCPT ); Tue, 28 Jan 2014 10:45:57 -0500 Message-ID: <52E7D0AF.4090603@fb.com> Date: Tue, 28 Jan 2014 10:45:51 -0500 From: Josef Bacik User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Kusanagi Kouichi , CC: Subject: Re: [PATCH] btrfs: Return EXDEV for cross file system snapshot References: <52cd2c7c00011d8a00004f4e0000743e400004e23b8c@amlmta033.auone-net.jp> In-Reply-To: <52cd2c7c00011d8a00004f4e0000743e400004e23b8c@amlmta033.auone-net.jp> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.57.29] X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87,1.0.14,0.0.0000 definitions=2014-01-28_07:2014-01-28,2014-01-28,1970-01-01 signatures=0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/08/2014 05:46 AM, Kusanagi Kouichi wrote: > EXDEV seems an appropriate error if an operation fails bacause it > crosses file system boundaries. > > Signed-off-by: Kusanagi Kouichi > --- > fs/btrfs/ioctl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c > index 21da576..15d35cb 100644 > --- a/fs/btrfs/ioctl.c > +++ b/fs/btrfs/ioctl.c > @@ -1544,7 +1544,7 @@ static noinline int btrfs_ioctl_snap_create_transid(struct file *file, > if (src_inode->i_sb != file_inode(file)->i_sb) { > printk(KERN_INFO "btrfs: Snapshot src from " > "another FS\n"); > - ret = -EINVAL; > + ret = -EXDEV; > } else { > ret = btrfs_mksubvol(&file->f_path, name, namelen, > BTRFS_I(src_inode)->root, Doesn't apply cleanly to btrfs-next, please rebase and try again. Thanks, Josef -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/