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.
This commit is contained in:
Brian Behlendorf 2010-06-30 10:47:36 -07:00
parent 79a3bf130b
commit 6801b7154c
1 changed files with 8 additions and 1 deletions

View File

@ -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