Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Switch to vn_bdev_open* functions.



details:   https://anonhg.NetBSD.org/src/rev/0bcdfe3fa916
branches:  trunk
changeset: 847050:0bcdfe3fa916
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Dec 08 12:14:40 2019 +0000

description:
Switch to vn_bdev_open* functions.

diffstat:

 sys/dev/ccd.c                      |  6 +++---
 sys/dev/cgd.c                      |  6 +++---
 sys/dev/dm/dm_pdev.c               |  8 ++++----
 sys/dev/raidframe/rf_copyback.c    |  8 ++++----
 sys/dev/raidframe/rf_disks.c       |  8 ++++----
 sys/dev/raidframe/rf_reconstruct.c |  8 ++++----
 6 files changed, 22 insertions(+), 22 deletions(-)

diffs (181 lines):

diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/ccd.c
--- a/sys/dev/ccd.c     Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/ccd.c     Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ccd.c,v 1.180 2019/08/07 00:38:01 pgoyette Exp $       */
+/*     $NetBSD: ccd.c,v 1.181 2019/12/08 12:14:40 mlelstv Exp $        */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.180 2019/08/07 00:38:01 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.181 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1222,7 +1222,7 @@
 #endif
                        error = pathbuf_copyin(cpp[i], &pb);
                        if (error == 0) {
-                               error = dk_lookup(pb, l, &vpp[i]);
+                               error = vn_bdev_openpath(pb, &vpp[i], l);
                        }
                        pathbuf_destroy(pb);
                        if (error != 0) {
diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/cgd.c
--- a/sys/dev/cgd.c     Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/cgd.c     Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgd.c,v 1.116 2018/01/23 22:42:29 pgoyette Exp $ */
+/* $NetBSD: cgd.c,v 1.117 2019/12/08 12:14:40 mlelstv Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.116 2018/01/23 22:42:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.117 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -782,7 +782,7 @@
        if (ret != 0) {
                return ret;
        }
-       ret = dk_lookup(pb, l, &vp);
+       ret = vn_bdev_openpath(pb, &vp, l);
        pathbuf_destroy(pb);
        if (ret != 0) {
                return ret;
diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/dm/dm_pdev.c
--- a/sys/dev/dm/dm_pdev.c      Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/dm/dm_pdev.c      Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/*        $NetBSD: dm_pdev.c,v 1.18 2019/12/07 15:28:39 tkusumi Exp $      */
+/*        $NetBSD: dm_pdev.c,v 1.19 2019/12/08 12:14:40 mlelstv Exp $      */
 
 /*
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.18 2019/12/07 15:28:39 tkusumi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dm_pdev.c,v 1.19 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -116,10 +116,10 @@
                kmem_free(dmp, sizeof(dm_pdev_t));
                return NULL;
        }
-       error = dk_lookup(dev_pb, curlwp, &dmp->pdev_vnode);
+       error = vn_bdev_openpath(dev_pb, &dmp->pdev_vnode, curlwp);
        pathbuf_destroy(dev_pb);
        if (error) {
-               aprint_debug("%s: dk_lookup on device: %s (error %d)\n",
+               aprint_debug("%s: lookup on device: %s (error %d)\n",
                    __func__, dev_name, error);
                mutex_exit(&dm_pdev_mutex);
                kmem_free(dmp, sizeof(dm_pdev_t));
diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/raidframe/rf_copyback.c
--- a/sys/dev/raidframe/rf_copyback.c   Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/raidframe/rf_copyback.c   Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_copyback.c,v 1.52 2019/10/10 03:43:59 christos Exp $        */
+/*     $NetBSD: rf_copyback.c,v 1.53 2019/12/08 12:14:40 mlelstv Exp $ */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -38,7 +38,7 @@
  ****************************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_copyback.c,v 1.52 2019/10/10 03:43:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_copyback.c,v 1.53 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -144,11 +144,11 @@
                       ENOMEM);
                return;
        }
-       retcode = dk_lookup(dev_pb, curlwp, &vp);
+       retcode = vn_bdev_openpath(dev_pb, &vp, curlwp);
        pathbuf_destroy(dev_pb);
 
        if (retcode) {
-               printf("raid%d: copyback: dk_lookup on device: %s failed: %d!\n",
+               printf("raid%d: copyback: open device: %s failed: %d!\n",
                       raidPtr->raidid, raidPtr->Disks[fcol].devname,
                       retcode);
 
diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/raidframe/rf_disks.c
--- a/sys/dev/raidframe/rf_disks.c      Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/raidframe/rf_disks.c      Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_disks.c,v 1.91 2019/02/09 03:34:00 christos Exp $   */
+/*     $NetBSD: rf_disks.c,v 1.92 2019/12/08 12:14:40 mlelstv Exp $    */
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -60,7 +60,7 @@
  ***************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.91 2019/02/09 03:34:00 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_disks.c,v 1.92 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <dev/raidframe/raidframevar.h>
 
@@ -604,10 +604,10 @@
                       diskPtr->devname);
                return ENOMEM;
        }
-       error = dk_lookup(pb, curlwp, &vp);
+       error = vn_bdev_openpath(pb, &vp, curlwp);
        pathbuf_destroy(pb);
        if (error) {
-               printf("dk_lookup on device: %s failed!\n", diskPtr->devname);
+               printf("open device: %s failed!\n", diskPtr->devname);
                if (error == ENXIO) {
                        /* the component isn't there... must be dead :-( */
                        diskPtr->status = rf_ds_failed;
diff -r 3bc05c8070a2 -r 0bcdfe3fa916 sys/dev/raidframe/rf_reconstruct.c
--- a/sys/dev/raidframe/rf_reconstruct.c        Sun Dec 08 11:53:54 2019 +0000
+++ b/sys/dev/raidframe/rf_reconstruct.c        Sun Dec 08 12:14:40 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rf_reconstruct.c,v 1.123 2019/10/10 03:43:59 christos Exp $    */
+/*     $NetBSD: rf_reconstruct.c,v 1.124 2019/12/08 12:14:40 mlelstv Exp $     */
 /*
  * Copyright (c) 1995 Carnegie-Mellon University.
  * All rights reserved.
@@ -33,7 +33,7 @@
  ************************************************************/
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.123 2019/10/10 03:43:59 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_reconstruct.c,v 1.124 2019/12/08 12:14:40 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/time.h>
@@ -443,12 +443,12 @@
        if (pb == NULL) {
                retcode = ENOMEM;
        } else {
-               retcode = dk_lookup(pb, curlwp, &vp);
+               retcode = vn_bdev_openpath(pb, &vp, curlwp);
                pathbuf_destroy(pb);
        }
 
        if (retcode) {
-               printf("raid%d: rebuilding: dk_lookup on device: %s failed: %d!\n",raidPtr->raidid,
+               printf("raid%d: rebuilding: open device: %s failed: %d!\n",raidPtr->raidid,
                       raidPtr->Disks[col].devname, retcode);
 
                /* the component isn't responding properly...



Home | Main Index | Thread Index | Old Index