mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-11 20:58:50 +03:00
For dm_is_dm_major to determine whether the major number given as an argument belongs to a DM device, libdm code needs to know what the actual DM major is to do the comparison. It may happen that the dm-mod module is not loaded during this call and so for the completness let's try our best before we start giving various errors - we can still make use of dm-mod autoloading, though only since kernels 2.6.36 where this feature was introduced.