Bug 58391

Summary: Locking the tray on optical drives doesn't work
Product: IO/Storage Reporter: sworddragon2
Component: OtherAssignee: io_other
Status: NEW ---    
Severity: normal CC: szg00000
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: Ubuntu 3.9.0-2.6-generic 3.9.2 Subsystem:
Regression: No Bisected commit-id:

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.