All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] kernel-Oops in 2.4.19 with LVM-1.0.5 + devfs
Date: Wed Aug 14 06:07:02 2002	[thread overview]
Message-ID: <20020814125258.A3448@sistina.com> (raw)
In-Reply-To: <20020814150744kaoru@rifu.bsd.tnes.nec.co.jp>; from kaoru@bsd.tnes.nec.co.jp on Wed, Aug 14, 2002 at 03:07:44PM +0900

Kaoru,

thanks for pointing this one out :)

It is the only occurence where we forgot to store the return value.
Patch looks correct to me.
Will integrate and test...
Soon to be in CVS in branch LVM_BRANCH_1-0.

Regards,
Heinz    -- The LVM Guy --

On Wed, Aug 14, 2002 at 03:07:44PM +0900, kaoru@bsd.tnes.nec.co.jp wrote:
> Hi,
> 
> When I executed the following commands, I get oops 
> running under 2.4.19-rc3 kernel with LVM-1.0.5 + devfs.
> 
> # lvrename /dev/vg11/lv11_01 /dev/vg11/lv11_01new
> # vgdisplay -v vg11
> 
> I executed "cat /proc/partitions" instead of "vgdisplay",
> oops occurred, too. 
> 
> I think that the cause of this is the return value of 
> lvm_fs_create_lv() is ignored which is called within 
> a lvm_do_lv_rename function.
> 
> I made the following patch for this problem, and it seems 
> to work. Any comments? 
> 
> ---8<-----------8<----------8<----------8<----------8<----------
> 
> --- linux/drivers/md/lvm.c.orig  Fri Aug  2 08:51:06 2002
> +++ linux/drivers/md/lvm.c       Fri Aug  2 08:50:48 2002
> @@ -2710,6 +2710,7 @@
>                 {
>                         lvm_fs_remove_lv(vg_ptr, lv_ptr);
>                         strncpy(lv_ptr->lv_name, lv_req->lv_name, NAME_LEN);
> +                       lvm_gendisk.part[MINOR(lv_ptr->lv_dev)].de =
>                         lvm_fs_create_lv(vg_ptr, lv_ptr);
>                         break;
>                 }
> 
> ---8<-----------8<----------8<----------8<----------8<----------
> 
> --------------------
> Kaoru
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen@Sistina.com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

      reply	other threads:[~2002-08-14  6:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-14  1:08 [linux-lvm] kernel-Oops in 2.4.19 with LVM-1.0.5 + devfs kaoru
2002-08-14  6:07 ` Heinz J . Mauelshagen [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=20020814125258.A3448@sistina.com \
    --to=mauelshagen@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.