New commands: 'mkmountpoint' and 'rmmountpoint'
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 15 Jul 2009 22:12:02 +0000 (23:12 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 15 Jul 2009 22:12:02 +0000 (23:12 +0100)
commit7428b0a70caed014d0cb4126fe8a77432d8957c6
treeac205ce3daeddff9129e4d7bc7c01eb62eaa1fdc
parent7fc3faabc71621a9d8b429d15327955f20757080
New commands: 'mkmountpoint' and 'rmmountpoint'

These specialized commands are used to create additional mountpoints
before mounting filesystems.  They are only used where you want to
mount several unrelated or read-only filesystems together, and need
additional care to use correctly.

Here is how to use these calls to unpack the "Russian doll" nest
of a Fedora 11 live CD:

 add-ro Fedora-11-i686-Live.iso
 run
 mkmountpoint /cd
 mkmountpoint /squash
 mkmountpoint /ext3
 mount /dev/sda /cd
 mount-loop /cd/LiveOS/squashfs.img /squash
 mount-loop /squash/LiveOS/ext3fs.img /ext3

The inner filesystem is now unpacked under the /ext3 mountpoint.
daemon/mount.c
src/MAX_PROC_NR
src/generator.ml