[linux-lvm] lvm-tools patches
Ragnar Kjørstad
lvm at ragnark.vestdata.no
Wed Apr 19 17:51:41 UTC 2000
Hi
I've attached a few small patches for lvm-tools (0.8final).
* lvm-compile.patch changes gnu/types.h to sys/types.h - it would not
compile without this change. (On RH 6.2)
* lvm-lvdisplay fixes a bug that made it impossible to use "-v -v".
* lvm-pvmove removes the source-PV equals dest-PV test. I can't see any
reason for this - I want to be able to move my PEs around on the same
disk....
--
Ragnar Kjørstad
-------------- next part --------------
--- LVM/0.8final.orig/tools/lib/liblvm.h Tue Feb 22 03:09:32 2000
+++ LVM/0.8final/tools/lib/liblvm.h Wed Apr 19 19:12:11 2000
@@ -47,7 +47,7 @@
# include <linux/version.h>
#endif
-#include <gnu/types.h>
+#include <sys/types.h>
#include <sys/stat.h>
-------------- next part --------------
--- LVM/0.8final.orig/tools/lvdisplay.c Tue Feb 22 03:09:33 2000
+++ LVM/0.8final/tools/lvdisplay.c Wed Apr 19 19:14:33 2000
@@ -149,7 +149,7 @@
return LVM_ELVDISPLAY_LV_MISSING;
}
- if ( opt_c + opt_v > 1) {
+ if ( opt_c && opt_v ) {
fprintf ( stderr, "%s -- option v not allowed with option c\n\n", cmd);
return LVM_ELVDISPLAY_LV_MISSING;
}
-------------- next part --------------
--- LVM/0.8final.orig/tools/pvmove.c Tue Feb 22 03:09:33 2000
+++ LVM/0.8final/tools/pvmove.c Wed Apr 19 19:33:12 2000
@@ -292,13 +292,6 @@
return LVM_EPVMOVE_VG_CHECK_CONSISTENCY;
}
- if ( vg->pv_cur == 1) {
- fprintf ( stderr, "%s -- volume group \"%s\" only has 1 "
- "physical volume\n\n",
- cmd, vg_name);
- return LVM_EPVMOVE_PV_CUR;
- }
-
/* get index of source physical volume */
if ( opt_v > 0) printf ( "%s -- searching for source physical volume \"%s\" "
"in volume group \"%s\"\n",
More information about the linux-lvm
mailing list