public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
* LVM2 ./WHATS_NEW tools/vgcfgbackup.c
@ 2008-08-13 12:44 mbroz
0 siblings, 0 replies; only message in thread
From: mbroz @ 2008-08-13 12:44 UTC (permalink / raw)
To: lvm-devel, lvm2-cvs
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz@sourceware.org 2008-08-13 12:44:24
Modified files:
. : WHATS_NEW
tools : vgcfgbackup.c
Log message:
Fix vgcfgbackup to properly check filename if template is used.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.945&r2=1.946
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgcfgbackup.c.diff?cvsroot=lvm2&r1=1.24&r2=1.25
--- LVM2/WHATS_NEW 2008/08/05 14:29:38 1.945
+++ LVM2/WHATS_NEW 2008/08/13 12:44:23 1.946
@@ -1,5 +1,6 @@
Version 2.02.40 -
================================
+ Fix vgcfgbackup to properly check filename if template is used.
configure aborts if lcov or genhtml are missing with --enable-profiling
vgremove tries to remove lv snapshot first.
Added function lv_remove_with_dependencies().
--- LVM2/tools/vgcfgbackup.c 2008/01/30 14:00:02 1.24
+++ LVM2/tools/vgcfgbackup.c 2008/08/13 12:44:24 1.25
@@ -34,8 +34,7 @@
dm_free(filename);
return NULL;
}
- if (*last_filename && !strncmp(*last_filename, filename,
- strlen(template))) {
+ if (*last_filename && !strncmp(*last_filename, filename, PATH_MAX)) {
log_error("VGs must be backed up into different files. "
"Use %%s in filename for VG name.");
dm_free(filename);
@@ -70,7 +69,8 @@
return ECMD_FAILED;
}
- backup_to_file(filename, vg->cmd->cmd_line, vg);
+ if (!backup_to_file(filename, vg->cmd->cmd_line, vg))
+ return ECMD_FAILED;
} else {
if (!consistent) {
log_error("No backup taken: specify filename with -f "
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-08-13 12:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-13 12:44 LVM2 ./WHATS_NEW tools/vgcfgbackup.c mbroz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).