Description: searches a special device (e.g. /dev/hda2) and writes the virtual device and partition numbers to the variables. These values can be used to access the file system via $param["dev$vDev"."part$vPart"."_fs"]
Parameter:
- param: the associative array containing all values describing the drives of the client
- dev: the device (e.g. /dev/hda2)
- vDev: the virtual device number, that is used to build the variable name to access the associative array.
- vPart: the virtual partition number, that is used to build the variable name to access the associative array. This number has not to be qual to the partition number of the real drive (e.g. /dev/hda5 can be $vPart == 3). If it is set to "empty", only vDev is calculated.
Returns:
- true if the search worked otherwise false.
root
2015-09-06