Merge pull request #12 from microsoft/dev/t-isehgal/ensure-swap-file-recreated
Ensuring swap file gets recreated when user downsizes their VM
This commit is contained in:
Коммит
f6b4c77030
|
@ -1747,7 +1747,7 @@ int main(int argc, char *argv[])
|
|||
log_info("Swap file not found");
|
||||
}
|
||||
|
||||
if (swap && swap->capacity < needed_swap) {
|
||||
if (swap && swap->capacity != needed_swap) {
|
||||
log_info("Swap file %s has capacity of %zu MB but needs %zu MB. Recreating. "
|
||||
"System will run without a swap file while this is being set up.",
|
||||
swap->path, swap->capacity / MEGA_BYTES, needed_swap / MEGA_BYTES);
|
||||
|
|
Загрузка…
Ссылка в новой задаче