NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/46472: 5.1_STABLE/i386 panic after recent pull-ups



The following reply was made to PR kern/46472; it has been noted by GNATS.

From: "J. Hannken-Illjes" <hannken%eis.cs.tu-bs.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: jdbaker%mylinuxisp.com@localhost
Subject: Re: kern/46472: 5.1_STABLE/i386 panic after recent pull-ups
Date: Mon, 21 May 2012 18:20:59 +0200

 --Apple-Mail-4-680290231
 Content-Transfer-Encoding: 7bit
 Content-Type: text/plain;
        charset=us-ascii
 
 John,
 
 could you add this diff to src/sys/ufs/ufs/ufs_vnops.c and post the result.
 Before the panic two or three vnodes should be printed.
 
 The output from `mount -v' is interesting too.
 
 --
 Juergen Hannken-Illjes - hannken%eis.cs.tu-bs.de@localhost - TU Braunschweig 
(Germany)
 
 
 --Apple-Mail-4-680290231
 Content-Disposition: attachment;
        filename=ufs_vnops.diff
 Content-Type: application/octet-stream;
        name="ufs_vnops.diff"
 Content-Transfer-Encoding: 7bit
 
 Index: ufs_vnops.c
 ===================================================================
 RCS file: /cvsroot/src/sys/ufs/ufs/ufs_vnops.c,v
 retrieving revision 1.169.4.2
 diff -p -u -2 -r1.169.4.2 ufs_vnops.c
 --- ufs_vnops.c        19 May 2012 17:28:29 -0000      1.169.4.2
 +++ ufs_vnops.c        21 May 2012 16:17:27 -0000
 @@ -1672,6 +1672,10 @@ ufs_rename(void *v)
         */
        if (txp == NULL) {
 -              if (tdp->i_dev != ip->i_dev)
 +              if (tdp->i_dev != ip->i_dev) {
 +                      printf("tdp->i_dev != ip->i_dev\n");
 +                      VOP_PRINT(tdp);
 +                      VOP_PRINT(ip);
                        panic("rename: EXDEV");
 +              }
                /*
                 * Account for ".." in new directory.
 @@ -1721,6 +1725,11 @@ ufs_rename(void *v)
                VN_KNOTE(tdvp, NOTE_WRITE);
        } else {
 -              if (txp->i_dev != tdp->i_dev || txp->i_dev != ip->i_dev)
 +              if (txp->i_dev != tdp->i_dev || txp->i_dev != ip->i_dev) {
 +                      printf("txp->i_dev != tdp->i_dev || txp->i_dev != 
ip->i_dev\n");
 +                      VOP_PRINT(txp);
 +                      VOP_PRINT(tdp);
 +                      VOP_PRINT(ip);
                        panic("rename: EXDEV");
 +              }
                /*
                 * Short circuit rename(foo, foo).
 
 --Apple-Mail-4-680290231--
 


Home | Main Index | Thread Index | Old Index