Bug 491222 - RFE: support "bind mounts" .... ?
RFE: support "bind mounts" .... ?
Product: Fedora
Classification: Fedora
Component: DeviceKit-disks (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: David Zeuthen
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-03-19 17:46 EDT by Tom London
Modified: 2013-03-05 22:58 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-04-07 13:13:48 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Tom London 2009-03-19 17:46:48 EDT
Description of problem:
Feel free to close if this makes no sense (or if it this "already works that way").

Can the "new device recognition/mounting" stack support requests for "bind" mounts?

I previously had this in /etc/fstab:
LABEL=extra   /mnt/extra           ext3   defaults,noatime,nodiratime       0 0
/mnt/extra/tbl          /home/tbl/Music/more    none    defaults,bind   0 0

This actually mounted from a partition that was encrypted with the same passphrase as the root partition, so it got mounted early in the boot.

With the "new stuff", I commented these lines out of /etc/fstab, entered the passphrase into my gnome-keyring, and made sure I had the "internal" authorizations.  And it "just worked".  [Also made booting about 8-10 seconds faster....]

The problem is that nothing "replaced" the bind-mount, so I had to replace it with a symbolic link.  But that is not completely satisfactory, as they do not behave exactly the same (e.g., rsync, SELinux labeling, ...).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
Actual results:

Expected results:

Additional info:
Comment 1 David Zeuthen 2009-04-07 13:13:48 EDT
So if I understand correctly you are basically asking for a bind mount (say /home/tbl/Music/more on /mnt/extra/tbl) to be set up whenever a specific device is mounted (e.g. a device is mounted on, say, /mnt/extra).

I don't think DeviceKit-disks or anything in the stack above should be doing that.

If you want this behavior you need to write some custom write some udev rules (or a small daemon listening to changes on things like /proc/self/mountinfo) to setup/teardown your bind mount. Or something else.

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