Bug 128825

Summary: wrong entry in /dev for pktcdvd
Product: [openSUSE] SUSE Linux 10.1 Reporter: Alexander Lavrinenko <lavrinenko_alex>
Component: HotplugAssignee: Kay Sievers <kasievers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: hare, wengel
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexander Lavrinenko 2005-10-17 20:08:23 UTC
Greetings! 
 
Seems that /dev entry for udftools is out of date. It should be an 
empty /dev/pktcdvd directory, while it is char special file: 
 
barracuda:/home/alex # l /dev/pktcdvd  
crw-rw----  1 root root 10, 62 Oct 17 22:02 /dev/pktcdvd  
barracuda:/home/alex #  
 
Of course, trying to use it fails: 
barracuda:/home/alex # pktsetup /dev/pktcdvd /dev/cdrom 
ioctl: Inappropriate ioctl for device 
barracuda:/home/alex # 
 
but after I deleted /dev/pktcdvd and created directory there instead, it 
works: 
barracuda:/home/alex # rm -f /dev/pktcdvd 
barracuda:/home/alex # mkdir /dev/pktcdvd 
barracuda:/home/alex # pktsetup udfcd /dev/hda 
barracuda:/home/alex # !mount 
mount -t udf /dev/pktcdvd/udfcd /mnt/ 
barracuda:/home/alex # l /dev/pktcdvd/ 
total 0 
drwxr-xr-x   2 root root      80 Oct 17 23:56 ./ 
drwxr-xr-x  12 root root   15900 Oct 17 23:56 ../ 
crw-r--r--   1 root root  10, 62 Oct 17 23:56 control 
brw-r-----   1 root root 252,  0 Oct 17 23:56 udfcd 
barracuda:/home/alex # df -h 
Filesystem            Size  Used Avail Use% Mounted on 
/dev/sda3              43G   23G   20G  55% / 
initramdevs           252M  104K  252M   1% /dev 
tmpfs                 252M   12K  252M   1% /dev/shm 
/dev/sda1              30G  8.9G   22G  30% /media/windows 
/dev/pktcdvd/udfcd    164M  7.2M  157M   5% /mnt 
barracuda:/home/alex # ls /mnt/ 
.  ..  MVTS300  lost+found  tps 
barracuda:/home/alex # umount /mnt/ 
 
Also I'd like to see initscripts support for UDF writing, and KDE support as 
well, asking me whether to mount (or actually do mount) inserted CD/DVD with 
UDF on it.
Comment 1 Kay Sievers 2005-10-19 13:18:04 UTC
Does adding this to the udev.rules file work?
  KERNEL=="pktcdvd", NAME="pktcdvd/control"
  KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%k"
Comment 2 Alexander Lavrinenko 2005-10-19 17:42:46 UTC
Will try day after, I have no access to the hardware this time.
Comment 3 Alexander Lavrinenko 2005-10-24 14:02:17 UTC
It's still uncertain how to use UDF. If I insert UDF disc it is not accessed via packet writing interface (i.e. I can't open file on it, modify it, and save).
Comment 4 Kay Sievers 2006-02-08 19:22:58 UTC
The udev rule is fixed. Closing the bug.