Re: [PATCH v2 1/2] virdevmapper: Don't cache device-mapper major

2020-08-18 Thread Peter Krempa
On Tue, Aug 18, 2020 at 11:30:24 +0200, Michal Privoznik wrote: > The device mapper major is needed in virIsDevMapperDevice() which > determines whether given device is managed by device-mapper. This > number is obtained by parsing /proc/devices and then stored in a > global variable so that the

[PATCH v2 1/2] virdevmapper: Don't cache device-mapper major

2020-08-18 Thread Michal Privoznik
The device mapper major is needed in virIsDevMapperDevice() which determines whether given device is managed by device-mapper. This number is obtained by parsing /proc/devices and then stored in a global variable so that the file doesn't have to be parsed again. However, as it turns out this logic