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/0b2c43e0899d
branches:  trunk
changeset: 967168:0b2c43e0899d
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 8e94684985d5 -r 0b2c43e0899d 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