From: Andreas Dilger <adilger@turbolabs.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] kernel 2.2.19 support
Date: Thu, 4 Oct 2001 11:10:23 -0600 [thread overview]
Message-ID: <20011004111023.C31061@turbolinux.com> (raw)
In-Reply-To: <wv3d4zh1r8.fsf@freeze.oslo.dnmi.no>
On Oct 04, 2001 17:18 +0200, Adrian Phillips wrote:
> Jesus Manuel NAVARRO LOPEZ <jesus_navarro@promofinarsa.es> writes:
> Note the change in hd_struct in include/linux/genhd.c between 2.2.19
> and 2.4.xxx :-
>
> # 2.2.19
> struct hd_struct {
> long start_sect;
> long nr_sects;
> int type; /* RAID or normal */
> };
>
> # 2.4.0-test12
> struct hd_struct {
> long start_sect;
> long nr_sects;
> devfs_handle_t de; /* primary (master) devfs entry */
> };
>
> So de is being set to the devfs_handle_t returned by lvm_fs_create_lv
> and this doesn't exist in 2.2.19. So what needs to be set in 2.2 ?
What you need to do to "properly" fix this is add a lines like
#if LINUX_VERSION_CODE > KERNEL_VERSION ( 2, 3, X)
foo.de = bar;
#endif
around the two offending code sections, and find the appropriate kernel version
where this entry was added. This can be done by looking at the kernel CVS:
http://lxr.linux.no/
(best to start by checking if it is in 2.4.0, or a recent addition, and then
going back through 2.3.X kernels).
Send the resulting patch back to the list.
Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
next prev parent reply other threads:[~2001-10-04 17:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-04 11:00 [linux-lvm] kernel 2.2.19 support Jesus Manuel NAVARRO LOPEZ
2001-10-04 11:17 ` Adrian Phillips
2001-10-04 11:56 ` Jesus Manuel NAVARRO LOPEZ
2001-10-04 12:03 ` Adrian Phillips
2001-10-04 12:17 ` Jesus Manuel NAVARRO LOPEZ
2001-10-04 15:18 ` Adrian Phillips
2001-10-04 17:10 ` Andreas Dilger [this message]
2001-10-04 17:18 ` Adrian Phillips
2001-10-04 17:49 ` Andreas Dilger
2001-10-04 18:05 ` Adrian Phillips
2001-10-11 15:19 ` Patrick Caulfield
2001-10-04 17:23 ` Christoph Hellwig
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=20011004111023.C31061@turbolinux.com \
--to=adilger@turbolabs.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;
as well as URLs for NNTP newsgroup(s).