skyrope-mit-merge-hell-20040226
[openafs.git] / src / WINNT / client_exp / gui2fs.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
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
8  */
9
10 #ifndef __GUI2FS_H__
11 #define __GUI2FS_H__
12
13 #include "volume_inf.h"
14
15 void Flush(const CStringArray& files);
16 void FlushVolume(const CStringArray& files);
17 void WSCellCmd();
18 void WhichCell(CStringArray& files);
19 BOOL CheckVolumes();
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);
44 #endif //__GUI2FS_H__