]> sourceware.org Git - lvm2.git/commitdiff
lvmetad: remove unused code for other format types
authorDavid Teigland <teigland@redhat.com>
Tue, 7 Jun 2016 21:09:45 +0000 (16:09 -0500)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 28 Jun 2016 01:30:25 +0000 (02:30 +0100)
lvmetad is no longer used at all with the lvm1 format,
so the text format is the only one that uses lvmetad.

lib/metadata/metadata.c

index 9b1fd314846829f7fdd63cd7a00b2d19a490e293..e55463b9da6594654f84276978699b48cfe2e146 100644 (file)
@@ -3546,13 +3546,6 @@ int vg_write(struct volume_group *vg)
        if (!_vg_update_vg_precommitted(vg)) /* prepare precommited */
                return_0;
 
-       /*
-        * If precommit is not supported, changes take effect immediately.
-        * FIXME Replace with a more-accurate FMT_COMMIT flag.
-        */
-       if (!(vg->fid->fmt->features & FMT_PRECOMMIT) && !lvmetad_vg_update(vg))
-               return_0;
-
        lockd_vg_update(vg);
 
        return 1;
This page took 0.044555 seconds and 5 git commands to generate.