Commit Graph

11 Commits

Author SHA1 Message Date
bouyer 80f0af1a00 Oups, complete braindamage yesterday. DIOCEJECT does the rigth thing for both
disks and CDs, it's just don't have to call DIOCLOCK before, unless we're
doing a forced eject: DIOCEJECT will check for device use and unlock the door
if allowed.
1999-03-26 09:14:58 +00:00
bouyer 3dcf0c67c3 Use CDIOCEJECT instead of DIOCEJECT for cdrom devices (this one allows
opening the tray without media). While I'm there add 'sd' to the
device list (so that I can eject my MO easily).
1999-03-25 16:50:51 +00:00
tron f02e2756d9 Remove program description from source code, it's already in "eject.1". 1999-02-18 20:02:43 +00:00
cjs 03cb143eab Remove mkdep source code from this file. (!) 1999-02-18 17:18:46 +00:00
tron a651e1a07b New improved "eject" command contributed by Chris Jones in PR bin/6988. 1999-02-17 22:59:14 +00:00
bouyer 425c994527 Take advantage of the recent changes to sd/cd and DIOCEJECT:
open the raw character device for nicknames (so that eject will open the
CD even without medias). Implement the raw_to_blk pathname conversion in
umount_mounted().
Create a new 'cdrom' type, add a '-l' switch which will cause a media load
on cdrom devices type.
Add 'sd0, sd1, sd2' nicknames to allow easy use with removable rewritable
disks (ZIP, jazz, MO, ...).
1999-02-08 16:35:33 +00:00
msaitoh 7b5f411e4a Don't print NULL characters on "eject -n". 1997-12-07 19:04:36 +00:00
mikel 77053262a2 add missing newline to usage string; from Manuel Bouyer in PR 4442 1997-11-07 09:01:29 +00:00
lukem b9d1fbcf87 WARNSify, fix .Nm usage, getopt returns -1 not EOF 1997-10-18 13:38:09 +00:00
thorpej 9ceb2e3fc2 Disks now share a common interface for "unlock" and "eject". Teach
eject(1) how to use it.  There is now a single eject_disk() rather
than eject_floppy(), eject_cdrom(), etc.
1996-01-30 18:35:47 +00:00
pk 764fa4b6ef Download from `netbsd-1-1' branch. 1995-10-22 16:48:52 +00:00