2 * Copyright 2000, International Business Machines Corporation and others.
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
13 #include "volume_inf.h"
15 void Flush(const CStringArray& files);
16 void FlushVolume(const CStringArray& files);
18 void WhichCell(CStringArray& files);
20 void SetCacheSize(LONG nNewCacheSize);
21 void RemoveMountCmd(const CStringArray& files);
22 void WhereIs(CStringArray& files);
23 CString GetAfsError(int code, const char *filename = 0);
24 void CleanACL(CStringArray& names);
25 BOOL GetRights(const CString& strDir, CStringArray& strNormal, CStringArray& strNegative);
26 BOOL SaveACL(const CString& strCellName, const CString& strDir, const CStringArray& normal, const CStringArray& negative);
27 BOOL CopyACL(const CString& strToDir, const CStringArray& normal, const CStringArray& negative, BOOL bClear);
28 BOOL ListMount(CStringArray& files);
29 BOOL MakeMount(const CString& strDir, const CString& strVolName, const CString& strCellName, BOOL bRW);
30 BOOL RemoveMount(CStringArray& files);
31 BOOL RemoveSymlink(const char *);
32 BOOL GetVolumeInfo(CString strFile, CVolInfo& volInfo);
33 BOOL SetVolInfo(CVolInfo& volInfo);
34 enum WHICH_CELLS { LOCAL_CELL = 0, SPECIFIC_CELL = 1, ALL_CELLS = 2 };
35 BOOL CheckServers(const CString& strCellName, WHICH_CELLS nCellsToCheck, BOOL bFast);
36 BOOL GetTokenInfo(CStringArray& tokenInfo);
37 BOOL IsPathInAfs(const CHAR *strPath);
38 int GetCellName(char *baseNamep, struct afsconf_cell *infop);
39 long fs_StripDriveLetter(const char *inPathp, char *outPathp, long outSize);
40 long fs_ExtractDriveLetter(const char *inPathp, char *outPathp);
41 BOOL IsSymlink(const char * true_name);
42 UINT MakeSymbolicLink(const char *,const char *);
43 void ListSymbolicLinkPath(const char *strName,char *strPath,UINT nlenPath);