Commit | Line | Data |
---|---|---|
805e021f CE |
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 | * osi_inode.h | |
11 | * | |
12 | * Inode information required for MACOS servers and salvager. | |
13 | */ | |
14 | #ifndef _OSI_INODE_H_ | |
15 | #define _OSI_INODE_H_ | |
16 | ||
17 | #define BAD_IGET -1000 | |
18 | ||
19 | #define VICEMAGIC 0x84fa1cb6 | |
20 | ||
21 | #define DI_VICEP3(p) ((p)->di_vicep3) | |
22 | #define I_VICEP3(p) ((p)->i_vicep3) | |
23 | ||
24 | #define i_vicemagic i_din.di_flags | |
25 | #define i_vicep1 i_din.di_gen | |
26 | #define i_vicep2 i_din.di_uid | |
27 | #define i_vicep3 i_din.di_gid | |
28 | #define i_vicep4 i_din.di_spare[0] /* not used */ | |
29 | ||
30 | #define di_vicemagic di_flags | |
31 | #define di_vicep1 di_gen | |
32 | #define di_vicep2 di_uid | |
33 | #define di_vicep3 di_gid | |
34 | #define di_vicep4 di_spare[0] /* not used */ | |
35 | ||
36 | #define IS_VICEMAGIC(ip) ((ip)->i_vicemagic == VICEMAGIC) | |
37 | #define IS_DVICEMAGIC(dp) ((dp)->di_vicemagic == VICEMAGIC) | |
38 | ||
39 | #define CLEAR_VICEMAGIC(ip) (ip)->i_vicemagic = 0 | |
40 | #define CLEAR_DVICEMAGIC(dp) (dp)->di_vicemagic = 0 | |
41 | ||
42 | #endif /* _OSI_INODE_H_ */ |