koverstreet / bcachefs

Other
695 stars 72 forks source link

feature: add support for FALLOC_FL_UNSHARE_RANGE #262

Open dlrobertson opened 3 years ago

dlrobertson commented 3 years ago

We do not currently support FALLOC_FL_UNSHARE_RANGE. Adding support for it could be an interesting project. The following is from fallocate(2):

If the FALLOC_FL_UNSHARE_RANGE flag is specified in mode, shared file data extents will be made private to the file to guarantee that a subsequent write will not fail due to lack of space. Typically, this will be done by performing a copy-on-write operation on all shared data in the file. This flag may not be supported by all filesystems.

koverstreet commented 3 years ago

We definitely want this