qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] replace O_SYNC with O_FSYNC


From: G 3
Subject: Re: [Qemu-devel] [PATCH] replace O_SYNC with O_FSYNC
Date: Sat, 20 Jun 2009 20:41:43 -0400


On Jun 20, 2009, at 7:37 PM, Anthony Liguori wrote:

Jamie Lokier wrote:
If O_FSYNC and O_SYNC do the same thing, and O_SYNC is used anywhere,
there's no harm in this for portability:

    #if !defined(O_SYNC) && defined(O_FSYNC)
    #define O_SYNC O_FSYNC
    #endif

The patch assumes O_FSYNC is defined if O_SYNC isn't, which is wrong.


For what this patch is, it really isn't that important IMHO.

This is just a work around for a broken platform.


Even though you are correct, did you have to add the 'broken platform' remark?





reply via email to

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