diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-10 15:09:34 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2022-08-19 14:56:57 +0200 |
commit | 1a981e9b6efb0bbc0881f5ed1f17900e9c669f48 (patch) | |
tree | 8d737759c64d799b1001e95d87a4654719558ea2 /lib/metadata | |
parent | 718e38d5faf3a3ca23690d2f4203df1df65eba77 (diff) | |
download | lvm2-1a981e9b6efb0bbc0881f5ed1f17900e9c669f48.tar.gz |
devices: drop double // from sysfs path
dm_sysfs_dir() comes internally as /sys/.
Diffstat (limited to 'lib/metadata')
-rw-r--r-- | lib/metadata/vdo_manip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/metadata/vdo_manip.c b/lib/metadata/vdo_manip.c index 0db401537..779883d03 100644 --- a/lib/metadata/vdo_manip.c +++ b/lib/metadata/vdo_manip.c @@ -148,7 +148,7 @@ static int _sysfs_get_kvdo_value(const char *dm_name, const struct dm_info *dmin char temp[64]; int fd, size, r = 0; - if (dm_snprintf(path, sizeof(path), "%s/block/dm-%d/vdo/%s", + if (dm_snprintf(path, sizeof(path), "%sblock/dm-%d/vdo/%s", dm_sysfs_dir(), dminfo->minor, vdo_param) < 0) { log_debug("Failed to build kvdo path."); return 0; |