FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 04-14-2008, 05:59 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL4_FC5
Changes by: bmarzins@sourceware.org 2008-04-14 17:59:55

Modified files:
libmultipath : discovery.c

Log message:
Move the fd close call to fix a regression caused by the max_fd work.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC 5&r1=1.28.2.6&r2=1.28.2.7

--- multipath-tools/libmultipath/discovery.c 2008/03/05 20:53:14 1.28.2.6
+++ multipath-tools/libmultipath/discovery.c 2008/04/14 17:59:54 1.28.2.7
@@ -737,10 +737,6 @@
condlog(3, "serial = %s", pp->serial);
}

-#ifndef DAEMON
- close(pp->fd);
- pp->fd = -1;
-#endif
return 0;
}

@@ -827,6 +823,10 @@
else if (strlen(pp->wwid))
condlog(3, "uid = %s (cache)", pp->wwid);

+#ifndef DAEMON
+ close(pp->fd);
+ pp->fd = -1;
+#endif
return 0;

out:

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 11-23-2009, 08:08 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2009-11-23 21:08:34

Modified files:
libmultipath : discovery.c

Log message:
Fix for 527754. multipathd no longer waits for sysfs to create
/sys/block/<devname>/device/state

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC 6&r1=1.32.2.8&r2=1.32.2.9

--- multipath-tools/libmultipath/discovery.c 2009/06/08 21:38:02 1.32.2.8
+++ multipath-tools/libmultipath/discovery.c 2009/11/23 21:08:34 1.32.2.9
@@ -197,7 +197,7 @@
}
#endif

-#define declare_sysfs_get_str(fname, fmt)
+#define declare_sysfs_get_str(fname, fmt, dowait)
extern int
sysfs_get_##fname (char * sysfs_path, char * dev, char * buff, int len)
{
@@ -207,7 +207,7 @@
if (safe_sprintf(attr_path, fmt, sysfs_path, dev))
return 1;

- if (wait_for_file(attr_path))
+ if (dowait && wait_for_file(attr_path))
return 1;

if (!(attr = sysfs_open_attribute(attr_path)))
@@ -228,14 +228,14 @@
return 1;
}

-declare_sysfs_get_str(devtype, "%s/block/%s/device/devtype");
-declare_sysfs_get_str(cutype, "%s/block/%s/device/cutype");
-declare_sysfs_get_str(vendor, "%s/block/%s/device/vendor");
-declare_sysfs_get_str(model, "%s/block/%s/device/model");
-declare_sysfs_get_str(rev, "%s/block/%s/device/rev");
-declare_sysfs_get_str(dev, "%s/block/%s/dev");
-declare_sysfs_get_str(bustype, "%s/block/%s/device/bus");
-declare_sysfs_get_str(state, "%s/block/%s/device/state");
+declare_sysfs_get_str(devtype, "%s/block/%s/device/devtype", 1);
+declare_sysfs_get_str(cutype, "%s/block/%s/device/cutype", 1);
+declare_sysfs_get_str(vendor, "%s/block/%s/device/vendor", 1);
+declare_sysfs_get_str(model, "%s/block/%s/device/model", 1);
+declare_sysfs_get_str(rev, "%s/block/%s/device/rev", 1);
+declare_sysfs_get_str(dev, "%s/block/%s/dev", 1);
+declare_sysfs_get_str(bustype, "%s/block/%s/device/bus", 1);
+declare_sysfs_get_str(state, "%s/block/%s/device/state", 0);

int
sysfs_get_size (char * sysfs_path, char * dev, unsigned long long * size)

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 05-25-2010, 11:23 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL4_FC5
Changes by: bmarzins@sourceware.org 2010-05-25 23:23:07

Modified files:
libmultipath : discovery.c

Log message:
Fix for bz #512065
If you can't get /sys/class/fc_transport/target%i:%i:%i/node_name, try
/sys/class/fc_transport/target%i:%i:%i/node_name.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL4_FC 5&r1=1.28.2.7&r2=1.28.2.8

