nfsfh.h revision 17680
117680Spst/*
217680Spst * $Header: nfsfh.h,v 1.4 95/10/19 20:27:44 leres Exp $
317680Spst *
417680Spst * nfsfh.h - NFS file handle definitions (for portable use)
517680Spst *
617680Spst * Jeffrey C. Mogul
717680Spst * Digital Equipment Corporation
817680Spst * Western Research Laboratory
917680Spst */
1017680Spst
1117680Spst/*
1217680Spst * Internal representation of dev_t, because different NFS servers
1317680Spst * that we might be spying upon use different external representations.
1417680Spst */
1517680Spsttypedef struct {
1617680Spst	u_int32_t Minor;	/* upper case to avoid clashing with macro names */
1717680Spst	u_int32_t Major;
1817680Spst} my_devt;
1917680Spst
2017680Spst#define	dev_eq(a,b)	((a.Minor == b.Minor) && (a.Major == b.Major))
2117680Spst
2217680Spst/*
2317680Spst * Many file servers now use a large file system ID.  This is
2417680Spst * our internal representation of that.
2517680Spst */
2617680Spsttypedef	struct {
2717680Spst	my_devt	fsid_dev;
2817680Spst	u_int32_t fsid_code;
2917680Spst} my_fsid;
3017680Spst
3117680Spst#define	fsid_eq(a,b)	((a.fsid_code == b.fsid_code) &&\
3217680Spst			 dev_eq(a.fsid_dev, b.fsid_dev))
3317680Spst
3417680Spstextern void Parse_fh(caddr_t *, my_fsid *, ino_t *, char **, char **, int);
35