Skip to content

Python script for calling the FICLONERANGE ioctl on Linux

License

Notifications You must be signed in to change notification settings

rdaysky/ficlonerange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Ever wondered why cp --reflink exists and cat --reflink doesn’t? Now you can merge and split files avoiding both time and space costs using this simple Python script that just performs the FICLONERANGE ioctl. Note it only works on some filesystems (I only tested it on btrfs) and is subject to alignment constraints (only works on chunks that are multiples of block size, typically 4k).

Possible use cases include joining VOB files from DVDs, or other large files that for some reason come in chunks.

For usage, pass the script the --help argument.

About

Python script for calling the FICLONERANGE ioctl on Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages