') { $storePoint = '/'; } else { $storePoint = CONFIG_VMSTORE_DIR; } // Collect free space information foreach ($task['data']['list'] as $entry) { // StorePoint is either the atual directory of the vmstore, or / if we use internal storage if ($entry['mountPoint'] === $storePoint) { $storeUsage = $entry; } // Always report free space on system disk if ($entry['mountPoint'] === '/') { $systemUsage = $entry; } // Record what's mounted at destination, regardless of config, to indicate something is wrong if (($currentSource === false && $wantedSource === '' && $entry['mountPoint'] === '/') || $entry['mountPoint'] === CONFIG_VMSTORE_DIR) { $currentSource = $entry['fileSystem']; } } return true; } }