diff options
author | Joe Thornber <thornber@redhat.com> | 2002-02-11 11:43:17 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2002-02-11 11:43:17 +0000 |
commit | 03888774a5aa7978ff69c9434ab48a589f1b8851 (patch) | |
tree | 0aec0ec54347e98134c23eea3cb9a0e76c3a9ebf /tools/vgcfgrestore.c | |
parent | d1ad45cc416b99d31abc61fe444d360968cc3d8e (diff) | |
download | lvm2-03888774a5aa7978ff69c9434ab48a589f1b8851.tar.gz |
o Added functions to display what's in the archive.
o For now vgcfgrestore -l <vg> displays this list.
A bit hacky, but it'll get better.
Diffstat (limited to 'tools/vgcfgrestore.c')
-rw-r--r-- | tools/vgcfgrestore.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/vgcfgrestore.c b/tools/vgcfgrestore.c index 0d8e2d5c6..19e456711 100644 --- a/tools/vgcfgrestore.c +++ b/tools/vgcfgrestore.c @@ -15,6 +15,17 @@ int vgcfgrestore(int argc, char **argv) return ECMD_FAILED; } + /* + * FIXME: overloading the -l arg for now to display a + * list of archive files for a particular vg + */ + if (arg_count(list_ARG)) { + if (!archive_display(argv[0])) + return ECMD_FAILED; + + return 0; + } + if (!(arg_count(file_ARG) ? backup_restore_from_file(argv[0], arg_str_value(file_ARG, "")) : backup_restore(argv[0]))) { |