nfsfh.h revision 26183
187866Ssheldonh/* 287866Ssheldonh * $Header: nfsfh.h,v 1.5 96/08/20 14:33:23 leres Exp $ 387866Ssheldonh * 487866Ssheldonh * nfsfh.h - NFS file handle definitions (for portable use) 587866Ssheldonh * 687866Ssheldonh * Jeffrey C. Mogul 787866Ssheldonh * Digital Equipment Corporation 887866Ssheldonh * Western Research Laboratory 987866Ssheldonh */ 1087866Ssheldonh 1187866Ssheldonh/* 1287866Ssheldonh * Internal representation of dev_t, because different NFS servers 1387866Ssheldonh * that we might be spying upon use different external representations. 1487866Ssheldonh */ 1587866Ssheldonhtypedef struct { 1687866Ssheldonh u_int32_t Minor; /* upper case to avoid clashing with macro names */ 1787866Ssheldonh u_int32_t Major; 1887866Ssheldonh} my_devt; 1987866Ssheldonh 2087866Ssheldonh#define dev_eq(a,b) ((a.Minor == b.Minor) && (a.Major == b.Major)) 2187866Ssheldonh 2287866Ssheldonh/* 2387866Ssheldonh * Many file servers now use a large file system ID. This is 2487866Ssheldonh * our internal representation of that. 2587866Ssheldonh */ 2687866Ssheldonhtypedef struct { 2787866Ssheldonh my_devt Fsid_dev; /* XXX avoid name conflict with AIX */ 2887866Ssheldonh u_int32_t fsid_code; 2987866Ssheldonh} my_fsid; 3087866Ssheldonh 3187866Ssheldonh#define fsid_eq(a,b) ((a.fsid_code == b.fsid_code) &&\ 3288282Ssheldonh dev_eq(a.fsid_dev, b.fsid_dev)) 3387866Ssheldonh 3487866Ssheldonhextern void Parse_fh(caddr_t *, int, my_fsid *, ino_t *, char **, char **, int); 3587866Ssheldonh