]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-disk: do not use mount --move (or --bind)
authorSage Weil <sage@inktank.com>
Fri, 14 Jun 2013 04:56:23 +0000 (21:56 -0700)
committerSage Weil <sage@inktank.com>
Fri, 14 Jun 2013 21:04:54 +0000 (14:04 -0700)
commite5ffe0d2484eb6cbcefcaeb5d52020b1130871a5
treea10d97ce07e6b6b1788d73ef63eb23980eb1a4d4
parentf3234c147e083f2904178994bc85de3d082e2836
ceph-disk: do not use mount --move (or --bind)

The kernel does not let you mount --move when the parent mount is
shared (see, e.g., https://bugzilla.redhat.com/show_bug.cgi?id=917008
for another person this also confused).  We can't use --bind either
since that (on RHEL at least) screws up /etc/mtab so that the final
result looks like

 /var/lib/ceph/tmp/mnt.HNHoXU /var/lib/ceph/osd/ceph-0 none rw,bind 0 0

Instead, mount the original dev in the final location and then umount
from the old location.

Signed-off-by: Sage Weil <sage@inktank.com>
src/ceph-disk