qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Substitute O_DSYNC with O_FSYNC as needed.
       [not found] <4a5b8c54.8753f10a.7315.5fd8SMTPIN_ADDED@mx.google.com>
@ 2009-07-13 19:42 ` G 3
  2009-07-13 20:05   ` Anthony Liguori
  0 siblings, 1 reply; 2+ messages in thread
From: G 3 @ 2009-07-13 19:42 UTC (permalink / raw)
  To: qemu-devel

This will allow raw-posix.c to compile on systems that don't have 
O_SYNC defined.

  Signed-off-by: John Arbuckle <programmingkidx@gmail.com>

---
  block/raw-posix.c |    5 +++++
  1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/block/raw-posix.c b/block/raw-posix.c
index 8b1e67c..d542591 100644
--- a/block/raw-posix.c
+++ b/block/raw-posix.c
@@ -81,8 +81,13 @@

  /* 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
+

  /* Approximate O_DIRECT with O_DSYNC if O_DIRECT isn't available */
  #ifndef O_DIRECT
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Substitute O_DSYNC with O_FSYNC as needed.
  2009-07-13 19:42 ` [Qemu-devel] [PATCH] Substitute O_DSYNC with O_FSYNC as needed G 3
@ 2009-07-13 20:05   ` Anthony Liguori
  0 siblings, 0 replies; 2+ messages in thread
From: Anthony Liguori @ 2009-07-13 20:05 UTC (permalink / raw)
  To: G 3; +Cc: qemu-devel

G 3 wrote:
> This will allow raw-posix.c to compile on systems that don't have 
> O_SYNC defined.
>
>  Signed-off-by: John Arbuckle <programmingkidx@gmail.com>

This is already committed as 1c27a8b35ed2736a0542983facbe861d44785a44

Regards,

Anthony Liguori

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-13 20:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4a5b8c54.8753f10a.7315.5fd8SMTPIN_ADDED@mx.google.com>
2009-07-13 19:42 ` [Qemu-devel] [PATCH] Substitute O_DSYNC with O_FSYNC as needed G 3
2009-07-13 20:05   ` Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).