[Stgt-devel] [PATCH] Define a larger SCSI_SN_LEN

Doron Shoham dorons
Tue Jul 8 14:52:04 CEST 2008


Hi,
Today, SCSI_SN_LEN is defined as 8 chars only.
I want to define a larger SCSI_SN_LEN in order to
export the real device's serial number.
This is required for using dm-multipath.
When several targets export the same device to the initiator we
will be able to use dm-multipath on the initiator. 

Thanks,
Doron



Define a larger SCSI_SN_LEN in order to
export the real device's serial number.

Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
 usr/tgtd.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/usr/tgtd.h b/usr/tgtd.h
index 62e3821..2f53fb8 100644
--- a/usr/tgtd.h
+++ b/usr/tgtd.h
@@ -5,7 +5,7 @@
 #include "scsi_cmnd.h"
 
 #define SCSI_ID_LEN		24
-#define SCSI_SN_LEN		8
+#define SCSI_SN_LEN		32
 
 #define VENDOR_ID_LEN		8
 #define PRODUCT_ID_LEN		16
-- 
1.5.2




More information about the stgt mailing list