From: Martin Schlemmer <azarah@gentoo.org>
To: gentoo-dev@cvs.gentoo.org
Subject: Re: [gentoo-dev] 2.4.10 errors
Date: Mon Oct 1 22:20:02 2001 [thread overview]
Message-ID: <1001996465.956.45.camel@nosferatu.lan> (raw)
In-Reply-To: <20011001191013.D11404@cvs.gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 798 bytes --]
On Tue, 2001-10-02 at 03:10, Daniel Robbins wrote:
> On Mon, Oct 01, 2001 at 07:20:54PM -0600, Collins Richey wrote:
> > Looks like the 2.4.10 ebuild is not quite ready for prime time. Note,
> > I did emerge rsync right before this, so I should have the latest
> > sources.
>
> Yes, this has already been discussed on the maillist. The most recent
> version of the LVM patch doesn't work with 2.4.10. To get around this,
> just disable LVM support in your kernel and it will compile fine; or
> stick with your previous kernel until the next LVM rc is released.
>
Hi
I sent a patch for this if you dont mind looking ..
It is the MIN/MAX fkup that Linus made ...
Greetings,
MS
--
Martin Schlemmer
Gentoo Linux Developer, Desktop Team Developer
Cape Town, South Africa
Town, South Africa
[-- Attachment #2: lvm-1.0.1-rc2-2.4.10.patch.diff --]
[-- Type: text/plain, Size: 1977 bytes --]
--- lvm-1.0.1-rc2-2.4.10.patch.orig Sun Sep 30 13:04:27 2001
+++ lvm-1.0.1-rc2-2.4.10.patch Sun Sep 30 13:06:59 2001
@@ -3043,7 +3043,7 @@
- lv_ptr->lv_current_pe[le].reads += pep1[le].reads;
- lv_ptr->lv_current_pe[le].writes += pep1[le].writes;
+ if (old_lv->lv_stripes < 2) { /* linear logical volume */
-+ end = min(uint, old_lv->lv_current_le, new_lv->lv_current_le);
++ end = min(old_lv->lv_current_le, new_lv->lv_current_le);
+ for (l = 0; l < end; l++) {
+ new_lv->lv_current_pe[l].reads +=
+ old_lv->lv_current_pe[l].reads;
@@ -3065,7 +3065,7 @@
- i < lv_ptr->lv_stripes; i++) {
+ old_stripe_size = old_lv->lv_allocated_le / old_lv->lv_stripes;
+ new_stripe_size = new_lv->lv_allocated_le / new_lv->lv_stripes;
-+ end = min(uint, old_stripe_size, new_stripe_size);
++ end = min(old_stripe_size, new_stripe_size);
+
+ for (i = source = dest = 0; i < new_lv->lv_stripes; i++) {
for (j = 0; j < end; j++) {
@@ -4146,8 +4146,8 @@
blksize_snap = lvm_get_blksize(snap_phys_dev);
- max_blksize = max(blksize_org, blksize_snap);
- min_blksize = min(blksize_org, blksize_snap);
-+ max_blksize = max(int, blksize_org, blksize_snap);
-+ min_blksize = min(int, blksize_org, blksize_snap);
++ max_blksize = max(blksize_org, blksize_snap);
++ min_blksize = min(blksize_org, blksize_snap);
max_sectors = KIO_MAX_SECTORS * (min_blksize>>9);
if (chunk_size % (max_blksize>>9))
@@ -4156,7 +4156,7 @@
while (chunk_size)
{
- nr_sectors = min(chunk_size, max_sectors);
-+ nr_sectors = min(int, chunk_size, max_sectors);
++ nr_sectors = min(chunk_size, max_sectors);
chunk_size -= nr_sectors;
iobuf->length = nr_sectors << 9;
@@ -4262,7 +4262,7 @@
buckets = lv->lv_remap_end;
max_buckets = calc_max_buckets();
- buckets = min(buckets, max_buckets);
-+ buckets = min(unsigned long, buckets, max_buckets);
++ buckets = min(buckets, max_buckets);
while (buckets & (buckets-1))
buckets &= (buckets-1);
prev parent reply other threads:[~2001-10-02 4:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-01 19:08 [gentoo-dev] 2.4.10 errors Collins Richey
2001-10-01 19:11 ` Daniel Robbins
2001-10-01 19:23 ` Collins Richey
2001-10-01 22:20 ` Martin Schlemmer [this message]
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=1001996465.956.45.camel@nosferatu.lan \
--to=azarah@gentoo.org \
--cc=gentoo-dev@cvs.gentoo.org \
/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