From 5fb04a376e6d5ba940e66507e4a615f4e94116e6 Mon Sep 17 00:00:00 2001 From: Fred Isaman Date: Thu, 22 Feb 2007 15:48:53 +1100 Subject: Extend the exportfs interface to pass fslocations info into the kernel. Extend exportfs interface to pass fslocations info into the kernel, using syntax modelled after AIX. Adds "refer=" and "replicas=" options to /etc/exports to enable use of the kernel fslocation code. Signed-off-by: Fred Isaman Signed-off-by: Kevin Coffman Signed-off-by: Neil Brown --- support/include/exportfs.h | 7 +++++++ support/include/nfslib.h | 2 ++ 2 files changed, 9 insertions(+) (limited to 'support/include') diff --git a/support/include/exportfs.h b/support/include/exportfs.h index 10f38c7..458611b 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -23,6 +23,13 @@ enum { MCL_MAXTYPES }; +enum { + FSLOC_NONE = 0, + FSLOC_REFER, + FSLOC_REPLICA, + FSLOC_STUB +}; + typedef struct mclient { struct mclient * m_next; char m_hostname[NFSCLNT_IDMAX+1]; diff --git a/support/include/nfslib.h b/support/include/nfslib.h index 13a89da..c085029 100644 --- a/support/include/nfslib.h +++ b/support/include/nfslib.h @@ -80,6 +80,8 @@ struct exportent { int e_nsqgids; int e_fsid; char * e_mountpoint; + int e_fslocmethod; + char * e_fslocdata; char * e_uuid; }; -- cgit