]> err.no Git - util-linux/commit
libblkid: return first detected crypto device
authorScott James Remnant <scott@ubuntu.com>
Mon, 26 Oct 2009 12:49:17 +0000 (13:49 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Oct 2009 12:49:17 +0000 (13:49 +0100)
commit048c62915fd76c3ed47afe2dde2a9b297fad9a81
treeb7020197851e5149d588c480115080b52c5571ed
parent06b1f2eda4576dc1db7fb554d6dcc9378490be0a
libblkid: return first detected crypto device

Crypto devices may sometimes have multiple additional prober matches,
however just like RAID, there's no danger of activating the wrong one
since special help is needed to activate the block device before it
can be used.

Thus modify blkid_do_safeprobe() to break out of the loop when a
crypto device is detected, as it does already for RAID.

Signed-off-by: Scott James Remnant <scott@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/superblocks.c