From d689fae24fc1384a4bb68c65f97f9834da63c1c4 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Fri, 1 Feb 2013 04:09:01 +0000 Subject: [PATCH] hostdisk.device: Allow read-only block devices on Linux (ie /dev/cdrom) Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46432 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/all-unix/devs/hostdisk/hostdisk_host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/all-unix/devs/hostdisk/hostdisk_host.c b/arch/all-unix/devs/hostdisk/hostdisk_host.c index db8833a7bc..5bd5dee45c 100644 --- a/arch/all-unix/devs/hostdisk/hostdisk_host.c +++ b/arch/all-unix/devs/hostdisk/hostdisk_host.c @@ -101,7 +101,7 @@ ULONG Host_Open(struct unit *Unit) AROS_HOST_BARRIER err = *hdskBase->errnoPtr; - if (err == EBUSY) + if (err == EBUSY || err == EROFS) { /* This allows to work on Darwin, at least in read-only mode */ D(bug("hostdisk: EBUSY, retrying with read-only access\n", Unit->filename, Unit->file, err)); -- 2.11.4.GIT