From: Brian Behlendorf Date: Wed, 30 Jun 2010 17:47:36 +0000 (-0700) Subject: Linux-2.6.33 compat, O_DSYNC flag added X-Git-Tag: spl-0.5.0~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6801b7154ccd8df47564d0f888166f3da931f3ff;p=spl Linux-2.6.33 compat, O_DSYNC flag added Prior to linux-2.6.33 only O_DSYNC semantics were implemented and they used the O_SYNC flag. As of linux-2.6.33 this behavior was properly split in to O_SYNC and O_DSYNC respectively. --- diff --git a/include/sys/vnode.h b/include/sys/vnode.h index d3a74a7..09d8433 100644 --- a/include/sys/vnode.h +++ b/include/sys/vnode.h @@ -45,7 +45,14 @@ #define XVA_MAPSIZE 3 #define XVA_MAGIC 0x78766174 -#define O_DSYNC 040000000 +/* + * Prior to linux-2.6.33 only O_DSYNC semantics were implemented and + * they used the O_SYNC flag. As of linux-2.6.33 the this behavior + * was properly split in to O_SYNC and O_DSYNC respectively. + */ +#ifndef O_DSYNC +#define O_DSYNC O_SYNC +#endif #define FREAD 1 #define FWRITE 2