From: Goetz Bock <bock@blacknet.de>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Linux 2.4.13-ac7 missing/wrong methods
Date: Sun Nov 4 17:39:01 2001 [thread overview]
Message-ID: <20011105004028.A322@dragon.blacknet.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 3109 bytes --]
Hi,
after I'v just installed a new server with Linux 2.4.13-ac7 and LVM
1.0.1-rc4, I'd just wanted to tell you (dear list) that there are two
missing symbols in lvm-snap.c
I've used vanila 2.4.13 applied the ac7 patch, the 2.4.11-vfs... patch
and the LVM patch generated by today (as of about 12:00 GMT) CVS
version.
Patching and comiling worked flawlessly (except for the known bug of
patching Makefile twice and the attemp to remove the lvm-snap.h (IIRC))
but make modules_install failed whith two symbols missing.
After some reading of the code and the patches I've made the inlined
patch. With it everyting works fine (well, for some reasons my initrd
does not work as exspected and I will have to try again later to move to
a LVM root ... (if someone should care, I've nothing but the described
patches applied, but am using devfs))
---------------------------------------------------------------------------
--- linux-2.4.13-ac7-broken/drivers/md/lvm-snap.c Sun Nov 4 21:51:05 2001
+++ linux-2.4.13-ac7/drivers/md/lvm-snap.c Sun Nov 4 21:45:14 2001
@@ -542,9 +542,10 @@
int lvm_snapshot_alloc(lv_t * lv_snap)
{
int ret, max_sectors;
+ int nbhs = KIO_MAX_SECTORS;
/* allocate kiovec to do chunk io */
- ret = alloc_kiovec(1, &lv_snap->lv_iobuf);
+ ret = alloc_kiovec_sz(1, &lv_snap->lv_iobuf, &nbhs);
if (ret) goto out;
max_sectors = KIO_MAX_SECTORS << (PAGE_SHIFT-9);
@@ -553,7 +554,7 @@
if (ret) goto out_free_kiovec;
/* allocate kiovec to do exception table io */
- ret = alloc_kiovec(1, &lv_snap->lv_COW_table_iobuf);
+ ret = alloc_kiovec_sz(1, &lv_snap->lv_COW_table_iobuf, &nbhs);
if (ret) goto out_free_kiovec;
ret = lvm_snapshot_alloc_iobuf_pages(lv_snap->lv_COW_table_iobuf,
@@ -568,12 +569,12 @@
out_free_both_kiovecs:
unmap_kiobuf(lv_snap->lv_COW_table_iobuf);
- free_kiovec(1, &lv_snap->lv_COW_table_iobuf);
+ free_kiovec_sz(1, &lv_snap->lv_COW_table_iobuf, &nbhs);
lv_snap->lv_COW_table_iobuf = NULL;
out_free_kiovec:
unmap_kiobuf(lv_snap->lv_iobuf);
- free_kiovec(1, &lv_snap->lv_iobuf);
+ free_kiovec_sz(1, &lv_snap->lv_iobuf, &nbhs);
lv_snap->lv_iobuf = NULL;
vfree(lv_snap->lv_snapshot_hash_table);
lv_snap->lv_snapshot_hash_table = NULL;
@@ -582,6 +583,8 @@
void lvm_snapshot_release(lv_t * lv)
{
+ int nbhs = KIO_MAX_SECTORS;
+
if (lv->lv_block_exception)
{
vfree(lv->lv_block_exception);
@@ -597,14 +600,14 @@
{
kiobuf_wait_for_io(lv->lv_iobuf);
unmap_kiobuf(lv->lv_iobuf);
- free_kiovec(1, &lv->lv_iobuf);
+ free_kiovec_sz(1, &lv->lv_iobuf, &nbhs);
lv->lv_iobuf = NULL;
}
if (lv->lv_COW_table_iobuf)
{
kiobuf_wait_for_io(lv->lv_COW_table_iobuf);
unmap_kiobuf(lv->lv_COW_table_iobuf);
- free_kiovec(1, &lv->lv_COW_table_iobuf);
+ free_kiovec_sz(1, &lv->lv_COW_table_iobuf, &nbhs);
lv->lv_COW_table_iobuf = NULL;
}
}
---------------------------------------------------------------------------
--
Goetz Bock IT Consultant
Dipl.-Inf. Univ.
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2001-11-04 17:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-04 17:39 Goetz Bock [this message]
2001-11-05 3:36 ` [linux-lvm] Linux 2.4.13-ac7 missing/wrong methods Joe Thornber
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=20011105004028.A322@dragon.blacknet.de \
--to=bock@blacknet.de \
--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).