Module Name: src Committed By: pooka Date: Fri Jan 7 15:30:10 UTC 2011
Modified Files: src/lib/libp2k: p2k.c Log Message: in case unmount fails (it never should), do a full mountpoint dump To generate a diff of this commit: cvs rdiff -u -r1.51 -r1.52 src/lib/libp2k/p2k.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libp2k/p2k.c diff -u src/lib/libp2k/p2k.c:1.51 src/lib/libp2k/p2k.c:1.52 --- src/lib/libp2k/p2k.c:1.51 Fri Jan 7 11:15:30 2011 +++ src/lib/libp2k/p2k.c Fri Jan 7 15:30:09 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: p2k.c,v 1.51 2011/01/07 11:15:30 pooka Exp $ */ +/* $NetBSD: p2k.c,v 1.52 2011/01/07 15:30:09 pooka Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved. @@ -554,6 +554,13 @@ if (fs) { if (ukfs_release(fs, 0) != 0) { + struct statvfs svfsb; + + if (p2m->p2m_hasdebug + && p2k_fs_statvfs(pu, &svfsb) == 0) { + printf("\nSOFT UNMOUNT FAILED, MP INFO DUMP\n"); + rump_pub_vfs_mount_print(svfsb.f_mntonname, 1); + } ukfs_release(fs, UKFS_RELFLAG_FORCE); error = 0; }