diff --git a/sys/fs/nfsclient/nfs_clport.c b/sys/fs/nfsclient/nfs_clport.c --- a/sys/fs/nfsclient/nfs_clport.c +++ b/sys/fs/nfsclient/nfs_clport.c @@ -521,6 +521,12 @@ sizeof (struct nfsvattr)); } + /* + * Force rdev to NODEV if the file is not a device node. + */ + if (!VATTR_ISDEV(vap)) + vap->va_rdev = NODEV; + /* * For NFSv4, the server's export may be a tree of file systems * where a fileno is a unique value within each file system.