Bug 58391 - Locking the tray on optical drives doesn't work
Summary: Locking the tray on optical drives doesn't work
Status: NEW
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: io_other
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-17 10:55 UTC by sworddragon2
Modified: 2016-03-21 18:13 UTC (History)
1 user (show)

See Also:
Kernel Version: Ubuntu 3.9.0-2.6-generic 3.9.2
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description sworddragon2 2013-05-17 10:55:26 UTC
I'm trying to lock the tray of my optical drive to prevent any ejecting if I'm hitting the eject button. This is the current state:

root@ubuntu:~# cat /proc/sys/dev/cdrom/info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17

drive name:		sr0
drive speed:		102
drive # of slots:	1
Can close tray:		1
Can open tray:		1
Can lock tray:		1
Can change speed:	1
Can select disk:	0
Can read multisession:	1
Can read MCN:		1
Reports media changed:	1
Can play audio:		1
Can write CD-R:		1
Can write CD-RW:	1
Can read DVD:		1
Can write DVD-R:	1
Can write DVD-RAM:	1
Can read MRW:		1
Can write MRW:		1
Can write RAM:		1


root@ubuntu:~# cat /proc/sys/dev/cdrom/lock
1


On pressing the eject button the drive will still do an eject. I remember earlier my drive was successfully locked from an apllication so the entry 'Can lock tray:		1' seems to be correct.

Note You need to log in before you can comment on or make changes to this bug.