diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-03-05 20:03:09 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-03-05 20:03:09 +0000 |
commit | 15c325f06aa0dad2145abf217af4fa082c214e36 (patch) | |
tree | 8737373bb3b3b7000b2e568f7ac9dabe73a82128 /lib/display/display.c | |
parent | 2731508b34b858e8204cb67b5f2b2f3780e9b3eb (diff) | |
download | lvm2-15c325f06aa0dad2145abf217af4fa082c214e36.tar.gz |
o Use new LCK_HOLD flag to indicate whether lock should be held on return
from lock_vol() - otherwise it now attempts to acquire the lock and then
immediately releases it.
o Extend the id field in struct logical_volume to hold VG uuid + LV uuid
for format1. This unique lvid can be used directly when calling lock_vol().
o Add the VG uuid to vgcache to make VG uuid lookups possible. (Another
step towards using them instead of VG names internally.)
Diffstat (limited to 'lib/display/display.c')
-rw-r--r-- | lib/display/display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/display/display.c b/lib/display/display.c index f6c2cc80f..ebf1d7e86 100644 --- a/lib/display/display.c +++ b/lib/display/display.c @@ -205,7 +205,7 @@ int lvdisplay_full(struct cmd_context *cmd, struct logical_volume *lv) char uuid[64]; struct snapshot *snap; - if (!id_write_format(&lv->id, uuid, sizeof(uuid))) { + if (!id_write_format(&lv->lvid.id[1], uuid, sizeof(uuid))) { stack; return 0; } |