[linux-lvm] lvm-1.0.1 patch causes kernel compile errors on SPARC64
Patrick Caulfield
caulfield at sistina.com
Mon Dec 3 02:34:02 UTC 2001
On Fri, Nov 30, 2001 at 10:49:29AM -0600, Rich Scheller wrote:
> I just tried to build a generic 2.4.16 kernel with lvm-1.0.1 patches on a
> Sun Enterprise 250, following the directions in lvm_1.0.1.tar.gz. I got
> an error in the SPARC 64/32-bit ioctl conversion code. Does anyone have
> any ideas on how to proceed? Is LVM even supported on SPARC64 platforms?
Here's a proper patch.
patrick
--- arch/sparc64/kernel/ioctl32.c.orig Mon Dec 3 08:34:04 2001
+++ arch/sparc64/kernel/ioctl32.c Mon Dec 3 08:33:33 2001
@@ -2667,7 +2667,7 @@
}
- v->pv[i]->pe = NULL; v->pv[i]->inode = NULL;
+ v->pv[i]->pe = NULL; v->pv[i]->bd = NULL;
}
}
if (!err) {
@@ -2709,14 +2709,14 @@
u.lv_bydev.lv = get_lv_t(ptr, &err);
if (err) return err;
u.lv_bydev.lv = &p;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
break;
case VG_EXTEND:
err = copy_from_user(&p, (void *)arg, sizeof(pv32_t) - 8 - UUID_LEN+1);
if (err) return -EFAULT;
err = copy_from_user(p.pv_uuid, ((pv32_t *)arg)->pv_uuid, UUID_LEN+1);
if (err) return -EFAULT;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
karg = &p;
break;
case PV_CHANGE:
@@ -2729,7 +2729,7 @@
if (cmd == PV_CHANGE) {
err = copy_from_user(&p, (void *)A(ptr), sizeof(pv32_t) - 8 - UUID_LEN+1);
if (err) return -EFAULT;
- p.pe = NULL; p.inode = NULL;
+ p.pe = NULL; p.bd = NULL;
}
break;
}
More information about the linux-lvm
mailing list