diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-02-25 12:56:16 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-02-25 12:56:16 +0000 |
commit | 413cc9189e5a77a10ce227072855141cd7af79d7 (patch) | |
tree | 57a1288121d4c70292b06c23b05f3c6c1d346178 /tools/vgcreate.c | |
parent | ca73e23fd08850c916b9bf5671adfc68384ae466 (diff) | |
download | lvm2-413cc9189e5a77a10ce227072855141cd7af79d7.tar.gz lvm2-413cc9189e5a77a10ce227072855141cd7af79d7.tar.xz lvm2-413cc9189e5a77a10ce227072855141cd7af79d7.zip |
Begin conversion so LV id is passed to activation unit instead of
struct logical_volume.
Diffstat (limited to 'tools/vgcreate.c')
-rw-r--r-- | tools/vgcreate.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/vgcreate.c b/tools/vgcreate.c index 5e2496fe..2124c168 100644 --- a/tools/vgcreate.c +++ b/tools/vgcreate.c @@ -92,32 +92,32 @@ int vgcreate(struct cmd_context *cmd, int argc, char **argv) log_error("Warning: Setting maxphysicalvolumes to %d", vg->max_pv); - if (!lock_vol("", LCK_VG | LCK_WRITE)) { + if (!lock_vol(cmd, "", LCK_VG | LCK_WRITE)) { log_error("Can't get lock for orphan PVs"); return ECMD_FAILED; } - if (!lock_vol(vg_name, LCK_VG | LCK_WRITE | LCK_NONBLOCK)) { + if (!lock_vol(cmd, vg_name, LCK_VG | LCK_WRITE | LCK_NONBLOCK)) { log_error("Can't get lock for %s", vg_name); - lock_vol("", LCK_VG | LCK_NONE); + lock_vol(cmd, "", LCK_VG | LCK_NONE); return ECMD_FAILED; } if (!archive(vg)) { - lock_vol(vg_name, LCK_VG | LCK_NONE); - lock_vol("", LCK_VG | LCK_NONE); + lock_vol(cmd, vg_name, LCK_VG | LCK_NONE); + lock_vol(cmd, "", LCK_VG | LCK_NONE); return ECMD_FAILED; } /* Store VG on disk(s) */ if (!cmd->fid->ops->vg_write(cmd->fid, vg)) { - lock_vol(vg_name, LCK_VG | LCK_NONE); - lock_vol("", LCK_VG | LCK_NONE); + lock_vol(cmd, vg_name, LCK_VG | LCK_NONE); + lock_vol(cmd, "", LCK_VG | LCK_NONE); return ECMD_FAILED; } - lock_vol(vg_name, LCK_VG | LCK_NONE); - lock_vol("", LCK_VG | LCK_NONE); + lock_vol(cmd, vg_name, LCK_VG | LCK_NONE); + lock_vol(cmd, "", LCK_VG | LCK_NONE); backup(vg); |