diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-12-12 17:43:12 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-12-12 17:43:12 +0000 |
commit | b9fcd4a616a421eb0143f12eb21c651d6106efa9 (patch) | |
tree | 952a5368591001b1a73231c2fbac5f833f22a476 | |
parent | a5aa0913bd326313b1501d053a8b3b7344623ebd (diff) |
Look for disk devices rather than bdevs.
Approved by: grog
Notes
Notes:
svn path=/head/; revision=54506
-rw-r--r-- | sys/dev/vinum/vinumio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index af07fa3a7cd8..aec769655096 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -76,13 +76,13 @@ open_drive(struct drive *drive, struct proc *p, int verbose) drive->devicename, drive->vp->v_usecount); } - if (drive->vp->v_type != VBLK) { /* only consider block devices */ + if (!vn_isdisk(drive->vp)) { /* only consider block devices */ VOP_UNLOCK(drive->vp, 0, drive->p); close_drive(drive); drive->lasterror = ENOTBLK; if (verbose) log(LOG_WARNING, - "vinum open_drive %s: Not a block device\n", + "vinum open_drive %s: Not a disk device\n", drive->devicename); return ENOTBLK; } |