project-machine / disko

Disk Operations API in Go
Apache License 2.0
13 stars 9 forks source link

change getLuksInfo to read udev #66

Open smoser opened 4 years ago

smoser commented 4 years ago

In #47, I added 'getLuksInfo'. There is a lot of information there on trying to figure out which device is a luks device for which block device (and vice versa).

I think that we can reasonably quickly get all that information from udev, and that it would be faster and cache better. Currently an lvscan triggers a one getLuksInfo call per vg.