summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorshishir gowda <shishirng@gluster.com>2011-03-22 05:44:21 +0000
committerVijay Bellur <vijay@dev.gluster.com>2011-03-22 06:04:30 -0700
commit450875b04c1f5375c04bfdaa3c6b6709ca9dafe3 (patch)
treec1bf972d6dca704b7b9503f4b3e9c1485695c04c /libglusterfs/src
parent9947b5946033c2751abe454efe4c9fd1a7ae7d0b (diff)
Solaris: redefine O_DIRECTORY flag to the correct value
O_DIRECTORY is not supported on non-linux systems. By defining it as 0, the check in qr_open always fails with error ENOTDIR. We need to document the limiation of not supporting O_DIRECTORY flag when solaris is used as a backend. Signed-off-by: shishir gowda <shishirng@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 2566 (NFS read hangs when arequal-checksum script is run) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2566
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/glusterfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h
index c911a88c7e5..ea0c6d50b8f 100644
--- a/libglusterfs/src/glusterfs.h
+++ b/libglusterfs/src/glusterfs.h
@@ -61,7 +61,7 @@
#ifndef O_DIRECTORY
/* FreeBSD does not need O_DIRECTORY */
-#define O_DIRECTORY 0
+#define O_DIRECTORY 0200000
#endif
#ifndef EBADFD