diff options
author | sos <sos@FreeBSD.org> | 2001-01-07 16:48:56 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2001-01-07 16:48:56 +0000 |
commit | d30bf90c254868b4810b5f2c10103bda9e421f3d (patch) | |
tree | 93a1787b5b8ea0408d7fa6c5903c93b72135dae6 /sys/dev | |
parent | c64a2be70fb083f28ff734c23b53a9d6d264e808 (diff) | |
download | FreeBSD-src-d30bf90c254868b4810b5f2c10103bda9e421f3d.zip FreeBSD-src-d30bf90c254868b4810b5f2c10103bda9e421f3d.tar.gz |
On open try to close the drivetray and wait for drive ready.
Idea from PR24109 but implemented differently
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ata/atapi-cd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 2b96ce2..8c5a981 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -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; |