diff options
| author | mathrock <nathanael.i.burton.work@gmail.com> | 2013-03-17 01:26:53 -0400 |
|---|---|---|
| committer | mathrock <nathanael.i.burton.work@gmail.com> | 2013-03-17 01:26:53 -0400 |
| commit | dc3eb8e30d22085e8bad377f260f32ccde301933 (patch) | |
| tree | a780ccd5cddff9a3672b3fc0907c808b66197b63 | |
| parent | 9ee8c946f2cf0f541f14a25505ceaaac7c0a53cd (diff) | |
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
| -rwxr-xr-x | nova/virt/disk/api.py | 13 |
1 files changed, 0 insertions, 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.""" |
