On open try to close the drivetray and wait for drive ready.
Idea from PR24109 but implemented differently
This commit is contained in:
parent
c64a2be70f
commit
d30bf90c25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user