Source-Changes-HG archive

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

[src/trunk]: src/sys Regen.



details:   https://anonhg.NetBSD.org/src/rev/2debe4ec5dbe
branches:  trunk
changeset: 379985:2debe4ec5dbe
user:      dholland <dholland%NetBSD.org@localhost>
date:      Tue Jun 29 22:37:11 2021 +0000

description:
Regen.

diffstat:

 sys/kern/vnode_if.c                     |   43 ++++++++++-
 sys/rump/include/rump/rumpvnode_if.h    |    7 +-
 sys/rump/librump/rumpvfs/rumpvnode_if.c |   22 ++++-
 sys/sys/vnode_if.h                      |  122 +++++++++++++++++--------------
 4 files changed, 127 insertions(+), 67 deletions(-)

diffs (truncated from 662 to 300 lines):

diff -r 6ba2f7b94339 -r 2debe4ec5dbe sys/kern/vnode_if.c
--- a/sys/kern/vnode_if.c       Tue Jun 29 22:34:05 2021 +0000
+++ b/sys/kern/vnode_if.c       Tue Jun 29 22:37:11 2021 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: vnode_if.c,v 1.112 2020/05/18 08:30:06 hannken Exp $   */
+/*     $NetBSD: vnode_if.c,v 1.113 2021/06/29 22:37:11 dholland Exp $  */
 
 /*
  * Warning: DO NOT EDIT! This file is automatically generated!
  * (Modifications made here may easily be lost!)
  *
  * Created from the file:
- *     NetBSD: vnode_if.src,v 1.78 2019/10/11 08:04:52 hannken Exp
+ *     NetBSD: vnode_if.src,v 1.81 2021/06/29 22:34:08 dholland Exp
  * by the script:
- *     NetBSD: vnode_if.sh,v 1.69 2020/02/23 22:14:04 ad Exp
+ *     NetBSD: vnode_if.sh,v 1.70 2020/05/16 18:31:50 christos Exp
  */
 
 /*
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.112 2020/05/18 08:30:06 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vnode_if.c,v 1.113 2021/06/29 22:37:11 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -145,6 +145,40 @@ VOP_BWRITE(struct vnode *vp,
        return error;
 }
 
+const int vop_parsepath_vp_offsets[] = {
+       VOPARG_OFFSETOF(struct vop_parsepath_args,a_dvp),
+       VDESC_NO_OFFSET
+};
+const struct vnodeop_desc vop_parsepath_desc = {
+       VOP_PARSEPATH_DESCOFFSET,
+       "vop_parsepath",
+       0,
+       vop_parsepath_vp_offsets,
+       VDESC_NO_OFFSET,
+       VDESC_NO_OFFSET,
+       VDESC_NO_OFFSET,
+};
+int
+VOP_PARSEPATH(struct vnode *dvp,
+    const char *name,
+    size_t *retval)
+{
+       int error;
+       bool mpsafe;
+       struct vop_parsepath_args a;
+       struct mount *mp;
+       a.a_desc = VDESC(vop_parsepath);
+       a.a_dvp = dvp;
+       a.a_name = name;
+       a.a_retval = retval;
+       error = vop_pre(dvp, &mp, &mpsafe, FST_YES);
+       if (error)
+               return error;
+       error = (VCALL(dvp, VOFFSET(vop_parsepath), &a));
+       vop_post(dvp, mp, mpsafe, FST_YES);
+       return error;
+}
+
 const int vop_lookup_vp_offsets[] = {
        VOPARG_OFFSETOF(struct vop_lookup_v2_args,a_dvp),
        VDESC_NO_OFFSET
@@ -2000,6 +2034,7 @@ const struct vnodeop_desc * const vfs_op
        &vop_default_desc,      /* MUST BE FIRST */
 
        &vop_bwrite_desc,
+       &vop_parsepath_desc,
        &vop_lookup_desc,
        &vop_create_desc,
        &vop_mknod_desc,
