[zfs-code] System call to create a clone of a file on a ZFS filesystem?

2007-10-11 Thread Matthew Ahrens
Robert Milkowski wrote:
 I haven't looked into details but in theory one should be
 able to copy/move a file within the same datapool between datasets
 without having to actually copy data blocks... or maybe there's some
 detail which actually makes it hard to implement...

Once a block is referenced by multiple filesystem, it is nontrivial to 
determine when it can be freed.

--matt



[zfs-code] System call to create a clone of a file on a ZFS filesystem?

2007-10-11 Thread Robert Milkowski
Hello Matthew,

Thursday, October 11, 2007, 9:10:13 AM, you wrote:

MA Robert Milkowski wrote:
 I haven't looked into details but in theory one should be
 able to copy/move a file within the same datapool between datasets
 without having to actually copy data blocks... or maybe there's some
 detail which actually makes it hard to implement...

MA Once a block is referenced by multiple filesystem, it is nontrivial to
MA determine when it can be freed.

In a way multiple snapshots are separate file systems, or clones...
What's the difference? However I'm sure you right...

-- 
Best regards,
 Robert Milkowski  mailto:rmilkowski at task.gda.pl
   http://milek.blogspot.com