mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
thin: properly unmark volume after detach
When the volume is detached form thin pool, unmask THIN_VOLUME flag and reset related pointers.
This commit is contained in:
parent
416eb4b9b3
commit
c984d8fbab
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.99 -
|
Version 2.02.99 -
|
||||||
===================================
|
===================================
|
||||||
|
Fix missing cleanup of flags when the LV is detached from pool.
|
||||||
Fix check for some forbidden discards conversion of thin pools.
|
Fix check for some forbidden discards conversion of thin pools.
|
||||||
Add pool_is_active() to check for any pool related active LV.
|
Add pool_is_active() to check for any pool related active LV.
|
||||||
Report blank field if the LV doesn't have an origin instead of 0.
|
Report blank field if the LV doesn't have an origin instead of 0.
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2011-2012 Red Hat, Inc. All rights reserved.
|
* Copyright (C) 2011-2013 Red Hat, Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* This file is part of LVM2.
|
* This file is part of LVM2.
|
||||||
*
|
*
|
||||||
@ -136,6 +136,10 @@ int detach_pool_lv(struct lv_segment *seg)
|
|||||||
sl->seg->origin = NULL;
|
sl->seg->origin = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
seg->lv->status &= ~THIN_VOLUME;
|
||||||
|
seg->pool_lv = NULL;
|
||||||
|
seg->origin = NULL;
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user