On Fri, Sep 24, 2010 at 12:06, <[email protected]> wrote:
> From: Harald Hoyer <[email protected]>
>
> btrfs returns a major(0) for its device, so try to find the mountpoint and
> real device.
> + fp = fopen("/proc/self/mountinfo", "r");
> + if (fp == NULL)
> + return NULL;
> + while (fscanf(fp, "%*s %*s %i:%i %*s %1024s %*s %*s %*s %1024s
> %*[^\n]", &maj, &min, mp, dev)
Using device names from this file is not nice. I have just /dev/root
here. Shouldn't we just read the kernel commandline instead?
Kay
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel