1
0
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:
Zdenek Kabelac 2011-10-30 22:52:08 +00:00
parent 8997872656
commit 25de9addb6
2 changed files with 4 additions and 1 deletions

View File

@ -18,6 +18,7 @@
#include "metadata.h"
#include "segtype.h"
#include "lv_alloc.h"
#include "archiver.h"
int attach_pool_metadata_lv(struct lv_segment *seg, struct logical_volume *pool_metadata_lv)
{

View File

@ -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.new_id);
break;
default:
r = -1;
}
if (!r) {
if (r < 0) {
log_error("Failed to prepare message.");
return 0;
}