public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] GSoC proposal: cp --reflink support for zfs.
@ 2014-03-12  7:15 Yuxuan Shui
  2014-03-12 12:45 ` Alex Xu
  2014-03-12 13:18 ` [gentoo-dev] " Richard Yao
  0 siblings, 2 replies; 9+ messages in thread
From: Yuxuan Shui @ 2014-03-12  7:15 UTC (permalink / raw
  To: ryao; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1005 bytes --]

Hi,

I would like to implement cp --reflink support for ZFSOnLinux as my GSoC
project.

cp --reflink is used to create a COW copy of a file, so the file will not
take any disk space if it's not modified. This feature is very useful for
cases like storing a lot of almost identical virtual machine images. Also
this is a frequently requested feature for ZoL. [1][2][3]

Currently only btrfs support this feature, so my goal it to bring it to ZoL
as well.

I think the only way to do it (without changing too many parts of ZoL) is
to use the deduplication feature of zfs. A COW copy could be done by create
a new entry in ddt for the old file, and create a new file which points to
the ddt entry.

Please let me know if this proposal makes sense, and if that's the right
way to do it.

Thanks.

[1]:
https://groups.google.com/a/zfsonlinux.org/forum/#!topic/zfs-discuss/mvGB7QEpt3w
[2]: https://github.com/zfsonlinux/zfs/issues/405
[3]: https://github.com/zfsonlinux/zfs/issues/1063
-- 

Regards
Yuxuan Shui

[-- Attachment #2: Type: text/html, Size: 1466 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-03-12 22:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-12  7:15 [gentoo-dev] GSoC proposal: cp --reflink support for zfs Yuxuan Shui
2014-03-12 12:45 ` Alex Xu
2014-03-12 13:30   ` Richard Yao
2014-03-12 17:07     ` Yuxuan Shui
2014-03-12 17:19     ` Rich Freeman
2014-03-12 17:22       ` Paul Tagliamonte
2014-03-12 22:31         ` Richard Yao
2014-03-12 22:31       ` Richard Yao
2014-03-12 13:18 ` [gentoo-dev] " Richard Yao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox