On open try to close the drivetray and wait for drive ready.

Idea from PR24109 but implemented differently
This commit is contained in:
sos 2001-01-07 16:48:56 +00:00
parent c64a2be70f
commit d30bf90c25

View File

@ -517,6 +517,8 @@ acdopen(dev_t dev, int flags, int fmt, struct proc *p)
if (!(cdp = dev->si_drv1))
return ENXIO;
acd_eject(cdp, 1);
if (flags & FWRITE) {
if (count_dev(dev) > 1)
return EBUSY;