Currently there are multiple invocations of different tools to find types, IDs, sizes and so on. It would be better to have everything in one place.
The idea is to have one first loop where the source (which does not need to be mounted) is scanned and all relevant data is stored in an array.
The key would be the mount point, the value would be a string of values separated by colons (:). This would also diminish the use of eval calls in further loops.
Currently there are multiple invocations of different tools to find types, IDs, sizes and so on. It would be better to have everything in one place.
The idea is to have one first loop where the source (which does not need to be mounted) is scanned and all relevant data is stored in an array.
The key would be the mount point, the value would be a string of values separated by colons (:). This would also diminish the use of eval calls in further loops.