Re: [Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-14 Thread Yi Zhang
On 2019-01-14 at 22:31:45 -0500, Michael S. Tsirkin wrote: > On Wed, Jan 02, 2019 at 01:26:34PM +0800, Zhang Yi wrote: > > This option controls will mmap the memory backend file with MAP_SYNC flag, > > which can ensure filesystem metadata consistent even after a system crash > > or power failure, i

Re: [Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-14 Thread Michael S. Tsirkin
On Wed, Jan 02, 2019 at 01:26:34PM +0800, Zhang Yi wrote: > This option controls will mmap the memory backend file with MAP_SYNC flag, > which can ensure filesystem metadata consistent even after a system crash > or power failure, if MAP_SYNC flag is supported by the host kernel(Linux > kernel 4.15

Re: [Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-14 Thread Michael S. Tsirkin
On Tue, Jan 15, 2019 at 11:13:35AM +0800, Yi Zhang wrote: > On 2019-01-14 at 17:39:38 -0200, Eduardo Habkost wrote: > > On Wed, Jan 02, 2019 at 01:26:34PM +0800, Zhang Yi wrote: > > > This option controls will mmap the memory backend file with MAP_SYNC flag, > > > which can ensure filesystem metada

Re: [Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-14 Thread Yi Zhang
On 2019-01-14 at 17:39:38 -0200, Eduardo Habkost wrote: > On Wed, Jan 02, 2019 at 01:26:34PM +0800, Zhang Yi wrote: > > This option controls will mmap the memory backend file with MAP_SYNC flag, > > which can ensure filesystem metadata consistent even after a system crash > > or power failure, if M

Re: [Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-14 Thread Eduardo Habkost
On Wed, Jan 02, 2019 at 01:26:34PM +0800, Zhang Yi wrote: > This option controls will mmap the memory backend file with MAP_SYNC flag, > which can ensure filesystem metadata consistent even after a system crash > or power failure, if MAP_SYNC flag is supported by the host kernel(Linux > kernel 4.15

[Qemu-devel] [PATCH V8 5/5] hostmem-file: add 'sync' option

2019-01-01 Thread Zhang Yi
This option controls will mmap the memory backend file with MAP_SYNC flag, which can ensure filesystem metadata consistent even after a system crash or power failure, if MAP_SYNC flag is supported by the host kernel(Linux kernel 4.15 and later) and the backend is a file supporting DAX (e.g., file o