The patch reworks the feature and renames it to FALLOC_FL_CONVERT_UNWRITTEN.

Intended use:

0) pos := i_size_read(inode); len := 1MB; prealloc := 100MB

1) fallocate(file, 0, pos, prealloc)
2) fiemap(inode, &fieinfo, pos, 1)
3) dio pwrite(block_device, data, len, fi_extent.fe_physical)
4) fallocate(file, FALLOC_FL_CONVERT_UNWRITTEN, pos, len)

---

Maxim Patlasov (3):
      vfs: fix fallocate(FALLOC_FL_CONVERT_AND_EXTEND)
      ext4: rework fallocate(FALLOC_FL_CONVERT_AND_EXTEND)
      ext4: rename fallocate(FALLOC_FL_CONVERT_AND_EXTEND)


 fs/ext4/extents.c           |  121 ++-----------------------------------------
 fs/open.c                   |    8 ++-
 include/uapi/linux/falloc.h |    3 -
 3 files changed, 14 insertions(+), 118 deletions(-)

--
Signature
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to