From ae0c1ec8f72abc7b43c1fed6860db12370093a0a Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 10 Jan 2000 12:04:27 +0000 Subject: Give vn_isdisk() a second argument where it can return a suitable errno. Suggested by: bde --- sys/dev/ccd/ccd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/dev/ccd') diff --git a/sys/dev/ccd/ccd.c b/sys/dev/ccd/ccd.c index 7109468..c2a960d 100644 --- a/sys/dev/ccd/ccd.c +++ b/sys/dev/ccd/ccd.c @@ -1603,10 +1603,8 @@ ccdlookup(path, p, vpp) goto bad; } - if (!vn_isdisk(vp)) { - error = ENOTBLK; + if (!vn_isdisk(vp, &error)) goto bad; - } #ifdef DEBUG if (ccddebug & CCDB_VNODE) -- cgit v1.1