From 450875b04c1f5375c04bfdaa3c6b6709ca9dafe3 Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Tue, 22 Mar 2011 05:44:21 +0000 Subject: 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 Signed-off-by: Vijay Bellur BUG: 2566 (NFS read hangs when arequal-checksum script is run) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2566 --- libglusterfs/src/glusterfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit