public inbox for lvm2-cvs@sourceware.org
help / color / mirror / Atom feed
From: prajnoha@sourceware.org
To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org
Subject: LVM2 ./WHATS_NEW_DM libdm/libdm-common.c
Date: Tue, 28 Feb 2012 08:36:00 -0000	[thread overview]
Message-ID: <20120228083652.15070.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha@sourceware.org	2012-02-28 08:36:51

Modified files:
	.              : WHATS_NEW_DM 
	libdm          : libdm-common.c 

Log message:
	Fix dm_task_set_name to properly resolve path to dm name.
	
	Wrong variable was checked in _dm_task_set_name_from_path.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW_DM.diff?cvsroot=lvm2&r1=1.574&r2=1.575
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/libdm/libdm-common.c.diff?cvsroot=lvm2&r1=1.141&r2=1.142

--- LVM2/WHATS_NEW_DM	2012/02/23 22:45:43	1.574
+++ LVM2/WHATS_NEW_DM	2012/02/28 08:36:51	1.575
@@ -1,5 +1,6 @@
 Version 1.02.73 - 
 ====================================
+  Fix dm_task_set_name to properly resolve path to dm name (1.02.71).
   Add dm_strncpy() function as a faster strncpy() replacement.
 
 Version 1.02.72 - 23rd February 2012
--- LVM2/libdm/libdm-common.c	2012/02/15 12:23:16	1.141
+++ LVM2/libdm/libdm-common.c	2012/02/28 08:36:51	1.142
@@ -526,7 +526,7 @@
 		return 0;
 	}
 
-	if (!stat(path, &st2) && (st1.st_rdev == st2.st_rdev))
+	if (!stat(buf, &st2) && (st1.st_rdev == st2.st_rdev))
 		final_name = name;
 	else if (_find_dm_name_of_device(st1.st_rdev, buf, sizeof(buf)))
 		final_name = buf;


             reply	other threads:[~2012-02-28  8:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-28  8:36 prajnoha [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-05 12:45 prajnoha
2012-02-13 10:49 zkabelac
2012-02-08 11:07 zkabelac
2011-03-30 12:14 zkabelac
2010-08-03  7:56 prajnoha
2010-05-27 15:02 prajnoha
2009-09-25 18:08 agk

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=20120228083652.15070.qmail@sourceware.org \
    --to=prajnoha@sourceware.org \
    --cc=lvm-devel@redhat.com \
    --cc=lvm2-cvs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).