Wipe added space when growing disks
authorMichael Hanselmann <hansmi@google.com>
Wed, 3 Oct 2012 02:59:29 +0000 (04:59 +0200)
committerMichael Hanselmann <hansmi@google.com>
Fri, 5 Oct 2012 01:50:19 +0000 (03:50 +0200)
commitfa8ef9d63ecad759727f68a0204244b90d2e4e60
treea06e4dc361e7a21db928ccde5a61158f96403afe
parent129cce6944f31613f9befcd2ffaf5da14d706187
Wipe added space when growing disks

This patch adds code to wipe newly added disk space when growing disks
using “gnt-instance grow-disk”. “New disk space” is defined as the delta
between the old block device size (not necessarily equal to the amount
recorded in the configuration) and the new recorded size. Extra caution
is taken to avoid overwriting existing data. Unit tests are included.

A small typo in gnt-cluster(8) (“it's”) is also fixed.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/cmdlib.py
man/gnt-cluster.rst
test/ganeti.cmdlib_unittest.py