mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 16:10:54 +00:00
libsysprof-analyze: ensure relative path on entry
This commit is contained in:
@ -161,6 +161,9 @@ sysprof_mount_namespace_find_device (SysprofMountNamespace *self,
|
|||||||
g_assert (SYSPROF_IS_MOUNT_NAMESPACE (self));
|
g_assert (SYSPROF_IS_MOUNT_NAMESPACE (self));
|
||||||
g_assert (SYSPROF_IS_MOUNT (mount));
|
g_assert (SYSPROF_IS_MOUNT (mount));
|
||||||
|
|
||||||
|
while (relative_path[0] == '/')
|
||||||
|
relative_path++;
|
||||||
|
|
||||||
mount_source = sysprof_mount_get_mount_source (mount);
|
mount_source = sysprof_mount_get_mount_source (mount);
|
||||||
subvolume = sysprof_mount_get_superblock_option (mount, "subvol");
|
subvolume = sysprof_mount_get_superblock_option (mount, "subvol");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user