]> sourceware.org Git - lvm2.git/commit
thin: check for new pool before creating thin volume
authorZdenek Kabelac <zkabelac@redhat.com>
Tue, 4 Nov 2014 14:08:15 +0000 (15:08 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 4 Nov 2014 14:29:19 +0000 (15:29 +0100)
commit8563c3e1a96f0d7ad180c859e9bf23a90e63e907
treeb2562443d21504859d81ec9008e18307bcc7a5f0
parent6116b1d6e302097086c9dcd418e4404ddd337939
thin: check for new pool before creating thin volume

Call check_new_thin_pool() to detect in-use thin-pool.
Save extra reactivation of thin-pool when thin pool is not active.
(it's now a bit more expensive to invoke thin_check for new pools.)

For new pools:

We now active locally exclusively thin-pool as 'public' LV.
Validate transaction_id is till 0.
Deactive.
Prepare create message for thin-pool and exclusively active pool.
Active new thin LV.
And deactivate thin pool if it used to be inactive.
WHATS_NEW
lib/metadata/lv_manip.c
This page took 0.035827 seconds and 5 git commands to generate.