mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Thin fix compile warns
Test for dm_snprintf < 0. Add header for moved backup.
This commit is contained in:
parent
8997872656
commit
25de9addb6
@ -18,6 +18,7 @@
|
|||||||
#include "metadata.h"
|
#include "metadata.h"
|
||||||
#include "segtype.h"
|
#include "segtype.h"
|
||||||
#include "lv_alloc.h"
|
#include "lv_alloc.h"
|
||||||
|
#include "archiver.h"
|
||||||
|
|
||||||
int attach_pool_metadata_lv(struct lv_segment *seg, struct logical_volume *pool_metadata_lv)
|
int attach_pool_metadata_lv(struct lv_segment *seg, struct logical_volume *pool_metadata_lv)
|
||||||
{
|
{
|
||||||
|
@ -1294,9 +1294,11 @@ static int _thin_pool_node_message(struct dm_tree_node *dnode, struct thin_messa
|
|||||||
m->u.m_set_transaction_id.current_id,
|
m->u.m_set_transaction_id.current_id,
|
||||||
m->u.m_set_transaction_id.new_id);
|
m->u.m_set_transaction_id.new_id);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
r = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!r) {
|
if (r < 0) {
|
||||||
log_error("Failed to prepare message.");
|
log_error("Failed to prepare message.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user