Jeansen / bcrm

Clone, Backup, Restore and More
GNU General Public License v3.0
0 stars 1 forks source link

Refactor Source and Destination arrays and make them more universal #155

Closed Jeansen closed 4 years ago

Jeansen commented 4 years ago

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.