The behavior for this key is the following:
- balloning=0: Disabled
- Not defined in the config: Enabled
- balloning=N: Enabled, and target memory set to N MiB

Instead of special-casing balloning=1 (or turning it into a property
string) to enable the drive without setting a target memory size, we
simply document the current behavior better.

Signed-off-by: Maximiliano Sandoval <[email protected]>
---
 src/PVE/QemuServer.pm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 08cb6b98..0395c85b 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -315,7 +315,8 @@ my $confdesc = {
         optional => 1,
         type => 'integer',
         description =>
-            "Amount of target RAM for the VM in MiB. Using zero disables the 
balloon driver.",
+            "Amount of target RAM for the VM in MiB. The balloon driver is 
enabled by default, "
+            . "unless it is explicitly disabled by setting zero as value.",
         minimum => 0,
     },
     shares => {
-- 
2.47.3




Reply via email to