From: Andre Margis <andre@sam.com.br>
To: linux-lvm@sistina.com
Subject: [linux-lvm] Patch for lvm-1.0.1-rc4 to work under linux-2.4.10-ac4
Date: Wed, 3 Oct 2001 19:36:00 -0300 [thread overview]
Message-ID: <200110032240.TAA05834@inter.lojasrenner.com.br> (raw)
In-Reply-To: <Pine.LNX.4.33.0110031934200.20952-100000@www.scotty.co.at>
I change two programs to run under linux.2.4.10-ac4
I don't if this is correct. I test on my machine a believe it's working
This is my corrections:
on lvm.c
line 457
/* insert our gendisk at the corresponding major */
/*
if (gendisk_head != NULL) {
gendisk_ptr = gendisk_head;
while (gendisk_ptr->next != NULL &&
gendisk_ptr->major > lvm_gendisk.major) {
gendisk_ptr = gendisk_ptr->next;
}
lvm_gendisk.next = gendisk_ptr->next;
gendisk_ptr->next = &lvm_gendisk;
} else {
gendisk_head = &lvm_gendisk;
lvm_gendisk.next = NULL;
}
*/
add_gendisk(&lvm_gendisk);
line 515
/*
gendisk_ptr = gendisk_ptr_prev = gendisk_head;
while (gendisk_ptr != NULL) {
if (gendisk_ptr == &lvm_gendisk)
break;
gendisk_ptr_prev = gendisk_ptr;
gendisk_ptr = gendisk_ptr->next;
}*/
/* delete our gendisk from chain */
/*
if (gendisk_ptr == &lvm_gendisk)
gendisk_ptr_prev->next = gendisk_ptr->next;*/
del_gendisk(&lvm_gendisk);
on lvm-snap.c
add line 53
int kio_max_sectors = KIO_MAX_SECTORS;
change all functions alloc_kiovec(a,b) by alloc_kiovec(a,b,&kio_max_sectors)
at lines 518 and 527.
change all functions free_kiovec(a,b) by free_kiovec(a,b,&kio_max_sectors)
at lines 543, 548, 573 and 580
My changes are correct?
Any help?
Thanks
Andre
prev parent reply other threads:[~2001-10-03 22:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-03 7:52 [linux-lvm] *** ANNOUNCEMENT *** LVM 1.0.1-rc3 available at www.sistina.com Heinz J . Mauelshagen
2001-10-03 10:29 ` [linux-lvm] Re: [lvm-devel] " Christoph Hellwig
2001-10-03 17:35 ` Friedrich Lobenstock
2001-10-03 22:36 ` Andre Margis [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=200110032240.TAA05834@inter.lojasrenner.com.br \
--to=andre@sam.com.br \
--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).