Re: [Qemu-block] [PULL 13/28] file-posix: Prepare permission code for fd switching

2019-03-15 Thread Kevin Wolf
Am 14.03.2019 um 18:27 hat Peter Maydell geschrieben: > On Tue, 12 Mar 2019 at 17:30, Kevin Wolf wrote: > > > > In order to be able to dynamically reopen the file read-only or > > read-write, depending on the users that are attached, we need to be able > > to switch to a different file descriptor

Re: [Qemu-block] [PULL 13/28] file-posix: Prepare permission code for fd switching

2019-03-14 Thread Peter Maydell
On Tue, 12 Mar 2019 at 17:30, Kevin Wolf wrote: > > In order to be able to dynamically reopen the file read-only or > read-write, depending on the users that are attached, we need to be able > to switch to a different file descriptor during the permission change. > > This interacts with reopen, wh

[Qemu-block] [PULL 13/28] file-posix: Prepare permission code for fd switching

2019-03-12 Thread Kevin Wolf
In order to be able to dynamically reopen the file read-only or read-write, depending on the users that are attached, we need to be able to switch to a different file descriptor during the permission change. This interacts with reopen, which also creates a new file descriptor and performs permissi