diff options
author | Alasdair Kergon <agk@redhat.com> | 2005-05-03 17:31:56 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2005-05-03 17:31:56 +0000 |
commit | abe198c0e8a99de8c330c7a571b839fe0720f0cf (patch) | |
tree | f8bd39ad7a105115ab727bbe66ff8e9f9cab8b0c /lib/format_text/archive.c | |
parent | 15db9fcfbf2f3cdf141f11cc142c10787d82e20a (diff) | |
download | lvm2-abe198c0e8a99de8c330c7a571b839fe0720f0cf.tar.gz |
Don't create backup and archive dirs till needed.
Diffstat (limited to 'lib/format_text/archive.c')
-rw-r--r-- | lib/format_text/archive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/format_text/archive.c b/lib/format_text/archive.c index 2075e4869..3f1b09f19 100644 --- a/lib/format_text/archive.c +++ b/lib/format_text/archive.c @@ -148,7 +148,7 @@ static struct list *_scan_archive(struct pool *mem, /* Sort fails beyond 5-digit indexes */ if ((count = scandir(dir, &dirent, NULL, alphasort)) < 0) { - log_err("Couldn't scan archive directory."); + log_err("Couldn't scan the archive directory (%s).", dir); return 0; } @@ -273,7 +273,7 @@ int archive_vg(struct volume_group *vg, * Now we want to rename this file to <vg>_index.vg. */ if (!(archives = _scan_archive(vg->cmd->mem, vg->name, dir))) { - log_err("Couldn't scan the archive directory (%s).", dir); + stack; return 0; } @@ -349,7 +349,7 @@ int archive_list(struct cmd_context *cmd, const char *dir, const char *vgname) struct archive_file *af; if (!(archives = _scan_archive(cmd->mem, vgname, dir))) { - log_err("Couldn't scan the archive directory (%s).", dir); + stack; return 0; } |