Source-Changes-HG archive

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

[src/trunk]: src/external/cddl/osnet/dist/uts/common/fs/zfs Initialize b_dev ...



details:   https://anonhg.NetBSD.org/src/rev/897d0b6c70d1
branches:  trunk
changeset: 1005203:897d0b6c70d1
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Dec 01 20:25:31 2019 +0000

description:
Initialize b_dev before passing buf to d_minphys (ldminphys needs this)

diffstat:

 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 75a3e7c90039 -r 897d0b6c70d1 external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c
--- a/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Sun Dec 01 20:24:47 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/fs/zfs/vdev_disk.c    Sun Dec 01 20:25:31 2019 +0000
@@ -244,6 +244,7 @@
                        } else {
                                pdk = NULL;
                        }
+                       buf.b_dev = vp->v_rdev;
                }
                if (pdk && pdk->dk_driver && pdk->dk_driver->d_minphys)
                        (*pdk->dk_driver->d_minphys)(&buf);



Home | Main Index | Thread Index | Old Index