Re: [PATCH] fs: try to clone files first in vfs_copy_file_range

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[fullquote removed, please get your email etiquette right or I'll stop
responding]


> For fs that support both copy and clone, I am not convinced that it up to
> VFS to take that decision for the application.

We had that discussion many times.  Yes, the system can decide it, as
the application does not see the difference.

> If application 'chose' copy over clone maybe it had a reason.

Yes, because it's lazy and simply doesn't give a f**k how the data
is copied.  Clone provides much stronger guarantees, but if you don't
need them you'll just use call that will always work.

> I suggest to move this to 'clone fallback' after copy_file_range and before
> do_splice_direct.

That won't do the right thing for the NFS case.

> A hypothetical case why copy_range implementation would be preferred
> by an application that runs over specific hypothetical fs - copy_file_range
> can be more easily implemented as a killable copy loop, returning the length
> that was copy before interrupted by a signal.

Clone is a fast metadata operation and is finished before you even
had a chance to kill it.
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux