libvirt/qemu fallocate flags
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
I work on the GlusterFS project and we are using glusterfs as the backend store for VM images in our testing. There's a new feature introduced in glusterfs which shards a large file into multiple files.
Now in order to implement the "fallocate" file operation for sharded files, we need to know all the possible flags (ex: FALLOC_FL_KEEP_SIZE) that are passed to qemu when calling fallocate(). Could you help us on this?
-Krutika
Quoted 7 lines · Krutika Dhananjay
I work on the GlusterFS project and we are using glusterfs as the backend store for VM images in our testing. There's a new feature introduced in glusterfs which shards a large file into multiple files.
Now in order to implement the "fallocate" file operation for sharded files, we need to know all the possible flags (ex:
FALLOC_FL_KEEP_SIZE) that are passed to qemu when callingfallocate(). Could you help us on this?
cd qemu && git grep 'fallocate('
The following are used by block/raw-posix.c:
FALLOC_FL_ZERO_RANGE,
FALLOC_FL_PUNCH_HOLE | FALLOC_FL_KEEP_SIZE,
and 0.
Stefan