- devName: Device name to check.
- partition: Set to true if you want to check for a partition.
- diskOrPartition: Set to true, if a disk or partition should be valid. This overwrites the parameter "partition".
- raidAllowed: Set to true, if RAIDs are allowed too.
- The input value is a valid drive, partition or RAID or false on an error.