diff options
author | phk <phk@FreeBSD.org> | 2002-04-02 10:09:16 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-04-02 10:09:16 +0000 |
commit | fcdd7b2328a858f1c42fa6de4e984ab478390589 (patch) | |
tree | 9123e12c0c3e3a19bef5cabcb70e9345065d95eb /sys/geom | |
parent | f8a8a0601dddd9a2c4c28ed0f0e288c1cd6271c0 (diff) | |
download | FreeBSD-src-fcdd7b2328a858f1c42fa6de4e984ab478390589.zip FreeBSD-src-fcdd7b2328a858f1c42fa6de4e984ab478390589.tar.gz |
Initialize a field to cater for ata-raid
Diffstat (limited to 'sys/geom')
-rw-r--r-- | sys/geom/geom_disk.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/geom/geom_disk.c b/sys/geom/geom_disk.c index c02e8a5..7639083 100644 --- a/sys/geom/geom_disk.c +++ b/sys/geom/geom_disk.c @@ -186,6 +186,7 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct } dev = g_malloc(sizeof *dev, M_WAITOK | M_ZERO); dp->d_dev = dev; + dp->d_devsw = cdevsw; dev->si_devsw = cdevsw; dev->si_disk = dp; dev->si_udev = dkmakeminor(unit, WHOLE_DISK_SLICE, RAW_PART); |