Return ENXIO if there is no device.

This commit is contained in:
Poul-Henning Kamp 2000-01-02 15:16:17 +00:00
parent 8a579d74bf
commit e90d68c69c
2 changed files with 10 additions and 2 deletions
sys
fs/cd9660
isofs/cd9660

View File

@ -216,9 +216,13 @@ cd9660_mount(mp, path, data, ndp, p)
NDFREE(ndp, NDF_ONLY_PNBUF);
devvp = ndp->ni_vp;
if (devsw(devvp->v_rdev) == NULL) {
vrele(devvp);
return (ENXIO);
}
if (!vn_isdisk(devvp)) {
vrele(devvp);
return ENOTBLK;
return (ENOTBLK);
}
/*

View File

@ -216,9 +216,13 @@ cd9660_mount(mp, path, data, ndp, p)
NDFREE(ndp, NDF_ONLY_PNBUF);
devvp = ndp->ni_vp;
if (devsw(devvp->v_rdev) == NULL) {
vrele(devvp);
return (ENXIO);
}
if (!vn_isdisk(devvp)) {
vrele(devvp);
return ENOTBLK;
return (ENOTBLK);
}
/*