From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=DATE_IN_PAST_24_48,DMARC_NONE, INVALID_DATE,MAILING_LIST_MULTI autolearn=no autolearn_force=no version=4.0.0 Received: from smtp07.iafrica.com ([196.2.51.6]) by cvs.gentoo.org with esmtp (Exim 3.30 #1) id 15oH1T-0006si-00 for gentoo-dev@cvs.gentoo.org; Mon, 01 Oct 2001 22:19:12 -0600 Received: from nosferatu.lan ([196.30.179.247]) by smtp07.iafrica.com (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0GKK005FY9EIMY@smtp07.iafrica.com> for gentoo-dev@cvs.gentoo.org; Tue, 2 Oct 2001 06:20:44 +0200 (SAT) From: Martin Schlemmer Subject: Re: [gentoo-dev] 2.4.10 errors In-reply-to: <20011001191013.D11404@cvs.gentoo.org> To: gentoo-dev@cvs.gentoo.org Message-id: <1001996465.956.45.camel@nosferatu.lan> MIME-version: 1.0 X-Mailer: Evolution/0.14 (Preview Release) Content-type: multipart/mixed; boundary="=-ECHmr93UZ2eIcW+jEQ8+" References: <20011001192054.1416d8d4.erichey2@home.com> <20011001191013.D11404@cvs.gentoo.org> Sender: gentoo-dev-admin@cvs.gentoo.org Errors-To: gentoo-dev-admin@cvs.gentoo.org X-BeenThere: gentoo-dev@cvs.gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@cvs.gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Mon Oct 1 22:20:02 2001 X-Original-Date: Tue, 02 Oct 2001 06:21:03 +0200 X-Archives-Salt: 73737851-4718-42c8-ab4b-4be20d35af22 X-Archives-Hash: 370581986ab2b5c6821fbd4682fb47e1 --=-ECHmr93UZ2eIcW+jEQ8+ Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 --=-ECHmr93UZ2eIcW+jEQ8+ Content-Type: text/plain Content-Disposition: attachment; filename=lvm-1.0.1-rc2-2.4.10.patch.diff Content-ID: <1001996456.899.44.camel@nosferatu.lan> Content-Transfer-Encoding: 7bit --- 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); --=-ECHmr93UZ2eIcW+jEQ8+--