From 2575d87824fbf5d0e1a5fcb3a1b49949d6fbe2ee Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 5 Jul 2012 18:16:09 -0400 Subject: [PATCH] Windows: Add cm_GetVolServerList cm_GetVolServerList() is a wrapper for cm_GetVolServers() that returns CM_ERROR_NOSUCHVOLUME if the server list cannot be obtained for the requested volume. Change-Id: I1ab21b3f6ca71507cc382738cb50f87e92ee2ce2 Reviewed-on: http://gerrit.openafs.org/7722 Reviewed-by: Chas Williams - CONTRACTOR Tested-by: BuildBot Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsd/cm_conn.c | 7 +++++++ src/WINNT/afsd/cm_conn.h | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 7774c1671f..1494e77c5b 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -210,6 +210,13 @@ void cm_InitReq(cm_req_t *reqp) reqp->startTime = GetTickCount(); } +long cm_GetVolServerList(cm_volume_t *volp, afs_uint32 volid, struct cm_user *userp, + struct cm_req *reqp, afs_uint32 *replicated, cm_serverRef_t ***serversppp) +{ + *serversppp = cm_GetVolServers(volp, volid, userp, reqp, replicated); + return (*serversppp ? 0 : CM_ERROR_NOSUCHVOLUME); +} + long cm_GetServerList(struct cm_fid *fidp, struct cm_user *userp, struct cm_req *reqp, afs_uint32 *replicated, cm_serverRef_t ***serversppp) { diff --git a/src/WINNT/afsd/cm_conn.h b/src/WINNT/afsd/cm_conn.h index ea5c0f5af1..4a1a6adb31 100644 --- a/src/WINNT/afsd/cm_conn.h +++ b/src/WINNT/afsd/cm_conn.h @@ -170,4 +170,9 @@ extern long cm_GetServerList(struct cm_fid *fidp, struct cm_user *userp, struct cm_req *reqp, afs_uint32 *replicated, cm_serverRef_t ***serversppp); +extern long cm_GetVolServerList(struct cm_volume *volp, afs_uint32 volid, + struct cm_user *userp, + struct cm_req *reqp, afs_uint32 *replicated, + cm_serverRef_t ***serversppp); + #endif /* OPENAFS_WINNT_AFSD_CM_CONN_H */