summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-11-04 13:32:45 +0000
committerkib <kib@FreeBSD.org>2012-11-04 13:32:45 +0000
commitf8b34c9be8cbdb04363ea85620c3887ca03a7438 (patch)
treedebceafede83ba824cc7bf54246bee669a6b5c07
parent84d617582f332d392fc3a1ad7a2b6a5b6fb175df (diff)
downloadFreeBSD-src-f8b34c9be8cbdb04363ea85620c3887ca03a7438.zip
FreeBSD-src-f8b34c9be8cbdb04363ea85620c3887ca03a7438.tar.gz
Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.
MFC after: 3 days
-rw-r--r--sys/kern/vfs_subr.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f616b7c..376de36 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -2893,6 +2893,8 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
strlcat(buf, "|VV_ISTTY", sizeof(buf));
if (vp->v_vflag & VV_NOSYNC)
strlcat(buf, "|VV_NOSYNC", sizeof(buf));
+ if (vp->v_vflag & VV_ETERNALDEV)
+ strlcat(buf, "|VV_ETERNALDEV", sizeof(buf));
if (vp->v_vflag & VV_CACHEDLABEL)
strlcat(buf, "|VV_CACHEDLABEL", sizeof(buf));
if (vp->v_vflag & VV_TEXT)
@@ -2909,9 +2911,11 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
strlcat(buf, "|VV_DELETED", sizeof(buf));
if (vp->v_vflag & VV_MD)
strlcat(buf, "|VV_MD", sizeof(buf));
- flags = vp->v_vflag & ~(VV_ROOT | VV_ISTTY | VV_NOSYNC |
+ if (vp->v_vflag & VV_FORCEINSMQ)
+ strlcat(buf, "|VV_FORCEINSMQ", sizeof(buf));
+ flags = vp->v_vflag & ~(VV_ROOT | VV_ISTTY | VV_NOSYNC | VV_ETERNALDEV |
VV_CACHEDLABEL | VV_TEXT | VV_COPYONWRITE | VV_SYSTEM | VV_PROCDEP |
- VV_NOKNOTE | VV_DELETED | VV_MD);
+ VV_NOKNOTE | VV_DELETED | VV_MD | VV_FORCEINSMQ);
if (flags != 0) {
snprintf(buf2, sizeof(buf2), "|VV(0x%lx)", flags);
strlcat(buf, buf2, sizeof(buf));
@@ -2924,12 +2928,14 @@ vn_printf(struct vnode *vp, const char *fmt, ...)
strlcat(buf, "|VI_DOOMED", sizeof(buf));
if (vp->v_iflag & VI_FREE)
strlcat(buf, "|VI_FREE", sizeof(buf));
+ if (vp->v_iflag & VI_ACTIVE)
+ strlcat(buf, "|VI_ACTIVE", sizeof(buf));
if (vp->v_iflag & VI_DOINGINACT)
strlcat(buf, "|VI_DOINGINACT", sizeof(buf));
if (vp->v_iflag & VI_OWEINACT)
strlcat(buf, "|VI_OWEINACT", sizeof(buf));
flags = vp->v_iflag & ~(VI_MOUNT | VI_AGE | VI_DOOMED | VI_FREE |
- VI_DOINGINACT | VI_OWEINACT);
+ VI_ACTIVE | VI_DOINGINACT | VI_OWEINACT);
if (flags != 0) {
snprintf(buf2, sizeof(buf2), "|VI(0x%lx)", flags);
strlcat(buf, buf2, sizeof(buf));
OpenPOWER on IntegriCloud