From: Grigory Batalov <grisxa@mail.ru>
To: linux-msdos@vger.kernel.org
Subject: leavedos if floppy busy
Date: Fri, 16 May 2003 16:03:14 +0400 [thread overview]
Message-ID: <20030516160314.6d325f31.grisxa@mail.ru> (raw)
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
Hi!
I've found that if floppy is busy by running VMWare and I try
format it, than dosemu silently exits. There is message
in boot.log with -D9+d:
---
INT13: disk=0 ah=0x8 dp=0x83c1180
disk get parameters 0
INT13: disk=0 ah=0x18 dp=0x83c1180
disk: set media type 0 failed, 18 sectors, 80 tracks
...
INT13: disk=0 ah=0x3 dp=0x83c1180
ERROR: (disk) can't open /dev/fd0: Device or resource busy
leavedos(22|0x16) called - shutting down
---
Can we just ignore busy disk if it is floppy?
(See attachement)
--
Grigory Batalov
[-- Attachment #2: disks.diff --]
[-- Type: text/plain, Size: 753 bytes --]
--- src/base/misc/disks.c.orig 2003-05-16 14:41:05 +0400
+++ src/base/misc/disks.c 2003-05-16 14:48:08 +0400
@@ -686,14 +686,14 @@
if (dp->fdesc < 0) {
error("ERROR: (disk) can't open %s for read nor write: %s\n", dp->dev_name, strerror(errno));
/* In case we DO get more clever, we want to share that code */
- leavedos(22);
+ if (!dp->removeable) leavedos(22);
} else {
dp->rdonly = 1;
d_printf("(disk) can't open %s for read/write. Readonly used.\n", dp->dev_name);
}
} else {
d_printf("ERROR: (disk) can't open %s: %s\n", dp->dev_name, strerror(errno));
- leavedos(22);
+ if (!dp->removeable) leavedos(22);
}
}
else dp->rdonly = dp->wantrdonly;
next reply other threads:[~2003-05-16 12:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-16 12:03 Grigory Batalov [this message]
2003-05-16 12:13 ` leavedos if floppy busy Reinhard Karcher
-- strict thread matches above, loose matches on Subject: below --
2003-05-17 18:08 Stas Sergeev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030516160314.6d325f31.grisxa@mail.ru \
--to=grisxa@mail.ru \
--cc=linux-msdos@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox