pmb.helpers.mount: Rename bind_blockdevice() to bind_file() (!1861)

bind_blockdevice() can be also used to mount --bind files,
rename it to bind_file().
This commit is contained in:
Minecrell 2020-01-20 13:27:40 +01:00 committed by Oliver Smith
parent f3dc6a55cf
commit f43d552039
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
4 changed files with 12 additions and 12 deletions

View file

@ -66,10 +66,10 @@ def bind(args, source, destination, create_folders=True, umount=False):
raise RuntimeError("Mount failed: " + source + " -> " + destination)
def bind_blockdevice(args, source, destination):
def bind_file(args, source, destination):
"""
Mount a blockdevice with the --bind option, and create the destination
file, if necessary.
Mount a file with the --bind option, and create the destination file,
if necessary.
"""
# Skip existing mountpoint
if ismount(destination):