1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Thin removing unused detach_pool_messages

This commit is contained in:
Zdenek Kabelac 2011-11-03 14:57:04 +00:00
parent 92384bfd0b
commit 466a8ebf9d
2 changed files with 0 additions and 22 deletions

View File

@ -558,8 +558,6 @@ int lv_rename(struct cmd_context *cmd, struct logical_volume *lv,
uint64_t extents_from_size(struct cmd_context *cmd, uint64_t size,
uint32_t extent_size);
int detach_pool_messages(struct logical_volume *pool_lv);
int update_pool_lv(struct logical_volume *lv, int activate);
/*

View File

@ -148,26 +148,6 @@ int attach_pool_message(struct lv_segment *seg, dm_thin_message_t type,
return 1;
}
int detach_pool_messages(struct logical_volume *pool_lv)
{
if (!lv_is_thin_pool(pool_lv)) {
log_error(INTERNAL_ERROR "LV %s is not a thin pool.",
pool_lv->name);
return 0;
}
if (!dm_list_empty(&first_seg(pool_lv)->thin_messages)) {
dm_list_init(&first_seg(pool_lv)->thin_messages);
if (!vg_write(pool_lv->vg) || !vg_commit(pool_lv->vg))
return_0;
backup(pool_lv->vg);
}
return 1;
}
struct lv_segment *find_pool_seg(const struct lv_segment *seg)
{
struct lv_segment *pool_seg;