Be sure not to overflow struct fid.

MFC after:	3 days
This commit is contained in:
pjd 2009-09-13 10:25:33 +00:00
parent b9fdb7868d
commit 876ea5bb9d

View File

@ -1149,6 +1149,8 @@ zfs_checkexp(vfs_t *vfsp, struct sockaddr *nam, int *extflagsp,
credanonp, numsecflavors, secflavors));
}
CTASSERT(SHORT_FID_LEN <= sizeof(struct fid));
CTASSERT(LONG_FID_LEN <= sizeof(struct fid));
static int
zfs_fhtovp(vfs_t *vfsp, fid_t *fidp, vnode_t **vpp)