Skip to contentSkip to conversation

EMC Clariion path checker: change scsi read buffer size to 4096 bytes

PATCH New Guido Guenther 1 participant 1 message Jul 30, 2007 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EMC Clariion path checker: change scsi read buffer size to 4096 bytes

648833108fc5a95cbe15bd779289e98165c34d25 changed the scsi read buffer to 4096 bytes but forgot the emc patch checker. This fixes an immediate segfault on startup.

---
 libcheckers/emc_clariion.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
libcheckers/emc_clariion.c +1 -1
index d801b42..6c7167e 100644
@@ -176,7 +176,7 @@ int emc_clariion(struct checker * c)
 	 * Issue read on active path to determine if inactive snapshot.
 	 */
 	if (sense_buffer[4] == 2) {/* if active path */
-		unsigned char buf[512];
+		unsigned char buf[4096];
 
 		ret = sg_read(c->fd, &buf[0], sbb = &sb[0]);
 		if (ret == PATH_DOWN) {
Signature · 1 line
1.5.2.4