Skip to contentSkip to conversation

libvirt/qemu fallocate flags

Qemu-devel Krutika Dhananjay 2 participants 2 messages Feb 19, 2016 – Feb 22, 2016 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

#2 lore raw
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 calling fallocate(). 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