OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/afs/DARWIN/osi_inode.h
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  * osi_inode.h
00011  *
00012  * Inode information required for MACOS servers and salvager.
00013  */
00014 #ifndef _OSI_INODE_H_
00015 #define _OSI_INODE_H_
00016 
00017 #define BAD_IGET        -1000
00018 
00019 #define VICEMAGIC       0x84fa1cb6
00020 
00021 #define DI_VICEP3(p) ((p)->di_vicep3)
00022 #define I_VICEP3(p) ((p)->i_vicep3)
00023 
00024 #define i_vicemagic     i_din.di_flags
00025 #define i_vicep1        i_din.di_gen
00026 #define i_vicep2        i_din.di_uid
00027 #define i_vicep3        i_din.di_gid
00028 #define i_vicep4        i_din.di_spare[0]       /* not used */
00029 
00030 #define di_vicemagic    di_flags
00031 #define di_vicep1       di_gen
00032 #define di_vicep2       di_uid
00033 #define di_vicep3       di_gid
00034 #define di_vicep4       di_spare[0]     /* not used */
00035 
00036 #define  IS_VICEMAGIC(ip)        ((ip)->i_vicemagic == VICEMAGIC)
00037 #define  IS_DVICEMAGIC(dp)       ((dp)->di_vicemagic == VICEMAGIC)
00038 
00039 #define  CLEAR_VICEMAGIC(ip)     (ip)->i_vicemagic = 0
00040 #define  CLEAR_DVICEMAGIC(dp)    (dp)->di_vicemagic = 0
00041 
00042 #endif /* _OSI_INODE_H_ */
 All Data Structures Files Functions Variables