* LVM2/lib/locking locking.c
@ 2008-09-10 10:14 mbroz
0 siblings, 0 replies; only message in thread
From: mbroz @ 2008-09-10 10:14 UTC (permalink / raw)
To: lvm-devel
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2008-09-10 10:14:59
Modified files:
lib/locking : locking.c
Log message:
Do not scan for lvm1 entries in /proc if not running 2.4 kernel.
(LVM1 is only present in 2.4 kernel.)
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/locking/locking.c.diff?cvsroot=lvm2&r1=1.49&r2=1.50
--- LVM2/lib/locking/locking.c 2008/05/09 18:45:15 1.49
+++ LVM2/lib/locking/locking.c 2008/09/10 10:14:59 1.50
@@ -292,6 +292,10 @@
if (is_orphan_vg(vgname))
return 1;
+ /* LVM1 is only present in 2.4 kernels. */
+ if (strncmp(cmd->kernel_vsn, "2.4.", 4))
+ return 1;
+
if (dm_snprintf(path, sizeof(path), "%s/lvm/VGs/%s", cmd->proc_dir,
vgname) < 0) {
log_error("LVM1 proc VG pathname too long for %s", vgname);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-09-10 10:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-10 10:14 LVM2/lib/locking locking.c mbroz
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.