diff -r 6ba2f7b94339 -r 2debe4ec5dbe sys/rump/include/rump/rumpvnode_if.h
--- a/sys/rump/include/rump/rumpvnode_if.h      Tue Jun 29 22:34:05 2021 +0000
+++ b/sys/rump/include/rump/rumpvnode_if.h      Tue Jun 29 22:37:11 2021 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: rumpvnode_if.h,v 1.34 2020/05/16 18:31:52 christos Exp $       */
+/*     $NetBSD: rumpvnode_if.h,v 1.35 2021/06/29 22:37:11 dholland Exp $       */
 
 /*
  * Warning: DO NOT EDIT! This file is automatically generated!
  * (Modifications made here may easily be lost!)
  *
  * Created from the file:
- *     NetBSD: vnode_if.src,v 1.78 2019/10/11 08:04:52 hannken Exp
+ *     NetBSD: vnode_if.src,v 1.81 2021/06/29 22:34:08 dholland Exp
  * by the script:
- *     NetBSD: vnode_if.sh,v 1.69 2020/02/23 22:14:04 ad Exp
+ *     NetBSD: vnode_if.sh,v 1.70 2020/05/16 18:31:50 christos Exp
  */
 
 /*
@@ -55,6 +55,7 @@ struct acl;
 #endif
 
 int RUMP_VOP_BWRITE(struct vnode *, struct buf *);
+int RUMP_VOP_PARSEPATH(struct vnode *, const char *, size_t *);
 int RUMP_VOP_LOOKUP(struct vnode *, struct vnode **, struct componentname *);
 int RUMP_VOP_CREATE(struct vnode *, struct vnode **, struct componentname *, 
     struct vattr *);
diff -r 6ba2f7b94339 -r 2debe4ec5dbe sys/rump/librump/rumpvfs/rumpvnode_if.c
--- a/sys/rump/librump/rumpvfs/rumpvnode_if.c   Tue Jun 29 22:34:05 2021 +0000
+++ b/sys/rump/librump/rumpvfs/rumpvnode_if.c   Tue Jun 29 22:37:11 2021 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: rumpvnode_if.c,v 1.34 2020/05/16 18:31:53 christos Exp $       */
+/*     $NetBSD: rumpvnode_if.c,v 1.35 2021/06/29 22:37:11 dholland Exp $       */
 
 /*
  * Warning: DO NOT EDIT! This file is automatically generated!
  * (Modifications made here may easily be lost!)
  *
  * Created from the file:
- *     NetBSD: vnode_if.src,v 1.78 2019/10/11 08:04:52 hannken Exp
+ *     NetBSD: vnode_if.src,v 1.81 2021/06/29 22:34:08 dholland Exp
  * by the script:
- *     NetBSD: vnode_if.sh,v 1.69 2020/02/23 22:14:04 ad Exp
+ *     NetBSD: vnode_if.sh,v 1.70 2020/05/16 18:31:50 christos Exp
  */
 
 /*
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rumpvnode_if.c,v 1.34 2020/05/16 18:31:53 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rumpvnode_if.c,v 1.35 2021/06/29 22:37:11 dholland Exp $");
 
 #include <sys/param.h>
 #include <sys/mount.h>
@@ -64,6 +64,20 @@ RUMP_VOP_BWRITE(struct vnode *vp,
 }
 
 int
+RUMP_VOP_PARSEPATH(struct vnode *dvp,
+    const char *name,
+    size_t *retval)
+{
+       int error;
+
+       rump_schedule();
+       error = VOP_PARSEPATH(dvp, name, retval);
+       rump_unschedule();
+
+       return error;
+}
+
+int
 RUMP_VOP_LOOKUP(struct vnode *dvp,
     struct vnode **vpp,
     struct componentname *cnp)
diff -r 6ba2f7b94339 -r 2debe4ec5dbe sys/sys/vnode_if.h
--- a/sys/sys/vnode_if.h        Tue Jun 29 22:34:05 2021 +0000
+++ b/sys/sys/vnode_if.h        Tue Jun 29 22:37:11 2021 +0000
@@ -1,13 +1,13 @@
-/*     $NetBSD: vnode_if.h,v 1.105 2020/05/16 18:31:53 christos Exp $  */
+/*     $NetBSD: vnode_if.h,v 1.106 2021/06/29 22:37:11 dholland Exp $  */
 
 /*
  * Warning: DO NOT EDIT! This file is automatically generated!
  * (Modifications made here may easily be lost!)
  *
  * Created from the file:
- *     NetBSD: vnode_if.src,v 1.78 2019/10/11 08:04:52 hannken Exp
+ *     NetBSD: vnode_if.src,v 1.81 2021/06/29 22:34:08 dholland Exp
  * by the script:
- *     NetBSD: vnode_if.sh,v 1.69 2020/02/23 22:14:04 ad Exp
+ *     NetBSD: vnode_if.sh,v 1.70 2020/05/16 18:31:50 christos Exp
  */
 
 /*
@@ -59,7 +59,17 @@ struct vop_bwrite_args {
 extern const struct vnodeop_desc vop_bwrite_desc;
 int VOP_BWRITE(struct vnode *, struct buf *);
 
-#define VOP_LOOKUP_DESCOFFSET 2
+#define VOP_PARSEPATH_DESCOFFSET 2
+struct vop_parsepath_args {
+       const struct vnodeop_desc *a_desc;
+       struct vnode *a_dvp;
+       const char *a_name;
+       size_t *a_retval;
+};
+extern const struct vnodeop_desc vop_parsepath_desc;
+int VOP_PARSEPATH(struct vnode *, const char *, size_t *);
+
+#define VOP_LOOKUP_DESCOFFSET 3
 struct vop_lookup_v2_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_dvp;
@@ -69,7 +79,7 @@ struct vop_lookup_v2_args {
 extern const struct vnodeop_desc vop_lookup_desc;
 int VOP_LOOKUP(struct vnode *, struct vnode **, struct componentname *);
 
-#define VOP_CREATE_DESCOFFSET 3
+#define VOP_CREATE_DESCOFFSET 4
 struct vop_create_v3_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_dvp;
@@ -81,7 +91,7 @@ extern const struct vnodeop_desc vop_cre
 int VOP_CREATE(struct vnode *, struct vnode **, struct componentname *, 
     struct vattr *);
 
-#define VOP_MKNOD_DESCOFFSET 4
+#define VOP_MKNOD_DESCOFFSET 5
 struct vop_mknod_v3_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_dvp;
@@ -93,7 +103,7 @@ extern const struct vnodeop_desc vop_mkn
 int VOP_MKNOD(struct vnode *, struct vnode **, struct componentname *, 
     struct vattr *);
 
-#define VOP_OPEN_DESCOFFSET 5
+#define VOP_OPEN_DESCOFFSET 6
 struct vop_open_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -103,7 +113,7 @@ struct vop_open_args {
 extern const struct vnodeop_desc vop_open_desc;
 int VOP_OPEN(struct vnode *, int, kauth_cred_t);
 
-#define VOP_CLOSE_DESCOFFSET 6
+#define VOP_CLOSE_DESCOFFSET 7
 struct vop_close_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -113,7 +123,7 @@ struct vop_close_args {
 extern const struct vnodeop_desc vop_close_desc;
 int VOP_CLOSE(struct vnode *, int, kauth_cred_t);
 
-#define VOP_ACCESS_DESCOFFSET 7
+#define VOP_ACCESS_DESCOFFSET 8
 struct vop_access_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -123,7 +133,7 @@ struct vop_access_args {
 extern const struct vnodeop_desc vop_access_desc;
 int VOP_ACCESS(struct vnode *, accmode_t, kauth_cred_t);
 
-#define VOP_ACCESSX_DESCOFFSET 8
+#define VOP_ACCESSX_DESCOFFSET 9
 struct vop_accessx_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -133,7 +143,7 @@ struct vop_accessx_args {
 extern const struct vnodeop_desc vop_accessx_desc;
 int VOP_ACCESSX(struct vnode *, accmode_t, kauth_cred_t);
 
-#define VOP_GETATTR_DESCOFFSET 9
+#define VOP_GETATTR_DESCOFFSET 10
 struct vop_getattr_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -143,7 +153,7 @@ struct vop_getattr_args {
 extern const struct vnodeop_desc vop_getattr_desc;
 int VOP_GETATTR(struct vnode *, struct vattr *, kauth_cred_t);
 
-#define VOP_SETATTR_DESCOFFSET 10
+#define VOP_SETATTR_DESCOFFSET 11
 struct vop_setattr_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -153,7 +163,7 @@ struct vop_setattr_args {
 extern const struct vnodeop_desc vop_setattr_desc;
 int VOP_SETATTR(struct vnode *, struct vattr *, kauth_cred_t);
 
-#define VOP_READ_DESCOFFSET 11
+#define VOP_READ_DESCOFFSET 12
 struct vop_read_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -164,7 +174,7 @@ struct vop_read_args {
 extern const struct vnodeop_desc vop_read_desc;
 int VOP_READ(struct vnode *, struct uio *, int, kauth_cred_t);
 
-#define VOP_WRITE_DESCOFFSET 12
+#define VOP_WRITE_DESCOFFSET 13
 struct vop_write_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -175,7 +185,7 @@ struct vop_write_args {
 extern const struct vnodeop_desc vop_write_desc;
 int VOP_WRITE(struct vnode *, struct uio *, int, kauth_cred_t);
 
-#define VOP_FALLOCATE_DESCOFFSET 13
+#define VOP_FALLOCATE_DESCOFFSET 14
 struct vop_fallocate_args {
        const struct vnodeop_desc *a_desc;
        struct vnode *a_vp;
@@ -185,7 +195,7 @@ struct vop_fallocate_args {
 extern const struct vnodeop_desc vop_fallocate_desc;
 int VOP_FALLOCATE(struct vnode *, off_t, off_t);
 
-#define VOP_FDISCARD_DESCOFFSET 14
+#define VOP_FDISCARD_DESCOFFSET 15



Home | Main Index | Thread Index | Old Index