--- multipath-tools/libmultipath/discovery.c 2008/04/14 17:59:54 1.28.2.7
+++ multipath-tools/libmultipath/discovery.c 2010/05/25 23:23:07 1.28.2.8
@@ -553,6 +553,21 @@
if (0 <= readattr(attr_path, attr_buff) && strlen(attr_buff) > 0)
strncpy(curpath->tgt_node_name, attr_buff,
strlen(attr_buff) - 1);
+ else {
+ if(safe_sprintf(attr_path,
+ "%s/class/iscsi_transport/target%i:%i:%i/target_name",
+ sysfs_path,
+ curpath->sg_id.host_no,
+ curpath->sg_id.channel,
+ curpath->sg_id.scsi_id)) {
+ condlog(0, "attr_path too small");
+ return 1;
+ }
+ if (0 <= readattr(attr_path, attr_buff) &&
+ strlen(attr_buff) > 0)
+ strncpy(curpath->tgt_node_name, attr_buff,
+ strlen(attr_buff) - 1);
+ }
condlog(3, "tgt_node_name = %s", curpath->tgt_node_name);

return 0;

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 08-11-2010, 11:05 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2010-08-11 23:05:50

Modified files:
libmultipath : discovery.c

Log message:
Fix for bz #576600
Patch to allow multipath to handle virtio devices. Mostly for testing purposes.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC 6&r1=1.32.2.14&r2=1.32.2.15

--- multipath-tools/libmultipath/discovery.c 2010/06/23 16:28:07 1.32.2.14
+++ multipath-tools/libmultipath/discovery.c 2010/08/11 23:05:50 1.32.2.15
@@ -481,6 +481,7 @@
char attr_path[FILE_NAME_SIZE];
char attr_buff[FILE_NAME_SIZE];
unsigned int unused;
+ char vdisk;

pp->bus = SYSFS_BUS_UNDEF;

@@ -489,6 +490,12 @@
strcpy(pp->product_id, "GNBD");
pp->hwe = find_hwe(conf->hwtable, pp->vendor_id, pp->product_id);
return 0;
+ } else if (sscanf(pp->dev, "vd%c", &vdisk) == 1 &&
+ 'a' <= vdisk && vdisk <= 'z'){
+ strcpy(pp->vendor_id, "VIRTIO");
+ strcpy(pp->product_id, "VIRTIO");
+ pp->hwe = find_hwe(conf->hwtable, pp->vendor_id, pp->product_id);
+ return 0;
}
/*
* This is ugly : we should be able to do a simple

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 03-07-2011, 02:45 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2011-03-07 15:45:15

Modified files:
libmultipath : discovery.c

Log message:
Increase the length of time we will wait for a file to be created. No applicable
upstream.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC 6&r1=1.32.2.18&r2=1.32.2.19

--- multipath-tools/libmultipath/discovery.c 2011/02/18 18:27:00 1.32.2.18
+++ multipath-tools/libmultipath/discovery.c 2011/03/07 15:45:15 1.32.2.19
@@ -181,7 +181,7 @@
* not multipath(8), ran by udev
*/
#if DAEMON
-#define WAIT_MAX_SECONDS 60
+#define WAIT_MAX_SECONDS 90
#define WAIT_LOOP_PER_SECOND 5

static int

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 
Old 07-20-2011, 09:24 PM
 
Default multipath-tools/libmultipath discovery.c

CVSROOT: /cvs/dm
Module name: multipath-tools
Branch: RHEL5_FC6
Changes by: bmarzins@sourceware.org 2011-07-20 21:24:52

Modified files:
libmultipath : discovery.c

Log message:
Fix for BZ# 703501. Change to cciss sysfs handling. Not applicable upstream

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/multipath-tools/libmultipath/discovery.c.diff?cvsroot=dm&only_with_tag=RHEL5_FC 6&r1=1.32.2.20&r2=1.32.2.21

--- multipath-tools/libmultipath/discovery.c 2011/04/05 18:41:45 1.32.2.20
+++ multipath-tools/libmultipath/discovery.c 2011/07/20 21:24:52 1.32.2.21
@@ -817,8 +817,7 @@
return 1;
}

- if(safe_sprintf(dev_path, "%s/device/cciss%u/c%ud%u", curpath->dev,
- controller, controller, lun)) {
+ if(safe_sprintf(dev_path, "%s/device", curpath->dev)) {
condlog(0, "dev_path too small");
return 1;
}

--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
 

Thread Tools




All times are GMT. The time now is 01:11 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org