]> sourceware.org Git - lvm2.git/commitdiff
Caller is still entitled to reference an LV that's unlinked, so don't
authorAlasdair Kergon <agk@redhat.com>
Tue, 24 Jan 2012 14:53:59 +0000 (14:53 +0000)
committerAlasdair Kergon <agk@redhat.com>
Tue, 24 Jan 2012 14:53:59 +0000 (14:53 +0000)
tamper with struct contents.

lib/metadata/lv_manip.c

index 9a8e8c5ae3e636ab4f0d9c9d2dd5042568d78802..d51d4b553e1ec5a16b815d9fb0ddf89b4584979f 100644 (file)
@@ -3111,8 +3111,6 @@ int unlink_lv_from_vg(struct logical_volume *lv)
 
        dm_list_del(&lvl->list);
 
-       lv->status = 0;   /* Reset */
-
        return 1;
 }
 
This page took 0.037441 seconds and 5 git commands to generate.