From: Andreas Dilger <adilger@turbolinux.com>
To: linux-lvm@sistina.com
Cc: John DeFranco <defranco@cup.hp.com>
Subject: Re: [linux-lvm] Old problem cropping up again with 0.9 lvm tools?
Date: Wed, 29 Nov 2000 11:49:23 -0700 (MST) [thread overview]
Message-ID: <200011291849.eATInOJ22818@webber.adilger.net> (raw)
In-Reply-To: <20001129174952.A26362@colombina.comedia.it> "from Luca Berra at Nov 29, 2000 05:49:52 pm"
Luca writes:
> you should apply the attached patch
Heinz, I believe this patch was also included in my 0.8 patchset, but
was dropped from 0.8.1...
Cheers, Andreas
===========================================================================
--- lib/pv_get_size.c.bluca Mon Nov 13 01:20:11 2000
+++ lib/pv_get_size.c Sun Nov 26 10:53:09 2000
@@ -87,6 +87,7 @@
goto pv_get_size_end;
}
+ memset ( disk_dev_name, 0, sizeof ( disk_dev_name));
if ( ( cache_entry = lvm_dir_cache_find ( dev_name)) != NULL) {
if ( lvm_check_partitioned_dev ( cache_entry->st_rdev) == TRUE) {
st_rdev = cache_entry->st_rdev -
@@ -96,14 +97,14 @@
if ( dir_cache[i].st_rdev == st_rdev)
break;
}
- }
+ strncpy ( disk_dev_name, dir_cache[i].dev_name, sizeof ( disk_dev_name) - 1);
+ } else {
+ strncpy ( disk_dev_name, dev_name, sizeof ( disk_dev_name) - 1);
+ }
} else {
ret = -LVM_EPV_GET_SIZE_LVM_DIR_CACHE;
goto pv_get_size_end;
}
-
- memset ( disk_dev_name, 0, sizeof ( disk_dev_name));
- strncpy ( disk_dev_name, dir_cache[i].dev_name, sizeof ( disk_dev_name) - 1);
first = 1;
if ( ( pv_handle = open ( disk_dev_name, O_RDONLY)) == -1) {
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
next prev parent reply other threads:[~2000-11-29 18:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-29 3:51 [linux-lvm] Old problem cropping up again with 0.9 lvm tools? John DeFranco
2000-11-29 16:49 ` Luca Berra
2000-11-29 18:49 ` Andreas Dilger [this message]
2000-11-29 21:57 ` Heinz J. Mauelshagen
2000-11-29 21:59 ` Heinz J. Mauelshagen
2000-12-01 13:17 ` Luca Berra
2000-12-03 13:53 ` Heinz J. Mauelshagen
2000-12-03 13:54 ` Heinz J. Mauelshagen
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=200011291849.eATInOJ22818@webber.adilger.net \
--to=adilger@turbolinux.com \
--cc=defranco@cup.hp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox