Re: [systemd-devel] [PATCH V3] cryptsetup: craft a unique ID with the source device

2015-05-29 Thread systemd github import bot
Patchset imported to github. Pull request: https://github.com/systemd-devs/systemd/compare/master...systemd-mailing-devs:1432916659-16919-1-git-send-email-harald%40redhat.com -- Generated by https://github.com/haraldh/mail2git ___ systemd-devel mailing

Re: [systemd-devel] [PATCH V3] cryptsetup: craft a unique ID with the source device

2015-05-29 Thread Lennart Poettering
On Fri, 29.05.15 18:24, har...@redhat.com (har...@redhat.com) wrote: +static int disk_major_minor(const char *path, char **ret) { +struct stat st; + +assert(path); + +if (stat(path, st) 0) +return -errno; + +if (!S_ISBLK(st.st_mode)) +