Re: [Qemu-devel] [PATCH 1/7] file-posix: Update open_flags in raw_set_perm()

2019-05-08 Thread Max Reitz
On 08.05.19 15:06, Kevin Wolf wrote: > Am 06.05.2019 um 21:47 hat Max Reitz geschrieben: >> 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 thoug

Re: [Qemu-devel] [PATCH 1/7] file-posix: Update open_flags in raw_set_perm()

2019-05-08 Thread Kevin Wolf
Am 06.05.2019 um 21:47 hat Max Reitz geschrieben: > 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 correc

[Qemu-devel] [PATCH 1/7] file-posix: Update open_flags in raw_set_perm()

2019-05-06 Thread Max Reitz
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 --- block/file-posix.