summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEmanuele Giuseppe Esposito2022-03-03 16:15:51 +0100
committerKevin Wolf2022-03-04 18:18:25 +0100
commit8cc5882c7fe0759f856b2f97a08816353227e8f7 (patch)
tree3000c18a5fa451d104a1f69c29ff9cfd97cf63f8 /include
parentIO_CODE and IO_OR_GS_CODE for block I/O API (diff)
downloadqemu-8cc5882c7fe0759f856b2f97a08816353227e8f7.tar.gz
qemu-8cc5882c7fe0759f856b2f97a08816353227e8f7.tar.xz
qemu-8cc5882c7fe0759f856b2f97a08816353227e8f7.zip
block/export/fuse.c: allow writable exports to take RESIZE permission
Allow writable exports to get BLK_PERM_RESIZE permission from creation, in fuse_export_create(). In this way, there is no need to give the permission in fuse_do_truncate(), which might be run in an iothread. Permissions should be set only in the main thread, so in any case if an iothread tries to set RESIZE, it will be blocked. Also assert in fuse_do_truncate that if we give the RESIZE permission we can then restore the original ones. Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Message-Id: <20220303151616.325444-7-eesposit@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions