* [linux-lvm] LVM with loopback
@ 2001-01-19 16:34 Mark D. Leistner
2001-01-19 17:20 ` Joe Thornber
0 siblings, 1 reply; 2+ messages in thread
From: Mark D. Leistner @ 2001-01-19 16:34 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 222 bytes --]
Can someone please give me, or point me to some help using LVM with loopback filesystems. I would like to test it out some before I use it on my systems, and I haven't been able to get it to work right. Thanks!
Mark
[-- Attachment #2: Type: text/html, Size: 608 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] LVM with loopback
2001-01-19 16:34 [linux-lvm] LVM with loopback Mark D. Leistner
@ 2001-01-19 17:20 ` Joe Thornber
0 siblings, 0 replies; 2+ messages in thread
From: Joe Thornber @ 2001-01-19 17:20 UTC (permalink / raw)
To: linux-lvm
Mark,
This is the patch I use to get LVM working with the loopback like
device in user mode linux. It's possible you just need the last hunk.
Please don't use this on a production system.
- Joe
diff -ur LVM/tools/lib/lvm_check_dev.c LVM_um/tools/lib/lvm_check_dev.c
--- LVM/tools/lib/lvm_check_dev.c Mon Nov 13 00:20:11 2000
+++ LVM_um/tools/lib/lvm_check_dev.c Wed Jan 10 10:55:06 2001
@@ -121,6 +121,7 @@
#ifdef DASD_MAJOR
DASD_MAJOR,
#endif
+ 98, /* UBD device for user mode linux */
-1
};
diff -ur LVM/tools/lib/lvm_dir_cache.c LVM_um/tools/lib/lvm_dir_cache.c
--- LVM/tools/lib/lvm_dir_cache.c Fri Jan 5 11:46:14 2001
+++ LVM_um/tools/lib/lvm_dir_cache.c Wed Jan 10 10:56:26 2001
@@ -63,6 +63,7 @@
char blocks[20] = { 0, };
char devname[30] = { 0, };
static char *devdir[] = {
+ "/dev/ubd",
"/dev/ida",
"/dev/ide/hd",
"/dev/loop",
@@ -83,7 +84,7 @@
ret = -LVM_EPARAM;
goto lvm_dir_cache_end;
}
-
+#if 0
if ( ( proc = fopen ( "/proc/partitions", "r")) != NULL) {
while ( !feof ( proc)) {
fgets ( line, 511, proc);
@@ -96,7 +97,8 @@
}
fclose ( proc);
}
- if ( cache_size == 0 && lvm_check_devfs() == FALSE) {
+#endif
+ if ( cache_size == 0) { /* && lvm_check_devfs() == FALSE) {*/
for ( d = 0; devdir[d] != NULL; d++) {
dirname = devdir[d];
#ifdef DEBUG
diff -ur LVM/tools/lib/pv_get_size.c LVM_um/tools/lib/pv_get_size.c
--- LVM/tools/lib/pv_get_size.c Thu Dec 21 13:58:36 2000
+++ LVM_um/tools/lib/pv_get_size.c Wed Jan 10 10:56:59 2001
@@ -48,7 +48,7 @@
#include <liblvm.h>
-#ifndef __alpha__
+#if 0
int pv_get_size ( char *dev_name, struct partition *part_ptr) {
int i = 0;
int dir_cache_count = 0;
On Fri, Jan 19, 2001 at 11:34:46AM -0500, Mark D. Leistner wrote:
> Can someone please give me, or point me to some help using LVM with loopback filesystems. I would like to test it out some before I use it on my systems, and I haven't been able to get it to work right. Thanks!
>
> Mark
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-19 17:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-19 16:34 [linux-lvm] LVM with loopback Mark D. Leistner
2001-01-19 17:20 ` Joe Thornber
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.