summaryrefslogtreecommitdiffstats
path: root/sys/dev/vn
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
committerphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
commit9c72381e09a5593df856423c995563779f7535e8 (patch)
tree3471f1e5faa7dd2bf47573f428c3a46114bac456 /sys/dev/vn
parenta261857e2d7ff67439a916b9f0b8db5e91302af0 (diff)
downloadFreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.zip
FreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.tar.gz
We don't need to pass the diskname argument all over the diskslice/label
code, we can find the name from any convenient dev_t
Diffstat (limited to 'sys/dev/vn')
-rw-r--r--sys/dev/vn/vn.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 979e617..f51efca 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -237,8 +237,7 @@ vnopen(dev_t dev, int flags, int mode, struct proc *p)
label.d_secperunit = vn->sc_size;
label.d_partitions[RAW_PART].p_size = vn->sc_size;
- return (dsopen("vn", dev, mode, 0, &vn->sc_slices,
- &label));
+ return (dsopen(dev, mode, 0, &vn->sc_slices, &label));
}
if (dkslice(dev) != WHOLE_DISK_SLICE ||
dkpart(dev) != RAW_PART ||
@@ -393,8 +392,7 @@ 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("vn", dev, cmd, data, flag,
- &vn->sc_slices);
+ error = dsioctl(dev, cmd, data, flag, &vn->sc_slices);
if (error != ENOIOCTL)
return (error);
}
OpenPOWER on IntegriCloud