From: Anna Schumaker <hidden> Date: 2015-09-04 20:16:58
We need to verify that both the source and the destination files are
part of the same filesystem, otherwise we can't create a reflink.
Signed-off-by: Anna Schumaker <redacted>
---
fs/btrfs/ioctl.c | 4 ++++
1 file changed, 4 insertions(+)
--
2.5.1
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
From: David Sterba <hidden> Date: 2015-09-09 09:19:26
On Fri, Sep 04, 2015 at 04:16:58PM -0400, Anna Schumaker wrote:
quoted hunk
We need to verify that both the source and the destination files are
part of the same filesystem, otherwise we can't create a reflink.
Signed-off-by: Anna Schumaker <redacted>
---
fs/btrfs/ioctl.c | 4 ++++
1 file changed, 4 insertions(+)
From: Anna Schumaker <hidden> Date: 2015-09-09 15:56:12
On 09/09/2015 05:18 AM, David Sterba wrote:
On Fri, Sep 04, 2015 at 04:16:58PM -0400, Anna Schumaker wrote:
quoted
We need to verify that both the source and the destination files are
part of the same filesystem, otherwise we can't create a reflink.
Signed-off-by: Anna Schumaker <redacted>
---
fs/btrfs/ioctl.c | 4 ++++
1 file changed, 4 insertions(+)
The same check exists in btrfs_clone_files (added in the previous
patch), what's the reason to add it here again?
To be really, really sure that it's not a cross-device copy? :)
In reality, it was an oversight and I'll drop the patch. Thanks for letting me know!
Anna
quoted
+
ret = btrfs_clone_files(file_out, file_in, pos_in, len, pos_out);