diff options
author | Joe Thornber <thornber@redhat.com> | 2002-01-15 10:24:48 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-01-15 10:24:48 +0000 |
commit | 6036e5e0f72220645c6e7f1ce49baa3185a4302c (patch) | |
tree | 599e36d6d5c08c4d1f65435eae7202bbadcce4cd /lib/label/label.c | |
parent | c9dbb9efe7538286f9f93151cd477ff6ccd3af68 (diff) | |
download | lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.tar.gz lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.tar.xz lvm2-6036e5e0f72220645c6e7f1ce49baa3185a4302c.zip |
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/label/label.c')
-rw-r--r-- | lib/label/label.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/label/label.c b/lib/label/label.c index 6a02038c..6289adb3 100644 --- a/lib/label/label.c +++ b/lib/label/label.c @@ -121,13 +121,17 @@ int label_remove(struct device *dev) int label_read(struct device *dev, struct label **result) { struct labeller *l; + int r; if (!(l = _find_labeller(dev))) { stack; return 0; } - return l->ops->read(l, dev, result); + if ((r = l->ops->read(l, dev, result))) + *result->labeller = l; + + return r; } int label_verify(struct device *dev) |