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
11 * Inode information required for AIX servers and salvager.
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 /* rsvrd[4] is in use in large files filesystems for file size. */
25 #define di_vicemagic di_rsrvd[0]
26 #define di_vicep1 di_rsrvd[1]
27 #define di_vicep2 di_rsrvd[2]
28 #define di_vicep3 di_rsrvd[3]
29 #define di_vicep4 di_rsrvd[4]
31 #define i_vicemagic i_dinode.di_vicemagic
32 #define i_vicep1 i_dinode.di_vicep1
33 #define i_vicep2 i_dinode.di_vicep2
34 #define i_vicep3 i_dinode.di_vicep3
35 #define i_vicep4 i_dinode.di_vicep4
37 #define IS_VICEMAGIC(ip) ((ip)->i_vicemagic == VICEMAGIC ? 1 : 0)
38 #define IS_DVICEMAGIC(dp) ((dp)->di_vicemagic == VICEMAGIC ? 1 : 0)
40 #define CLEAR_VICEMAGIC(ip) (ip)->i_vicemagic = 0
41 #define CLEAR_DVICEMAGIC(dp) (dp)->di_vicemagic = 0
43 #endif /* _OSI_INODE_H_ */