-/* $OpenBSD: bio.c,v 1.17 2015/08/26 22:28:57 deraadt Exp $ */
+/* $OpenBSD: bio.c,v 1.18 2023/11/09 14:07:18 dlg Exp $ */
/*
* Copyright (c) 2002 Niklas Hallqvist. All rights reserved.
return (ENOENT);
break;
- case BIOCINQ:
- case BIOCDISK:
- case BIOCVOL:
- case BIOCALARM:
- case BIOCBLINK:
- case BIOCSETSTATE:
- case BIOCCREATERAID:
- case BIOCDELETERAID:
- case BIOCDISCIPLINE:
- case BIOCPATROL:
+ default:
bio = (struct bio *)addr;
if (!bio_validate(bio->bio_cookie))
return (ENOENT);
- return (bio_delegate_ioctl(
- (struct bio_mapping *)bio->bio_cookie, cmd, addr));
- default:
- return (ENXIO);
+ error = bio_delegate_ioctl(
+ (struct bio_mapping *)bio->bio_cookie, cmd, addr);
+ break;
}
+
return (0);
}