Crash when selecting whole device
The Foris storage plugin crashes when a whole device (not a partition) is selected.
Steps to reproduce:
- Setup an external disk such as
sda1
. - On the Storage page, check the disk itself (not its partition), ie.
sda
. - Click Format & Set.
Expected results:
It should format the device and mount it to /srv
. Or if this is not a desired behavior (only partitions should be mounted), disallow the possibility to check the block device itself.
Current results:
It crashes with the following error message: foris-error_1_.html
The notification message is:
Adding drive /dev/sda failed.
Technical details: /dev/sda appears to contain a partition table (dos).
ERROR: use the -f option to force overwrite of /dev/sda