Hello, I found cp(1) has an '--reflink' option, at first, I think it is means the OCFS2 reflink operation(please refer to http://lwn.net/Articles/331576/).
But by checking through the source code, looks it does another thing for Btrfs only. So is it better to fix this option name to another more meaningful one? we can then using this option once OCFS2 reflink spread over other linux FS? btw, is it acceptable to add the OCFS2 reflink into the cp(1) program, it could be implemented very similar to the current "clone_file()" function(also call ioctl(2), due to reflink(2) does not merged into mainline for now), and share the same command line trigger(i.e. --reflink=[WHEN]). If so, I'd like to write the patch. Best Regards, -Jeff
