From: Andrew Morton <akpm@digeo.com>
To: "Robert P. J. Day" <rpjday@mindspring.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.5.66-bk12 causes "rpm" errors
Date: Sun, 6 Apr 2003 18:32:34 -0700 [thread overview]
Message-ID: <20030406183234.1e8abd7f.akpm@digeo.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0304062117150.1198-100000@localhost.localdomain>
"Robert P. J. Day" <rpjday@mindspring.com> wrote:
>
>
> got 2.5.66-bk12 to boot on my inspiron 8100, and ran
> "rpm -q iptables", got the following:
>
> rpmdb: write: 0xbfffc2d0, 8192: Invalid argument
> error: db4 error(22) from dbenv->open: Invalid argument
> error: cannot open Packages index using db3 - Invalid argument (22)
> error: cannot open Packages database in /var/lib/rpm
> package iptables is not installed
>
Does it work OK with earlier 2.5 kernels?
The only change which comes to mind is the below one. Could you do a
patch -R of this and retest?
Also, the log from `strace -f -o log rpm -q iptables' would be interesting.
Thanks.
mm/filemap.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff -puN mm/filemap.c~file-limit-checking-cleanup mm/filemap.c
--- 25/mm/filemap.c~file-limit-checking-cleanup 2003-04-02 22:51:02.000000000 -0800
+++ 25-akpm/mm/filemap.c 2003-04-02 22:51:02.000000000 -0800
@@ -1509,9 +1509,8 @@ inline int generic_write_checks(struct i
send_sig(SIGXFSZ, current, 0);
return -EFBIG;
}
- if (*pos > 0xFFFFFFFFULL || *count > limit-(u32)*pos) {
- /* send_sig(SIGXFSZ, current, 0); */
- *count = limit - (u32)*pos;
+ if (*count > limit - (typeof(limit))*pos) {
+ *count = limit - (typeof(limit))*pos;
}
}
}
@@ -1525,9 +1524,8 @@ inline int generic_write_checks(struct i
send_sig(SIGXFSZ, current, 0);
return -EFBIG;
}
- if (*count > MAX_NON_LFS - (u32)*pos) {
- /* send_sig(SIGXFSZ, current, 0); */
- *count = MAX_NON_LFS - (u32)*pos;
+ if (*count > MAX_NON_LFS - (unsigned long)*pos) {
+ *count = MAX_NON_LFS - (unsigned long)*pos;
}
}
_
next prev parent reply other threads:[~2003-04-07 1:21 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-07 1:18 Robert P. J. Day
2003-04-07 1:32 ` Andrew Morton [this message]
2003-04-07 1:41 ` Robert Love
2003-04-07 1:47 ` Robert Love
2003-04-07 11:45 ` Alan Cox
2003-04-07 14:53 ` Robert Love
2003-04-07 14:17 ` Alan Cox
2003-04-07 1:49 ` Robert Love
2003-04-07 2:59 ` J Sloan
2003-04-07 12:07 ` Robert P. J. Day
2003-04-07 2:04 ` Robert P. J. Day
2003-04-07 1:28 ` Andrew Morton
2003-04-07 3:15 ` Robert Love
2003-04-07 3:19 ` Robert Love
2003-04-07 3:29 ` Andrew Morton
2003-04-07 3:35 ` Robert Love
2003-04-07 9:05 ` Felipe Alfaro Solana
2004-04-20 8:10 Fred Shaul
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=20030406183234.1e8abd7f.akpm@digeo.com \
--to=akpm@digeo.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rpjday@mindspring.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
all inboxes | Powered by JetHome®