Make the device filtering happen before the creation of the device struct. Fix LVM volumes detection.