[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 2/4] block: use fdatasync instead of fsync
From: |
Blue Swirl |
Subject: |
Re: [Qemu-devel] [PATCH 2/4] block: use fdatasync instead of fsync |
Date: |
Tue, 1 Sep 2009 18:59:46 +0300 |
On Mon, Aug 31, 2009 at 11:17 PM, Christoph Hellwig<address@hidden> wrote:
>
> If we are flushing the caches for our image files we only care about the
> data (including the metadata required for accessing it) but not things
> like timestamp updates. So use fdatasync instead of fsync to implement
> the flush operations.
> - fsync(s->fd);
> + fdatasync(s->fd);
There is no fdatasync outside of Linux, not in OpenBSD and mingw32 at
least. But you could add a probe for it to configure.
- Re: [Qemu-devel] [PATCH 2/4] block: use fdatasync instead of fsync,
Blue Swirl <=