OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 /* 00011 * Inode information required for SOLARIS servers and salvager. 00012 */ 00013 #ifndef _OSI_INODE_H_ 00014 #define _OSI_INODE_H_ 00015 00016 #define BAD_IGET -1000 00017 00018 #define VICEMAGIC 0x84fa1cb6 00019 00020 /* These exist because HP requires more work to extract uid. */ 00021 #define DI_VICEP3(p) ( (p)->di_vicep3 ) 00022 #define I_VICE3(p) ( (p)->i_vicep3 ) 00023 00024 #define di_vicep1 di_un . di_icom .ic_gen 00025 #define di_vicep2 di_un . di_icom .ic_flags 00026 #define di_vicep3 di_ic.ic_uid 00027 #define di_vicemagic di_ic.ic_gid 00028 00029 #define i_vicep1 i_ic.ic_gen 00030 #define i_vicep2 i_ic.ic_flags 00031 #define i_vicep3 i_ic.ic_uid 00032 #define i_vicemagic i_ic.ic_gid 00033 00034 #define IS_VICEMAGIC(ip) ((ip)->i_vicemagic == VICEMAGIC) 00035 #define IS_DVICEMAGIC(dp) ((dp)->di_vicemagic == VICEMAGIC) 00036 00037 #define CLEAR_VICEMAGIC(ip) (ip)->i_vicemagic = (ip)->i_vicep3 = 0 00038 #define CLEAR_DVICEMAGIC(dp) (dp)->di_vicemagic = (dp)->di_vicep3 = 0 00039 00040 #define AFS_SUN_UFS_CACHE 0 00041 #ifdef AFS_HAVE_VXFS 00042 #define AFS_SUN_VXFS_CACHE 1 00043 #endif /* AFS_HAVE_VXFS */ 00044 00045 #endif /* _OSI_INODE_H_ */