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 AIX 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 /* rsvrd[4] is in use in large files filesystems for file size. */ 00025 #define di_vicemagic di_rsrvd[0] 00026 #define di_vicep1 di_rsrvd[1] 00027 #define di_vicep2 di_rsrvd[2] 00028 #define di_vicep3 di_rsrvd[3] 00029 #define di_vicep4 di_rsrvd[4] 00030 00031 #define i_vicemagic i_dinode.di_vicemagic 00032 #define i_vicep1 i_dinode.di_vicep1 00033 #define i_vicep2 i_dinode.di_vicep2 00034 #define i_vicep3 i_dinode.di_vicep3 00035 #define i_vicep4 i_dinode.di_vicep4 00036 00037 #define IS_VICEMAGIC(ip) ((ip)->i_vicemagic == VICEMAGIC ? 1 : 0) 00038 #define IS_DVICEMAGIC(dp) ((dp)->di_vicemagic == VICEMAGIC ? 1 : 0) 00039 00040 #define CLEAR_VICEMAGIC(ip) (ip)->i_vicemagic = 0 00041 #define CLEAR_DVICEMAGIC(dp) (dp)->di_vicemagic = 0 00042 00043 #endif /* _OSI_INODE_H_ */