master - system_id: undo the previous changes to the lvm1 code
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=8bb76aea81574042c6010291a8c799a90570b0d3 Commit: 8bb76aea81574042c6010291a8c799a90570b0d3 Parent: 1e65fdd9ba00ab249ab07d8b5815c398ded556e3 Author: David Teigland <[email protected]> AuthorDate: Thu Mar 5 10:13:05 2015 -0600 Committer: David Teigland <[email protected]> CommitterDate: Thu Mar 5 10:13:05 2015 -0600
system_id: undo the previous changes to the lvm1 code
The system_id and lock_type compat changes do not apply to the lvm1 code.
--- lib/format1/disk-rep.h | 2 -- lib/format1/import-export.c | 16 ++-------------- 2 files changed, 2 insertions(+), 16 deletions(-)
lib/format1/disk-rep.h +0 -2
@@ -41,7 +41,6 @@#define VG_WRITE 0x02/* " */ #define VG_CLUSTERED 0x04/* " */ #define VG_SHARED 0x08/* " */ -#define VG_WRITE_LOCKED 0x10/* " */ /* logical volume */ #define LV_ACTIVE 0x01/* lv_status */
@@ -52,7 +51,6 @@#define LV_WRITE 0x02/* " */ #define LV_SNAPSHOT 0x04/* " */ #define LV_SNAPSHOT_ORG 0x08/* " */ -#define LV_WRITE_LOCKED 0x10/* " */ #define LV_BADBLOCK_ON 0x01/* lv_badblock */
lib/format1/import-export.c +2 -14
@@ -242,9 +242,6 @@ int import_vg(struct dm_pool *mem,if (vgd->vg_access &VG_WRITE ) vg->status |=LVM_WRITE ; -if (vgd->vg_access &VG_WRITE_LOCKED ) - vg->status |=LVM_WRITE ; -if (vgd->vg_access &VG_CLUSTERED ) vg->status |=CLUSTERED ;
@@ -269,12 +266,9 @@ int export_vg(struct vg_disk *vgd, struct volume_group *vg)if (vg->status &LVM_READ ) vgd->vg_access |=VG_READ ; -if ((vg->status &LVM_WRITE ) && !vg_flag_write_locked (vg)) +if (vg->status &LVM_WRITE ) vgd->vg_access |=VG_WRITE ; -if ((vg->status &LVM_WRITE ) &&vg_flag_write_locked (vg)) - vgd->vg_access |=VG_WRITE_LOCKED ; -if (vg_is_clustered (vg)) vgd->vg_access |=VG_CLUSTERED ;
@@ -326,9 +320,6 @@ int import_lv(struct cmd_context *cmd, struct dm_pool *mem,if (lvd->lv_access &LV_WRITE ) lv->status |=LVM_WRITE ; -if (lvd->lv_access &LV_WRITE_LOCKED ) - lv->status |=LVM_WRITE ; -if (lvd->lv_badblock) lv->status |=BADBLOCK_ON ;
@@ -361,12 +352,9 @@ static void _export_lv(struct lv_disk *lvd, struct volume_group *vg,if (lv->status &LVM_READ ) lvd->lv_access |=LV_READ ; -if ((lv->status &LVM_WRITE ) && !vg_flag_write_locked (vg)) +if (lv->status &LVM_WRITE ) lvd->lv_access |=LV_WRITE ; -if ((lv->status &LVM_WRITE ) &&vg_flag_write_locked (vg)) - lvd->lv_access |=LV_WRITE_LOCKED ; -if (lv->status &SPINDOWN_LV ) lvd->lv_status |=LV_SPINDOWN ;