Bug 496520

Summary: can not write to dvd-ram with udf: UDF-fs Partition marked readonly; forcing readonly mount
Product: [openSUSE] openSUSE 11.1 Reporter: Moritz Franosch <mail>
Component: KernelAssignee: Wolfgang Engel <wolfgang.engel>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: jeffm
Version: Final   
Target Milestone: ---   
Hardware: i586   
OS: openSUSE 11.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dmesg output

Description Moritz Franosch 2009-04-20 15:47:25 UTC
User-Agent:       Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.10 (like Gecko) SUSE

After mounting a DVD-RAM with an UDF file system on it with

  mount -t udf -o rw,noatime,async /dev/sr0 /media/cdrom

the command 'mount' says

  ...
  /dev/sr0 on /media/cdrom type udf (rw,noexec,nosuid,nodev,noatime)

but

  touch /media/cdrom/a

fails with

  touch: cannot touch `/media/cdrom/a': Read-only file system

In /var/log/messages appears:
  Apr 20 16:37:30 cell1 kernel: UDF-fs: Partition marked readonly; forcing readonly mount
  Apr 20 16:37:30 cell1 kernel: UDF-fs INFO UDF: Mounting volume 'LinuxUDF', timestamp 2006/03/20 10:07 (1000)

This is the case with DVD-RAMs that have worked with Suse 10.2. Also, dvd-ram-control says

  dvd-ram-control -rdwr /dev/cdrom
  The disc is unprotected already.

So, although the disc appears to be unprotected, and 'mount' says it is mounted rw, it is in fact mounted read only. Either 'mount' should say it is mounted 'ro' or you should be able to write to it. Neither is the case, which is a bug.



Reproducible: Always

Steps to Reproduce:
1. Put DVD RAM with UDF filesystem in drive.
2. mount -t udf -o rw,noatime,async /dev/sr0 /media/cdrom
3. touch /media/cdrom/a

Actual Results:  
The 'touch' command fails, but should not.


Expected Results:  
A file /media/cdrom/a should be written.


Re-making the file system on the DVD with

  mkudffs --media-type=dvdram /dev/sr0

fixes the DVD-RAM and 'touch /media/cdrom/a' succeeds. So, apparently, the bug only occurs with certain DVD-RAMs or UDF file systems.
Comment 1 P 2009-11-25 08:37:09 UTC
Created attachment 329379 [details]
dmesg output
Comment 2 P 2009-11-25 08:47:34 UTC
Please excuse me and disregard the dmesg attachment. I was scribbling in the wrong bug. My bad.

Koos
Comment 3 Jeff Mahoney 2012-08-02 15:55:22 UTC
With the coming release of openSUSE 12.2, openSUSE kernel developers are focusing their efforts there. Reports against openSUSE 11.4 and prior will not get the attention needed to resolve them before openSUSE 12.2 is release and openSUSE 11.4 becomes unmaintained.

Please re-test with openSUSE 12.1 or openSUSE RC2+ and re-open with an updated Product if you still encounter your issue.

We apologize for this issue not getting the attention it deserves but we are focusing our resources in the area where they will have the most impact for our users.  We're working hard to make openSUSE 12.2 the best openSUSE release yet!