From: Patrick Caulfield <caulfield@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] VFS-Patch
Date: Mon Oct 29 02:59:02 2001 [thread overview]
Message-ID: <20011029084748.E4182@tykepenguin.com> (raw)
In-Reply-To: <20011026140658.57325.qmail@web14401.mail.yahoo.com>; from shahi_aman@yahoo.com on Fri, Oct 26, 2001 at 07:06:58AM -0700
On Fri, Oct 26, 2001 at 07:06:58AM -0700, Aman Shahi wrote:
>
> Hi Patrick,
> I tried with both 2.4.12-ac5 and 2.4.12-ac6 yesterday.
> Kernel compilation was giving error on alloc_kiovec
> and free_kiovec in lvm-snap.c. I replaced them with
> alloc_kiovec_sz and free_kiovec_sz and added one more
> int pointer in the calls. I am not sure whether that
> was proper, but I was able to compile the kernel. I
> was using 2.4.11 VFS-lock patch as u said.
>
> But when using snapshot my Machine got hung. I tried
> 2-3 times with both ac5 and ac6. But all the time the
> machine got hund and FS got corrupted.
>
> What might have I done wrong ?
That last parameter to alloc/free_kiovec_sz is the size of the
vector - it should be a pointer to an int that has the value
KIO_MAX_SECTORS
eg:
int ret, max_sectors;
int nbhs = KIO_MAX_SECTORS;
/* allocate kiovec to do chunk io */
ret = alloc_kiovec_sz(1, &lv_snap->lv_iobuf, &nbhs);
if (ret) goto out;
max_sectors = KIO_MAX_SECTORS << (PAGE_SHIFT-9);
ret = lvm_snapshot_alloc_iobuf_pages(lv_snap->lv_iobuf, max_sectors);
if (ret) goto out_free_kiovec;
/* allocate kiovec to do exception table io */
ret = alloc_kiovec_sz(1, &lv_snap->lv_COW_table_iobuf, &nbhs);
if (ret) goto out_free_kiovec;
Unfortunatley there's no sensible way in the patch builder to detect an ac
kernel that has this API change so it can;t be done automatically at present.
patrick
next prev parent reply other threads:[~2001-10-29 2:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-26 9:06 [linux-lvm] VFS-Patch Aman Shahi
2001-10-26 11:06 ` Chris Mason
2001-10-29 2:59 ` Patrick Caulfield [this message]
2001-10-29 8:45 ` [linux-lvm] What is VFS Mitch Miller
2001-10-29 9:33 ` Goetz Bock
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=20011029084748.E4182@tykepenguin.com \
--to=caulfield@sistina.com \
--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 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.