summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-04-30 15:14:34 +0000
committerbde <bde@FreeBSD.org>1995-04-30 15:14:34 +0000
commit8467ec16eaeb1a6204277b7382fdcc1a3d1992e3 (patch)
tree6b9982cf25f308a500e758bd62cf249a1ccd16c2 /sys/dev/vn
parent842728512148d19d2e8e020150941744f5f41eac (diff)
downloadFreeBSD-src-8467ec16eaeb1a6204277b7382fdcc1a3d1992e3.zip
FreeBSD-src-8467ec16eaeb1a6204277b7382fdcc1a3d1992e3.tar.gz
Change dsioctl() interface to allow DIOCSYNCSLICEINFO to update the caller's
slice pointer and to print the device name in error messages.
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 189bb0e..310b8e5 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -403,8 +403,9 @@ vnioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
IFOPT(vn,VN_LABELS) {
if (vn->sc_slices != NULL) {
- error = dsioctl(dev, cmd, data, flag, vn->sc_slices,
- vnstrategy, (ds_setgeom_t *)NULL);
+ error = dsioctl("vn", dev, cmd, data, flag,
+ &vn->sc_slices, vnstrategy,
+ (ds_setgeom_t *)NULL);
if (error != -1)
return (error);
}
OpenPOWER on IntegriCloud