Re: [systemd-devel] [PATCH v4] Bootchart: use /proc/pid/mountinfo for root bdev

2014-12-04 Thread Lennart Poettering
On Fri, 31.10.14 16:01, Timofey Titovets (nefelim...@gmail.com) wrote: > > +void get_rootbdev(char *rootbdev) { > +FILE *file = fopen("/proc/self/mountinfo", "r"); > +char mnt_point[PATH_MAX]; > +char mnt_source[PATH_MAX]; > +char t[256]; // Trash > +while

[systemd-devel] [PATCH v4] Bootchart: use /proc/pid/mountinfo for root bdev

2014-10-31 Thread Timofey Titovets
Good time of day, list. I have try to fix "Fixme" in svg.c: /* FIXME: this works only in the simple case */ // By default function try to get only root=/dev/* I rewrite to parse /proc/self/mountinfo This only support root device like /dev/???* I can't support LVM/Luks & etc, i'm not using these s