From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] lvm-1.0.1 patch causes kernel compile errors on SPARC64
Date: Mon Dec 3 02:34:02 2001 [thread overview]
Message-ID: <20011203083555.A1022@tykepenguin.com> (raw)
In-Reply-To: <Pine.GSO.4.21.0111300950270.5383-100000@devmail.dev.tivoli.com>
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;
}
next prev parent reply other threads:[~2001-12-03 2:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-30 10:47 [linux-lvm] lvm-1.0.1 patch causes kernel compile errors on SPARC64 Rich Scheller
2001-11-30 12:15 ` Patrick Caulfield
2001-12-03 2:34 ` Patrick Caulfield [this message]
2001-12-03 9:34 ` Rich Scheller
2001-12-03 10:42 ` Patrick Caulfield
2001-12-04 15:49 ` [linux-lvm] lvm-1.0.1 tools build error on SPARC64 (was: lvm-1.0.1 kernel compile errors on SPARC64) Rich Scheller
2001-12-05 10:06 ` Patrick Caulfield
2001-12-07 2:30 ` Patrick Caulfield
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011203083555.A1022@tykepenguin.com \
--to=caulfield@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox