From: Urs Thuermann <urs@isnogud.escape.de>
To: linux-lvm@sistina.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: [linux-lvm] Bugs in LVM and ext2: patch for LVM
Date: 28 Feb 2001 18:53:33 +0100 [thread overview]
Message-ID: <m21ysik82q.fsf_-_@isnogud.escape.de> (raw)
In-Reply-To: <200102272007.f1RK7aM27545@webber.adilger.net> <m21ysi3m0z.fsf@isnogud.escape.de>
In-Reply-To: <m21ysi3m0z.fsf@isnogud.escape.de>; from Urs Thuermann on 28 Feb 2001 15:44:12 +0100
Urs Thuermann <urs@isnogud.escape.de> writes:
> I've read lots of EXT2 and LVM src code and I think it turns out that
> there is a bug in both. Andreas has already given the fix for the
> ext2, a suggestion for LVM is below (sorry, no patch, I really know to
> little about all the block sizes and buffers of block devices).
Despite my limited knowledge of the src code for buffering and block
devices I have made an patch which fixes the LVM problem for me. I'm
not 100% sure it is correct and if it is the clean solution. Some
kernel god should therefore take a look on it. At least I have
running it here in my kernel.
--- linux-2.4.2/drivers/md/lvm.c.orig Wed Feb 28 18:27:40 2001
+++ linux-2.4.2/drivers/md/lvm.c Wed Feb 28 17:00:25 2001
@@ -376,6 +376,8 @@
static struct hd_struct lvm_hd_struct[MAX_LV];
static int lvm_blocksizes[MAX_LV] =
{0,};
+static int lvm_hardsizes[MAX_LV] =
+{0,};
static int lvm_size[MAX_LV] =
{0,};
static struct gendisk lvm_gendisk =
@@ -3035,11 +3037,12 @@
lvm_gendisk.part[i].start_sect = -1; /* avoid partition check */
lvm_size[i] = lvm_gendisk.part[i].nr_sects = 0;
lvm_blocksizes[i] = BLOCK_SIZE;
+ lvm_hardsizes[i] = BLOCK_SIZE;
}
blk_size[MAJOR_NR] = lvm_size;
blksize_size[MAJOR_NR] = lvm_blocksizes;
- hardsect_size[MAJOR_NR] = lvm_blocksizes;
+ hardsect_size[MAJOR_NR] = lvm_hardsizes;
return;
} /* lvm_gen_init() */
prev parent reply other threads:[~2001-02-28 17:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200102272007.f1RK7aM27545@webber.adilger.net>
2001-02-28 14:44 ` Bugs in LVM and ext2 + suggestion for fix (was: Problem mounting ext2 fs on LVM) Urs Thuermann
2001-02-28 17:53 ` Urs Thuermann [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=m21ysik82q.fsf_-_@isnogud.escape.de \
--to=urs@isnogud.escape.de \
--cc=linux-kernel@vger.kernel.org \
--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
all inboxes | Powered by JetHome®