]> Git Repo - qemu.git/commit - block/file-posix.c
file-posix: Update open_flags in raw_set_perm()
authorMax Reitz <[email protected]>
Wed, 22 May 2019 17:03:45 +0000 (19:03 +0200)
committerKevin Wolf <[email protected]>
Tue, 18 Jun 2019 14:41:10 +0000 (16:41 +0200)
commit094e36394481fd2c8493cec2a7c026f342232f15
tree8fcf57cf3571ecfaef0858757707fcd25e4a8123
parentb23c580c946644b906af36e3f903b9fedd6ccd61
file-posix: Update open_flags in raw_set_perm()

raw_check_perm() + raw_set_perm() can change the flags associated with
the current FD.  If so, we have to update BDRVRawState.open_flags
accordingly.  Otherwise, we may keep reopening the FD even though the
current one already has the correct flags.

Signed-off-by: Max Reitz <[email protected]>
Reviewed-by: Kevin Wolf <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/file-posix.c
This page took 0.024189 seconds and 4 git commands to generate.