debugging, print out information on processes holding and waiting for lock
[unix-history] / usr / src / sys / ufs / ffs / ffs_vnops.c
index 15d9342..131c2ee 100644 (file)
@@ -14,7 +14,7 @@
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- *     @(#)ffs_vnops.c 7.27 (Berkeley) %G%
+ *     @(#)ffs_vnops.c 7.28 (Berkeley) %G%
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -1351,6 +1351,12 @@ ufs_print(vp)
        printf("tag VT_UFS, ino %d, on dev %d, %d%s\n", ip->i_number,
                major(ip->i_dev), minor(ip->i_dev),
                (ip->i_flag & ILOCKED) ? " (LOCKED)" : "");
        printf("tag VT_UFS, ino %d, on dev %d, %d%s\n", ip->i_number,
                major(ip->i_dev), minor(ip->i_dev),
                (ip->i_flag & ILOCKED) ? " (LOCKED)" : "");
+       if (ip->i_spare0 == 0)
+               return;
+       printf("\towner pid %d", ip->i_spare0);
+       if (ip->i_spare1)
+               printf(" waiting pid %d", ip->i_spare1);
+       printf("\n");
 }
 
 /*
 }
 
 /*