The nova.virt.disk.vfs.localfs Module¶
-
class
VFSLocalFS(image, partition=None, imgdir=None)¶ Bases:
nova.virt.disk.vfs.api.VFSos.path.join() with safety check for injected file paths.
Join the supplied path components and make sure that the resulting path we are injecting into is within the mounted guest fs. Trying to be clever and specifying a path with ‘..’ in it will hit this safeguard.
-
append_file(path, content)¶
-
get_image_fs()¶
-
has_file(path)¶
-
make_path(path)¶
-
read_file(path)¶
-
replace_file(path, content)¶
-
set_ownership(path, user, group)¶
-
set_permissions(path, mode)¶
-
setup(mount=True)¶
-
teardown()¶
-