From dc3eb8e30d22085e8bad377f260f32ccde301933 Mon Sep 17 00:00:00 2001 From: mathrock Date: Sun, 17 Mar 2013 01:26:53 -0400 Subject: Remove unused virt.disk.api methods bind/unbind The bind and unbind methods were only used by the old LXC attach/detach volume code which was removed in https://review.openstack.org/17861 (commit b8831091a8d097bb55a0e65c3af254a8bfa88811). Remove them. Fixes bug 1156127 Change-Id: I37b0344970415fe93faabd955b4b4db88de269db --- nova/virt/disk/api.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/nova/virt/disk/api.py b/nova/virt/disk/api.py index e8ecbbd8a..e1af0bfdd 100755 --- a/nova/virt/disk/api.py +++ b/nova/virt/disk/api.py @@ -165,19 +165,6 @@ def can_resize_fs(image, size, use_cow=False): return True -def bind(src, target, instance_name): - """Bind device to a filesystem.""" - if src: - utils.execute('touch', target, run_as_root=True) - utils.execute('mount', '-o', 'bind', src, target, - run_as_root=True) - - -def unbind(target): - if target: - utils.execute('umount', target, run_as_root=True) - - class _DiskImage(object): """Provide operations on a disk image file.""" -- cgit