Source-Changes-HG archive

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

[src/trunk]: src/sys/ntfs ntfs_unmount(): make the first 'vflush failed' prin...



details:   https://anonhg.NetBSD.org/src/rev/b28805be9a86
branches:  trunk
changeset: 503608:b28805be9a86
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Feb 10 14:28:51 2001 +0000

description:
ntfs_unmount(): make the first 'vflush failed' printf a debug message; this
        happens fairly commonly if e.g. some files are still opened
        then the unmount is attempted
        * if the second vflush() (including system vnodes) fails, we should
          probably panic, it's too serious; for now, just add a comment

diffstat:

 sys/ntfs/ntfs_vfsops.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r eaebc53eaeee -r b28805be9a86 sys/ntfs/ntfs_vfsops.c
--- a/sys/ntfs/ntfs_vfsops.c    Sat Feb 10 14:08:45 2001 +0000
+++ b/sys/ntfs/ntfs_vfsops.c    Sat Feb 10 14:28:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vfsops.c,v 1.31 2001/01/22 12:17:37 jdolecek Exp $        */
+/*     $NetBSD: ntfs_vfsops.c,v 1.32 2001/02/10 14:28:51 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -643,7 +643,7 @@
        dprintf(("ntfs_unmount: vflushing...\n"));
        error = vflush(mp,NULLVP,flags | SKIPSYSTEM);
        if (error) {
-               printf("ntfs_unmount: vflush failed: %d\n",error);
+               dprintf(("ntfs_unmount: vflush failed: %d\n",error));
                return (error);
        }
 
@@ -658,8 +658,10 @@
 
        /* vflush system vnodes */
        error = vflush(mp,NULLVP,flags);
-       if (error)
+       if (error) {
+               /* XXX should this be panic() ? */
                printf("ntfs_unmount: vflush failed(sysnodes): %d\n",error);
+       }
 
        /* Check if the type of device node isn't VBAD before
         * touching v_specinfo.  If the device vnode is revoked, the



Home | Main Index | Thread Index | Old Index