Merge 1.8.0~pre4 packaging into master
[pkg-k5-afs_openafs.git] / src / afs / SOLARIS / osi_inode.h
blob0e37dc35346691b82dfa3978ac30b34c2c93f78f
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
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 */
11 * Inode information required for SOLARIS servers and salvager.
13 #ifndef _OSI_INODE_H_
14 #define _OSI_INODE_H_
16 #define BAD_IGET -1000
18 #define VICEMAGIC 0x84fa1cb6
20 /* These exist because HP requires more work to extract uid. */
21 #define DI_VICEP3(p) ( (p)->di_vicep3 )
22 #define I_VICE3(p) ( (p)->i_vicep3 )
24 #define di_vicep1 di_un . di_icom .ic_gen
25 #define di_vicep2 di_un . di_icom .ic_flags
26 #define di_vicep3 di_ic.ic_uid
27 #define di_vicemagic di_ic.ic_gid
29 #define i_vicep1 i_ic.ic_gen
30 #define i_vicep2 i_ic.ic_flags
31 #define i_vicep3 i_ic.ic_uid
32 #define i_vicemagic i_ic.ic_gid
34 #define IS_VICEMAGIC(ip) ((ip)->i_vicemagic == VICEMAGIC)
35 #define IS_DVICEMAGIC(dp) ((dp)->di_vicemagic == VICEMAGIC)
37 #define CLEAR_VICEMAGIC(ip) (ip)->i_vicemagic = (ip)->i_vicep3 = 0
38 #define CLEAR_DVICEMAGIC(dp) (dp)->di_vicemagic = (dp)->di_vicep3 = 0
40 #define AFS_SUN_UFS_CACHE 0
41 #ifdef AFS_HAVE_VXFS
42 #define AFS_SUN_VXFS_CACHE 1
43 #endif /* AFS_HAVE_VXFS */
45 #endif /* _OSI_INODE_H_ */