summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2003-03-13 09:12:17 +0000
committersos <sos@FreeBSD.org>2003-03-13 09:12:17 +0000
commit64228bbbc70b981a7340cccbf235f5e197c02fc4 (patch)
tree177af1468eeca8e7e4ecaf8089f6160d82aada3d
parent7a1ba579b82dcb71745d622c66077470a6102a16 (diff)
downloadFreeBSD-src-64228bbbc70b981a7340cccbf235f5e197c02fc4.zip
FreeBSD-src-64228bbbc70b981a7340cccbf235f5e197c02fc4.tar.gz
Remove the check for more than one open if one is a write op.
This allows using DVD+RW and DVD-RW as random storage, provided the 32K blocksize is honoured for DVD-RW (DVD+RW has built in read-modify-write).
-rw-r--r--sys/dev/ata/atapi-cd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c
index 88072fc..e93372a 100644
--- a/sys/dev/ata/atapi-cd.c
+++ b/sys/dev/ata/atapi-cd.c
@@ -504,11 +504,6 @@ acdopen(dev_t dev, int flags, int fmt, struct thread *td)
if (!cdp)
return ENXIO;
- if (flags & FWRITE) {
- if (count_dev(dev) > 1)
- return EBUSY;
- }
-
/* wait if drive is not finished loading the medium */
while (timeout--) {
struct atapi_reqsense *sense = cdp->device->result;
OpenPOWER on IntegriCloud