diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-01-20 18:11:53 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-01-20 18:11:53 +0000 |
commit | 52f9afec22020d7bc2ebc940d83ee516328f7b61 (patch) | |
tree | 5360083750df439a56cf1acf8f8c80013c7d76a7 /lib/metadata/snapshot_manip.c | |
parent | c44c015a2d3bf0d2f5605c062c03375b4f73cd27 (diff) | |
download | lvm2-52f9afec22020d7bc2ebc940d83ee516328f7b61.tar.gz lvm2-52f9afec22020d7bc2ebc940d83ee516328f7b61.tar.xz lvm2-52f9afec22020d7bc2ebc940d83ee516328f7b61.zip |
Always fail if random id generation fails.
Diffstat (limited to 'lib/metadata/snapshot_manip.c')
-rw-r--r-- | lib/metadata/snapshot_manip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/metadata/snapshot_manip.c b/lib/metadata/snapshot_manip.c index 664c73b2..c1ec39ab 100644 --- a/lib/metadata/snapshot_manip.c +++ b/lib/metadata/snapshot_manip.c @@ -134,7 +134,8 @@ int vg_add_snapshot(struct logical_volume *origin, struct logical_volume *cow, if (id) s->id = *id; else if (!id_create(&s->id)) { - log_error("Snapshot UUID creation failed"); + log_error("Random UUID creation failed for snapshot %s.", + cow->name); return 0; } |