[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] vgcfgbackup



vgcfgbackup macht bei mir immer nur ein Backup und behält die älteren
Versionen nicht. Folgender Patch scheint das zu beheben (relativ zu
0.8final)

--- 0.8final.orig/tools/lib/vg_cfgbackup.c	Tue Feb 22 03:09:32 2000
+++ 0.8final/tools/lib/vg_cfgbackup.c	Tue May 23 17:02:35 2000
@@ -366,7 +366,7 @@
       }
 
       /* VGDA backup history */
-      for ( i = vg_max_backups; i > 1; i--) {
+      for ( i = vg_max_backups; i >= 1; i--) {
          sprintf ( vg_backup_path_old2, "%s/%s.conf.%d.old%c",
                                         directory, vg_name, i, 0);
          if ( opt_v > 0) printf ( "%s -- checking for \"%s\"\n",


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]