From 944cac939cac7d0b90dffd064cc69cbaebaed1ca Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Fri, 8 Jun 2007 22:38:48 +0000 Subject: Allow vgcfgrestore to list metadata backup files using -f --- lib/format_text/archive.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'lib/format_text/archive.c') diff --git a/lib/format_text/archive.c b/lib/format_text/archive.c index c42581c16..ca94c7424 100644 --- a/lib/format_text/archive.c +++ b/lib/format_text/archive.c @@ -362,6 +362,22 @@ int archive_list(struct cmd_context *cmd, const char *dir, const char *vgname) return 1; } +int archive_list_file(struct cmd_context *cmd, const char *file) +{ + struct archive_file af; + + af.path = (char *)file; + + if (!path_exists(af.path)) { + log_err("Archive file %s not found.", af.path); + return 0; + } + + _display_archive(cmd, &af); + + return 1; +} + int backup_list(struct cmd_context *cmd, const char *dir, const char *vgname) { struct archive_file af; -- cgit v1.2.1