summaryrefslogtreecommitdiffstats
path: root/lib/thin
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2011-10-30 22:00:57 +0000
committerZdenek Kabelac <zkabelac@redhat.com>2011-10-30 22:00:57 +0000
commitf8d46bd256a111849a3b65478d4be4e13395b57d (patch)
tree23d304501ad04f1073277d79689f70a4d67f505d /lib/thin
parentade2b9345f20183fb0a60c8c88b4f22ab500fe66 (diff)
downloadlvm2-f8d46bd256a111849a3b65478d4be4e13395b57d.tar.gz
lvm2-f8d46bd256a111849a3b65478d4be4e13395b57d.tar.xz
lvm2-f8d46bd256a111849a3b65478d4be4e13395b57d.zip
Thin cleanups
Fix/cleanup several error messages. Remove test for seg_is_thin which could never be true there. Replace (1<<24) with predefined constant.
Diffstat (limited to 'lib/thin')
-rw-r--r--lib/thin/thin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/thin/thin.c b/lib/thin/thin.c
index 44ec5d25..26bd3e2b 100644
--- a/lib/thin/thin.c
+++ b/lib/thin/thin.c
@@ -252,7 +252,7 @@ static int _thin_pool_add_target_line(struct dev_manager *dm,
dmsg.u.m_create_snap.origin_id = 0;//first_seg(first_seg(lmsg->u.lv)->origin)->device_id;
if (!dm_tree_node_add_thin_pool_message(node, &dmsg))
return_0;
- log_error("Sorry SNAPSHOTS is not yet supported.");
+ log_error("Sorry SNAPSHOT is not yet supported.");
return 0;
case DM_THIN_MESSAGE_CREATE_THIN:
log_debug("Thin pool create_thin %s.", lmsg->u.lv->name);
@@ -268,7 +268,7 @@ static int _thin_pool_add_target_line(struct dev_manager *dm,
break;
case DM_THIN_MESSAGE_TRIM:
/* FIXME: to be implemented */
- log_error("Sorry TRIM is not yes supported.");
+ log_error("Sorry TRIM is not yet supported.");
return 0;
default:
log_error(INTERNAL_ERROR "Unsupported message.");
@@ -346,7 +346,7 @@ static int _thin_text_export(const struct lv_segment *seg, struct formatter *f)
#ifdef DEVMAPPER_SUPPORT
static int _thin_add_target_line(struct dev_manager *dm,
- struct dm_pool *mem __attribute__((unused)),
+ struct dm_pool *mem,
struct cmd_context *cmd __attribute__((unused)),
void **target_state __attribute__((unused)),
struct lv_segment *seg,