Linux LVM users
 help / color / mirror / Atom feed
From: Thomas Bader <thomasb@trash.net>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Does LVM compile on Sparc64?
Date: Fri Dec 14 11:54:02 2001	[thread overview]
Message-ID: <20011214185558.A11845@trash.net> (raw)

Hi Everybody

I got the source of Linux 2.2.20 and applied the patches of
LVM 1.0.1 (including Stephen Tweedie's rawio patch and
linux-2.2.18-sparc64.diff).

The patches do apply well, but it seems like there are some
missing definitions in include/linux/lvm.h:

duke:/usr/src/linux# make vmlinux
[snipped]
sparc64-linux-gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -m64 -pipe -mno-fpu -mcpu=ultrasparc -mcmodel=medlow -ffixed-g4 -fcall-used-g5 -fcall-used-g7 -Wno-sign-compare   -c -o ioctl32.o ioctl32.c
ioctl32.c: In function `do_lvm_ioctl':
ioctl32.c:2570: warning: assignment makes pointer from integer without a cast
ioctl32.c:2604: structure has no member named `inode'
ioctl32.c:2645: warning: assignment from incompatible pointer type
ioctl32.c:2646: structure has no member named `inode'
ioctl32.c:2653: structure has no member named `inode'
ioctl32.c:2666: structure has no member named `inode'
ioctl32.c:2545: warning: `v' might be used uninitialized in this function
make[1]: *** [ioctl32.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.2.20-RAID/arch/sparc64/kernel'
make: *** [_dir_arch/sparc64/kernel] Error 2
duke:/usr/src/linux#

ioctl32.c:2604 looks like:

v->pv[i]->pe = NULL; v->pv[i]->inode = NULL;

v makes use of vg_t and v->pv makes use of pv_t (both
defined in lvm.h)

lvm.h on sparc64 is completly different than on Intel.  I'm
just wondering now, if all the stuff gets fixed, if I apply
the struct member 'inode' to pv_t, like it is done on Intel.

Or are there any other patches, to run LVM 1.0.1 on sparc64?

Thanks & Cheers
Thomas
-- 
  .-.   Thomas Bader · thomasb@trash.net.remove · http://www.t-bader.ch/  .-.
  oo|                                                                     oo|
 /`'\     Einen Unix-Shellaccount gibt es unter http://www.trash.net/    /`'\
(\_;/)       PGP Key-ID: 0x3A4B7F5D (RSA)  0x7584F5D8 (DSA/EG)          (\_;/)

             reply	other threads:[~2001-12-14 11:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-14 11:54 Thomas Bader [this message]
2001-12-14 13:13 ` [linux-lvm] Does LVM compile on Sparc64? Patrick Caulfield
2001-12-14 15:38   ` Thomas Bader
2001-12-17  2:19     ` 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=20011214185558.A11845@trash.net \
    --to=thomasb@trash.net \
    --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