]> git.proxmox.com Git - mirror_qemu.git/commit - block/file-posix.c
file-posix: Fix creation locking
authorMax Reitz <mreitz@redhat.com>
Wed, 4 Jul 2018 14:47:50 +0000 (16:47 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 5 Jul 2018 09:07:58 +0000 (11:07 +0200)
commitd815efcaf01b1698e2fdf0f3e125201025c53191
treefd5f634e564a4a41dd60c1dd59da77508b7f7ff1
parent1dce698ea85bb18f62e4c540d4db628bacfba6ba
file-posix: Fix creation locking

raw_apply_lock_bytes() takes a bit mask of "permissions that are NOT
shared".

Also, make the "perm" and "shared" variables uint64_t, because I do not
particularly like using ~ on signed integers (and other permission masks
are usually uint64_t, too).

Reported-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/file-posix.c