]> git.proxmox.com Git - mirror_qemu.git/commit
block/file-posix: do not fail on unlock bytes
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Fri, 29 Mar 2019 11:04:54 +0000 (14:04 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 2 Apr 2019 10:04:44 +0000 (12:04 +0200)
commit696aaaed579ac5bf5fa336216909b46d3d8f07a8
treebf03fcd6298502f38562377cfb1a2ec1cfbdf1fa
parent38e694fcc918f0f4ac1500a5c92acfa421a69773
block/file-posix: do not fail on unlock bytes

bdrv_replace_child() calls bdrv_check_perm() with error_abort on
loosening permissions. However file-locking operations may fail even
in this case, for example on NFS. And this leads to Qemu crash.

Let's avoid such errors. Note, that we ignore such things anyway on
permission update commit and abort.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c