Date: Thu, 11 Jul 2002 08:00:07 -0700 (PDT) From: Brian Feldman <green@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 14091 for review Message-ID: <200207111500.g6BF0720034038@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=14091 Change 14091 by green@green_laptop_2 on 2002/07/11 07:59:09 Display the mount point and inode for corrupted labels. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#163 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#163 (text+ko) ==== @@ -936,16 +936,23 @@ if (error == 0) error = mac_update_vnode_from_externalized(vp, &extmac); if (error) { + struct vattr va; + + printf("Corrupted label on %s", + vp->v_mount->mnt_stat.f_mntonname); + if (VOP_GETATTR(vp, &va, curthread->td_ucred, curthread) == 0) + printf(" inum %ld", va.va_fileid); if (mac_debug_label_fallback) { - printf("Corrupted label, falling back.\n"); + printf(", falling back.\n"); mac_update_vnode_from_mount(vp, vp->v_mount); + error = 0; } else { - printf("Corrupted label\n"); + printf(".\n"); error = EPERM; } } - return (0); + return (error); } /* To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207111500.g6BF0720034038>