[systemd-devel] [PATCH] cryptsetup: craft a unique ID with the source device
Lennart Poettering
lennart at poettering.net
Fri May 29 07:38:00 PDT 2015
On Fri, 29.05.15 16:30, Harald Hoyer (harald at redhat.com) wrote:
> Am 29.05.2015 um 16:26 schrieb Lennart Poettering:
> > On Fri, 29.05.15 12:17, harald at redhat.com (harald at redhat.com) wrote:
> >
> >> From: Harald Hoyer <harald at redhat.com>
> >>
> >> If cryptsetup is called with a source device as argv[3], then craft the
> >> ID for the password agent with a unique device path.
> >>
> >> If possible "/dev/block/<maj>:<min>" is used, otherwise the original
> >> argv[3] is used.
> >
> > Why use the major/minor numebrs here? Why isn't the original device
> > name good enough?
>
> Don't we want a kind of unique ID?
But the original device path is already unique? I mean, it's a path in
the file heirarchy, that already makes it unique.
Or what do you mean by "unique"?
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list