diff options
author | Joe Thornber <thornber@redhat.com> | 2002-02-08 11:13:47 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-02-08 11:13:47 +0000 |
commit | e74999af5187b9f3cfcbb9fb260e99cdd3d7a269 (patch) | |
tree | e15a0bf642afe118e6b24e94267fd16e9be5a99e /tools/vgcfgbackup.c | |
parent | af7bbe5a6c00a95d2e2deb0accbe2c0ed375df02 (diff) | |
download | lvm2-e74999af5187b9f3cfcbb9fb260e99cdd3d7a269.tar.gz |
o Add cmd_line field to struct cmd_context
o Text format now has a description and time field at the top level.
o archiving and backup set the description appropriately. eg,
for an archive:
description = "Created *before* executing 'lvextend test_vg/lvol0 -l +1'."
creation_time = 1013166332
for a backup:
description = "Created *after* executing 'lvextend test_vg/lvol0 -l +1'."
creation_time = 1013166332
This is preparing the way for a simple vgcfgundo command.
Diffstat (limited to 'tools/vgcfgbackup.c')
-rw-r--r-- | tools/vgcfgbackup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/vgcfgbackup.c b/tools/vgcfgbackup.c index 949c96ec1..17e378837 100644 --- a/tools/vgcfgbackup.c +++ b/tools/vgcfgbackup.c @@ -13,7 +13,8 @@ static int _backup_to_file(const char *file, struct volume_group *vg) int r; struct format_instance *tf; - if (!(tf = text_format_create(vg->cmd, file, the_um))) { + if (!(tf = text_format_create(vg->cmd, file, the_um, + vg->cmd->cmd_line))) { log_error("Couldn't create backup object."); return 0; } |