Bug 119515

Summary: Submount does not support 'unhide' mount option for cdroms
Product: [openSUSE] SUSE LINUX 10.0 Reporter: James Helferty <jlh>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description James Helferty 2005-09-29 19:54:15 UTC
I am attempting to specify "unhide" to subfs so it can be passed to iso9660. 
This is a requirement for copy protection to work for some titles in Cedega.

I started off by adding the unhide option as one would normally do so in
/etc/fstab, which didn't work.

Since HAL purports to support the various mount options through
storage.policy.mount_options.*, I attempted to add the following as
mountpoints.fdi in /usr/share/hal/fdi/95userpolicy as a workaround:

<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
    <device>
        <!-- optical drives -->
        <match key="block.device" string="/dev/hdc">
          <match key="volume.is_disc" bool="true">
            <merge key="storage.policy.mount_option.unhide" type="bool">true</merge>
          </match>
        </match>
    </device>
</deviceinfo>

This also didn't work.

I did a little digging in 9.3, since the source for 10 isn't yet on the FTP
sites.  From what I can tell, when subfs is enabled, all cdrom mounting is
handled by /etc/hal/device.d/90-block-subfs.hal.  Looking at the source for this
binary, it appears that the options passed to the mount command are hardcoded
depending on the media type.
Comment 1 James Helferty 2005-09-29 20:05:41 UTC
I should have said that I added that userpolicy file in my excursions in 9.3,
not 10.  (Kind of obvious since the directory doesn't exist. :)
Comment 2 James Helferty 2005-09-29 20:09:45 UTC
Actually, strike that, it's a 9.3 bug only.  Sigh..
Comment 3 Dr. Werner Fink 2005-09-30 09:33:00 UTC
>
> Actually, strike that, it's a 9.3 bug only.  Sigh..
>