summaryrefslogtreecommitdiffstats
path: root/support/include
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2012-03-12 13:17:15 -0400
committerSteve Dickson <steved@redhat.com>2012-03-12 15:12:06 -0400
commit36931bf93d4316608c0f5935cf489c9b3d15e921 (patch)
tree8e826b2642de609d21684eedffddf27c1665c391 /support/include
parentbc3c8b3496598b6f7a2d0692f3351c3704cb4b9d (diff)
downloadnfs-utils-36931bf93d4316608c0f5935cf489c9b3d15e921.tar.gz
nfs-utils-36931bf93d4316608c0f5935cf489c9b3d15e921.tar.xz
nfs-utils-36931bf93d4316608c0f5935cf489c9b3d15e921.zip
exportfs: Stop racing exportfs on clusters
This problem can occur when multiple cluster services fail over at the same time, causing missing high-available exports. Having a lot of nfs-exports will trigger this issue easier. https://bugzilla.linux-nfs.org/show_bug.cgi?id=224 Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/include')
-rw-r--r--support/include/exportfs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/support/include/exportfs.h b/support/include/exportfs.h
index 01e87dd..99916e5 100644
--- a/support/include/exportfs.h
+++ b/support/include/exportfs.h
@@ -32,6 +32,10 @@ enum {
FSLOC_STUB
};
+#ifndef EXP_LOCKFILE
+#define EXP_LOCKFILE "/var/lib/nfs/export-lock"
+#endif
+
typedef struct mclient {
struct mclient * m_next;
char * m_hostname;