Author: kib
Date: Sun Nov  4 13:32:45 2012
New Revision: 242559
URL: http://svn.freebsd.org/changeset/base/242559

Log:
  Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.
  
  MFC after:    3 days

Modified:
  head/sys/kern/vfs_subr.c

Modified: head/sys/kern/vfs_subr.c
==============================================================================
--- head/sys/kern/vfs_subr.c    Sun Nov  4 13:32:26 2012        (r242558)
+++ head/sys/kern/vfs_subr.c    Sun Nov  4 13:32:45 2012        (r242559)
@@ -2893,6 +2893,8 @@ vn_printf(struct vnode *vp, const char *
                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 *
                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 *
                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));
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to