]> sourceware.org Git - lvm2.git/commit
lvresize: fix zero size extension
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 13 Jul 2016 14:23:25 +0000 (16:23 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 13 Jul 2016 19:52:04 +0000 (21:52 +0200)
commite1112227d19cc252e1404eb4bf44d03e3867e463
tree006b296c90e1692eb20e52b5e3e34318cf6b168d
parent3928c96a37941d765bf467d82502cd2aec7fd809
lvresize: fix zero size extension

Commit ca878a3426197b629c76e98cfc049948da470cd7 changed behavior
or resize operation. Later the code has been futher changed
to skip fs resize completely when size of LV is already matching
and finaly at the most recent resize changeset for resize the
check for matching size has been eliminated as well so we ended
with a request call to resize fs to 0 size in some cases.

This commit reoders some test so the prompt happens just once before
resize of possibly 2 related volumes.

Also extra test for having LV already given size is added, and
whole metadata update is skipped for this case as the only
result would be an increment of seqno.

However the filesystem is still resized when requested,
so if the LV has some size and the resize is resolved to
the same size, the filesystem resize is called so in case FS
would not match, the resize will happen.
WHATS_NEW
lib/metadata/lv_manip.c
lib/metadata/metadata-exported.h
This page took 0.040256 seconds and 5 git commands to generate.