summaryrefslogtreecommitdiff
path: root/lib/uuid
diff options
context:
space:
mode:
authorJoe Thornber <thornber@redhat.com>2002-01-15 10:24:48 +0000
committerJoe Thornber <thornber@redhat.com>2002-01-15 10:24:48 +0000
commit6036e5e0f72220645c6e7f1ce49baa3185a4302c (patch)
tree599e36d6d5c08c4d1f65435eae7202bbadcce4cd /lib/uuid
parentc9dbb9efe7538286f9f93151cd477ff6ccd3af68 (diff)
downloadlvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.tar.gz
o split the uuid -> device map out from vgcache
o roll vgcache back to agk's implementation, we'll revisit this as part of the cluster integration. o change the extra_info field in a label to be a void *
Diffstat (limited to 'lib/uuid')
-rw-r--r--lib/uuid/uuid.c4
-rw-r--r--lib/uuid/uuid.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/uuid/uuid.c b/lib/uuid/uuid.c
index e6f09e8dd..4d1c9abc3 100644
--- a/lib/uuid/uuid.c
+++ b/lib/uuid/uuid.c
@@ -75,9 +75,9 @@ int id_valid(struct id *id)
return 1;
}
-int id_cmp(struct id *lhs, struct id *rhs)
+int id_equal(struct id *lhs, struct id *rhs)
{
- return memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));
+ return !memcmp(lhs->uuid, rhs->uuid, sizeof(lhs->uuid));
}
#define GROUPS (ID_LEN / 4)
diff --git a/lib/uuid/uuid.h b/lib/uuid/uuid.h
index 8e4a3dedd..f979f3440 100644
--- a/lib/uuid/uuid.h
+++ b/lib/uuid/uuid.h
@@ -17,7 +17,7 @@ struct id {
int id_create(struct id *id);
int id_valid(struct id *id);
-int id_cmp(struct id *lhs, struct id *rhs);
+int id_equal(struct id *lhs, struct id *rhs);
/*
* Fills 'buffer' with a more human readable form