pub fn device_exists(dm: &DM, name: &DmName) -> DmResult<bool>
Check if a device of the given name exists.