Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Apr 2001 05:20:03 -0700 (PDT)
From:      Szilveszter Adam <sziszi@petra.hos.u-szeged.hu>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/25992: System hangs when read-only floppy has been mounted
Message-ID:  <200104301220.f3UCK3b94558@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

The following reply was made to PR kern/25992; it has been noted by GNATS.

From: Szilveszter Adam <sziszi@petra.hos.u-szeged.hu>
To: achilov@granch.ru
Cc: dd@FreeBSD.ORG, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/25992: System hangs when read-only floppy has been mounted
Date: Mon, 30 Apr 2001 14:14:43 +0200

 On Mon, Apr 30, 2001 at 05:51:45PM +0700, Rashid N. Achilov wrote:
 > On Sunday 29 April 2001 09:26, dd@FreeBSD.ORG wrote:
 > >  Are you mounting the floppy in read-only mode?  I.e., are you doing
 > >  `mount -r /dev/fd0 /mnt`?  If you're not specifying the ``-r'', then
 > >  I'm not surprised (I guess it should panic, not hang, though).  If you
 > >  are using ``-r'', then I can't reproduce this; I have a couple of
 > >  computers with read-only floppies in them (for tripwire).
 > 
 > Hang or panic - which difference? One result - reboot :-(
 
 Just as an aside. This problem has been with us forever. I can appreciate
 that the real UNIX gurus do not hurry to fix this one since they always
 know what to type and don't use floppies much anyway. (Neither do I.) But
 this does not mean that in this situation we should panic (or hang for that
 matter) Panics are for the situations where something is seriously wrong so
 much so, that we decide to give up instead of marching on and possibly
 producing non-sense results. But trying writing to a ro floppy should
 simply fail. Why is there an assumption that a floopy is always writeable
 unless indicated by -r otherwise? Would we try to write to (and
 subsequently panic or hang) a CD-ROM as well? That would be a serious flaw
 to me. While it is not the writing processes' business to know if that
 media the FS is mounted from is writeable, but the underlying layers
 certainly ought to know and act accordingly.
 
 BTW the behaviour has changed over time... at a time it was just a hang.
 Othertimes it was a panic. Sometimes it was even (gasp) a simple fail. 
 But this does not seem to be intentional, rather the by-product of other
 changes...
 
 Just like the fact that under 3.x one could mount mixed mode CDs on my
 machine, but since ad(4) came along, this is not possible. But this is
 unrelated, just grumping.
 
 -- 
 Regards:
 
 Szilveszter ADAM
 Szeged University
 Szeged Hungary

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104301220.f3UCK3b94558>