diff options
author | kib <kib@FreeBSD.org> | 2008-09-20 19:49:15 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-09-20 19:49:15 +0000 |
commit | ef4f1dc9c70af87320df47334a3d15a86cad6994 (patch) | |
tree | a72e0fadde5e8c5d36ed389160b3c1399b2c4ada /sys/fs/tmpfs | |
parent | 570463af80d554804270a483126c2a0a8524af2e (diff) | |
download | FreeBSD-src-ef4f1dc9c70af87320df47334a3d15a86cad6994.zip FreeBSD-src-ef4f1dc9c70af87320df47334a3d15a86cad6994.tar.gz |
Initialize va_rdev to NODEV instead of 0 or VNOVAL in VOP_GETATTR().
NODEV is more appropriate when va_rdev doesn't have a meaningful value.
Submitted by: Jaakko Heinonen <jh saunalahti fi>
Suggested by: bde
Discussed on: freebsd-fs
MFC after: 1 month
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 3eb44de..fb84319 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -364,7 +364,7 @@ tmpfs_getattr(struct vop_getattr_args *v) vap->va_gen = node->tn_gen; vap->va_flags = node->tn_flags; vap->va_rdev = (vp->v_type == VBLK || vp->v_type == VCHR) ? - node->tn_rdev : VNOVAL; + node->tn_rdev : NODEV; vap->va_bytes = round_page(node->tn_size); vap->va_filerev = 0; |