[15251] in Athena Bugs

home help back first fref pref prev next nref lref last post

Re: sparc 8.1.7: floppy handling oddness

daemon@ATHENA.MIT.EDU (Mike Barker)
Sat Jul 12 13:04:06 1997

To: John Hawkinson <jhawk@MIT.EDU>
Cc: testers@MIT.EDU, bugs@MIT.EDU
In-Reply-To: Your message of "Fri, 11 Jul 1997 11:57:44 EDT."
             <199707111557.LAA01238@bobbi-harlow.MIT.EDU> 
Date: Sat, 12 Jul 1997 13:03:58 EDT
From: Mike Barker <mbarker@MIT.EDU>


I did some quick checking here with classic, sparc4, and sparc5
running a mix of 8.0 or 8.1.7 which indicates that "eject floppy"
works, and the table shown by "eject -n" does not include this
option. (sorry, I don't think I managed to get the full set, but I got
enough to be reasonably sure)

I suspect that the original problem was either peculiar to that disk
(I've had trouble with disks getting the sliding panel stuck in the
drive--which "ejects" but the disk doesn't come out) or with the
drive.

Basically, I think 
(1) that drive or floppy was quirky 
(2) "eject floppy" works fine 
(3) what the media_printaliases subroutine displays does not appear to
be an exhaustive list of possible names when vold is running, as
floppy and cdrom are not shown but are available.  

I hope that addresses most of the issues raised.

more on eject -n...

The subroutine that actually prints the media alias table is called
media_printaliases() in the volmgt library.  it depends on whether
vold is running or not as to exactly what list of aliases it returns.
However, with or without vold running, floppy seems to be accepted
and operated on.

(incidentally, cdrom falls into the same magic -- not listed as an
alias with vold running, but happily used)

with vold running:

null return from media_oldaliases
and here's the list as currently known
        fd -> floppy0
        fd0 -> floppy0
        fd1 -> floppy1
        diskette -> floppy0
        diskette0 -> floppy0
        diskette1 -> floppy1
        rdiskette -> floppy0
        rdiskette0 -> floppy0
        rdiskette1 -> floppy1
        cd -> cdrom0
        cd0 -> cdrom0
        cd1 -> cdrom1
        sr -> cdrom0
        sr0 -> cdrom0
        /dev/sr0 -> cdrom0
        /dev/rsr0 -> cdrom0

with vold turned off

media_oldaliases said:floppy -> /dev/rdiskette
and here's the list as currently known
        fd -> /dev/rdiskette
        fd0 -> /dev/rdiskette
        fd1 -> /dev/rdiskette1
        diskette -> /dev/rdiskette
        diskette0 -> /dev/rdiskette0
        diskette1 -> /dev/rdiskette1
        rdiskette -> /dev/rdiskette
        rdiskette0 -> /dev/rdiskette0
        rdiskette1 -> /dev/rdiskette1
        floppy -> /dev/rdiskette
        floppy0 -> /dev/rdiskette0
        floppy1 -> /dev/rdiskette1
        cd -> /dev/rdsk/c0t6d0s2
        cdrom -> /dev/rdsk/c0t6d0s2
        cd0 -> /dev/rdsk/c0t6d0s2
        sr -> /dev/rdsk/c0t6d0s2
        sr0 -> /dev/rdsk/c0t6d0s2
        /dev/sr0 -> /dev/rdsk/c0t6d0s2
        /dev/rsr0 -> /dev/rdsk/c0t6d0s2
        c0t6d0s2 -> /dev/rdsk/c0t6d0s2

Mike

home help back first fref pref prev next nref lref last post