diff options
Diffstat (limited to 'packages/freenas')
-rw-r--r-- | packages/freenas/www/disks_manage_init.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/freenas/www/disks_manage_init.php b/packages/freenas/www/disks_manage_init.php index 0d5642d9..de4c65e8 100644 --- a/packages/freenas/www/disks_manage_init.php +++ b/packages/freenas/www/disks_manage_init.php @@ -500,11 +500,11 @@ if (! empty($_POST)) header("Status: 500 Internal Server Error. {$statustxt}"); echo $divcontents; exit; - } else { + } else if (disks_check_mount_fullname($disk)) { $errormsg = sprintf(gettext("The disk is currently mounted! <a href=%s>Unmount</a> this disk first before proceeding."), "disks_mount_tools.php?disk={$disk}&action=umount"); $do_format = false; } - + if($do_format) { /* Get the id of the disk array entry. */ $NotFound = 1; |