Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/fs/lib/libzfs Now that the auto-loading zfs bug has...



details:   https://anonhg.NetBSD.org/src/rev/71f94240c7c3
branches:  trunk
changeset: 785344:71f94240c7c3
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 10 04:24:16 2013 +0000

description:
Now that the auto-loading zfs bug has been fixed, the loading failed because
the devsw node was busied here. Since we load the devsw only for the purpose
of creating the device node in our virtual filesystem, detach it after we
are done so that the real module can reload it.

diffstat:

 sys/rump/fs/lib/libzfs/component.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 286b45c1867e -r 71f94240c7c3 sys/rump/fs/lib/libzfs/component.c
--- a/sys/rump/fs/lib/libzfs/component.c        Sun Mar 10 04:01:49 2013 +0000
+++ b/sys/rump/fs/lib/libzfs/component.c        Sun Mar 10 04:24:16 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: component.c,v 1.5 2011/03/10 22:11:05 wiz Exp $        */
+/*     $NetBSD: component.c,v 1.6 2013/03/10 04:24:16 christos Exp $   */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.5 2011/03/10 22:11:05 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: component.c,v 1.6 2013/03/10 04:24:16 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -53,4 +53,5 @@
        if ((error = rump_vfs_makeonedevnode(S_IFCHR,
            "/dev/zfs", cmaj, 0)) != 0)
                panic("cannot create zfs dev nodes: %d", error);
+       devsw_detach(&zfs_bdevsw, &zfs_cdevsw);
 }



Home | Main Index | Thread Index | Old Index