OpenAFS
OpenAFS distributed network file system
|
00001 #ifndef _CM_FREELANCE_H 00002 #define _CM_FREELANCE_H 1 00003 00004 00005 typedef struct cm_localMountPoint { 00006 char* namep; 00007 char* mountPointStringp; 00008 unsigned int fileType; 00009 } cm_localMountPoint_t; 00010 00011 extern int cm_getNoLocalMountPoints(); 00012 extern long cm_InitLocalMountPoints(); 00013 extern int cm_getLocalMountPointChange(); 00014 extern int cm_reInitLocalMountPoints(); 00015 extern void cm_InitFreelance(); 00016 extern void cm_FreelanceShutdown(void); 00017 extern int cm_noteLocalMountPointChange(afs_int32 locked); 00018 extern long cm_FreelanceRemoveMount(char *toremove); 00019 extern long cm_FreelanceAddMount(char *filename, char *cellname, char *volume, int rw, cm_fid_t *fidp); 00020 extern long cm_FreelanceRemoveSymlink(char *toremove); 00021 extern long cm_FreelanceAddSymlink(char *filename, char *destination, cm_fid_t *fidp); 00022 extern long cm_FreelanceMountPointExists(char * filename, int prefix_ok); 00023 extern long cm_FreelanceSymlinkExists(char * filename, int prefix_ok); 00024 extern long cm_FreelanceFetchMountPointString(cm_scache_t *scp); 00025 extern long cm_FreelanceFetchFileType(cm_scache_t *scp); 00026 extern void cm_FreelanceImportCellServDB(void); 00027 00028 extern int cm_clearLocalMountPointChange(); 00029 extern int cm_FakeRootFid(cm_fid_t *fidp); 00030 00031 #define AFS_FREELANCE_INI "afs_freelance.ini" 00032 #define AFS_FAKE_ROOT_CELL_ID 0xFFFFFFFF 00033 #define AFS_FAKE_ROOT_VOL_ID 0xFFFFFFFF 00034 00035 extern time_t FakeFreelanceModTime; 00036 extern int cm_freelanceEnabled; 00037 extern int cm_freelanceImportCellServDB; 00038 extern int cm_freelanceDiscovery; 00039 #endif // _CM_FREELANCE_H