* [linux-lvm] Difficulty with RH 6.x and LVM
@ 2000-04-27 19:20 Michael Marxmeier
0 siblings, 0 replies; only message in thread
From: Michael Marxmeier @ 2000-04-27 19:20 UTC (permalink / raw)
To: linux-lvm
Forwarded message from Eric M. Hopper <hopper@omnifarious.mn.org> ...
-------- Original Message --------
From: "Eric M. Hopper" <hopper@omnifarious.mn.org>
Subject: Difficulty with RH 6.x and LVM
Message-ID: <20000427112349.A21088@omnifarious.mn.org>
The lines in the patches assume that the kernel to be patched
calls md_make_request like this:
md_make_request(MINOR (bh[i]->b_dev), rw, bh[i]);
The RedHat 6.x kernels seem to have a different md_make_request
that they call like this:
md_make_request(bh[i], rw);
As you may notice, there is a large discrepancy here that is
rather worrisome, since the change to use rdev instead of dev can't be
made in any way.
In drivers/block/md.c, RedHat's md_make_request looks like this:
int md_make_request (struct buffer_head * bh, int rw)
{
int err;
mddev_t *mddev = kdev_to_mddev(bh->b_dev);
if (!mddev || !mddev->pers) {
err = -ENXIO;
goto out;
}
if (mddev->pers->make_request) {
if (buffer_locked(bh)) {
err = 0;
goto out;
}
set_bit(BH_Lock, &bh->b_state);
if (rw == WRITE || rw == WRITEA) {
if (!buffer_dirty(bh)) {
bh->b_end_io(bh, buffer_uptodate(bh));
err = 0;
goto out;
}
}
if (rw == READ || rw == READA) {
if (buffer_uptodate(bh)) {
bh->b_end_io(bh, buffer_uptodate(bh));
err = 0;
goto out;
}
}
err = mddev->pers->make_request(mddev, rw, bh);
} else {
make_request (MAJOR(bh->b_rdev), rw, bh);
err = 0;
}
out:
return err;
}
Any suggestions as to how I apply the patch?
Thanks,
--
Its name is Public Opinion. It is held in reverence. It settles
everything.
Some think it is the voice of God. Loyalty to petrified opinion never
yet
broke a chain or freed a human soul. ---Mark Twain
-- Eric Hopper (hopper@omnifarious.mn.org
http://omnifarious.mn.org/~hopper) --
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-04-27 19:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-27 19:20 [linux-lvm] Difficulty with RH 6.x and LVM Michael Marxmeier
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.