[Devel] [PATCH VZ10 0/3] dm-ploop: fixes for read-only handling and truncate helpers

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Thu Jan 29 14:09:04 MSK 2026


- Export do_ftruncate() so in-kernel users can truncate files directly 
  using struct file, without relying on file descriptor based helpers.
- Revert the recently introduced vfs_truncate2() helper, which is no 
  longer needed after exporting do_ftruncate() and causes unnecessary API churn.
- Fix dm-ploop target constructor logic to avoid preallocating clusters when 
  the table is created in read-only mode. Userspace may still pass the optional 
  fallo_new_clu argument, but preallocation should be skipped for read-only ploop devices.

https://virtuozzo.atlassian.net/browse/VSTOR-123292

Signed-off-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

Vasileios Almpanis (3):
  fs: Export do_ftruncate
  Revert "fs: Introduce vfs_truncate2() with file argument"
  dm-ploop: dont preallocate clusters for read only table

 drivers/md/dm-ploop-map.c    | 2 +-
 drivers/md/dm-ploop-target.c | 2 +-
 drivers/md/dm-qcow2-map.c    | 2 +-
 fs/open.c                    | 7 ++++---
 include/linux/fs.h           | 7 ++-----
 kernel/trace/bpf_trace.c     | 3 ++-
 6 files changed, 11 insertions(+), 12 deletions(-)

-- 
2.43.0



More information about the Devel mailing list