diff options
author | Alasdair Kergon <agk@redhat.com> | 2002-01-29 17:23:33 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2002-01-29 17:23:33 +0000 |
commit | f53c6aa66ef8b5c75a4e43e6cf518f0ec9cd5cfe (patch) | |
tree | d8d7170bb389a01a14e0f2c49e4f339fd1d5c63e /tools/pvscan.c | |
parent | 14936c751efc3f3d5d692e5c7c7ff7ac5b0694e0 (diff) | |
download | lvm2-f53c6aa66ef8b5c75a4e43e6cf518f0ec9cd5cfe.tar.gz lvm2-f53c6aa66ef8b5c75a4e43e6cf518f0ec9cd5cfe.tar.xz lvm2-f53c6aa66ef8b5c75a4e43e6cf518f0ec9cd5cfe.zip |
o Basic support for exporting (but importing not completed yet).
o When volume group does not have write flag set, prevent changes to it.
o Preparation for partial activation (not completed yet).
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r-- | tools/pvscan.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/pvscan.c b/tools/pvscan.c index 2c37d03b..3162c551 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -150,7 +150,8 @@ void pvscan_display_single(struct physical_volume *pv) /* FIXME As per pv_display! Drop through for now. */ /* pv_show(pv); */ - log_print("System Id %s", pv->exported); + /* FIXME - Moved to Volume Group structure */ + /* log_print("System Id %s", pv->vg->system_id); */ /* log_print(" "); */ /* return; */ @@ -158,7 +159,7 @@ void pvscan_display_single(struct physical_volume *pv) memset(pv_tmp_name, 0, sizeof (pv_tmp_name)); - vg_name_len = strlen(pv->vg_name) - sizeof (EXPORTED_TAG) + 1; + vg_name_len = strlen(pv->vg_name) + 1; if (arg_count(uuid_ARG)) { if (!id_write_format(&pv->id, uuid, sizeof(uuid))) { @@ -181,9 +182,9 @@ void pvscan_display_single(struct physical_volume *pv) return; } - if (strcmp(&pv->vg_name[vg_name_len], EXPORTED_TAG) == 0) { + if (pv->status & EXPORTED_VG) { strncpy(vg_name_this, pv->vg_name, vg_name_len); - log_print("PV %-*s is in EXPORTED VG %s [%s / %s free]", + log_print("PV %-*s is in exported VG %s [%s / %s free]", pv_max_name_len, pv_tmp_name, vg_name_this, (s1 = display_size(pv->pe_count * |