Skip to content

Commit

Permalink
Remove unused virt.disk.api methods bind/unbind
Browse files Browse the repository at this point in the history
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
b883109). Remove them.

Fixes bug 1156127

Change-Id: I37b0344970415fe93faabd955b4b4db88de269db
  • Loading branch information
mathrock committed Mar 17, 2013
1 parent 9ee8c94 commit dc3eb8e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions nova/virt/disk/api.py
Expand Up @@ -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."""

Expand Down

0 comments on commit dc3eb8e

Please sign in to comment.