]> sourceware.org Git - lvm2.git/commit
Thin disable snapshot creation when pool is over the threshold.
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 19 Jan 2012 15:39:41 +0000 (15:39 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 19 Jan 2012 15:39:41 +0000 (15:39 +0000)
commitf82bddb76caef138b9a12d929ff610d8ca6d117a
tree3b944f702ea0b9decea78bb477de13026e270012
parente58b5dd8e88ec6a58a7cec4d95eb0fe9b6c4c3f5
Thin disable snapshot creation when pool is over the threshold.

Since snapshot needs to suspend origin - it might lead to pool userspace
deadlock (as the pool will wait for new space in case it would be overfilled,
but dmeventd would not be able to resize it, as the lvcreate operation would
have kept the VG lock.)
To minimize the risk of such scenario - we prevent to create new snapshot
in case we are over the threshold - but beware, there is still small timewindow,
so keep threshold at some reasonable level!
lib/metadata/lv_manip.c
This page took 0.035016 seconds and 5 git commands to generate.