qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH] Substitute O_DSYNC with O_SYNC or O_FSYNC when


From: Christoph Hellwig
Subject: [Qemu-devel] Re: [PATCH] Substitute O_DSYNC with O_SYNC or O_FSYNC when needed.
Date: Thu, 2 Jul 2009 10:48:48 +0200
User-agent: Mutt/1.3.28i

On Wed, Jul 01, 2009 at 01:28:32PM -0400, G 3 wrote:
> This patch should be what you want.
> 
> commit b32354139556d1a807d04aa54ed82610e0f4507a
> Author: John Arbuckle <address@hidden>
> Date:   Wed Jul 1 13:24:37 2009 -0400
> 
>     Substitute O_DSYNC with O_SYNC or O_FSYNC when needed.
> 
>     Signed-off-by: John Arbuckle <address@hidden>

Thanks, looks good to me,


Reviewed-by: Christoph Hellwig <address@hidden>

> diff --git a/block/raw-posix.c b/block/raw-posix.c
> index 8b1e67c..17338ee 100644
> --- a/block/raw-posix.c
> +++ b/block/raw-posix.c
> @@ -81,7 +81,11 @@
> 
>  /* OS X does not have O_DSYNC */
>  #ifndef O_DSYNC
> +#ifdef O_SYNC
>  #define O_DSYNC O_SYNC
> +#elif defined(O_FSYNC)
> +#define O_DSYNC O_FSYNC
> +#endif
>  #endif
---end quoted text---




reply via email to

[Prev in Thread] Current Thread [Next in Thread]