btrfs-0.1.0.0: examples/btrfs-clone-range.hs
import System.Environment
import System.Linux.Btrfs
main :: IO ()
main = do
[srcPath, srcOff, srcLen, dstPath, dstOff] <- getArgs
cloneRange srcPath (read srcOff) (read srcLen)
dstPath (read dstOff)