Commit d3677011 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: expand all symlinks in device path

Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent 6e41a3c2
......@@ -528,6 +528,7 @@ void parse_device(dev_t dev)
struct stat st;
size_t len;
FILE *file;
char *real;
/* since v2.6.26 */
file = fopen("/proc/self/mountinfo", "r");
......@@ -560,6 +561,11 @@ old:
out:
free(buf);
fclose(file);
real = realpath(device, NULL);
if (real) {
free(device);
device = real;
}
}
#elif defined(__APPLE__) || defined(__OpenBSD__) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment