[PATCH] tgt-admin: fix parsing information from direct device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fix parsing information from direct device

Signed-off-by: Doron Shoham <dorons@xxxxxxxxxxxx>
---
 scripts/tgt-admin |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/tgt-admin b/scripts/tgt-admin
index 22c4725..3bc5116 100755
--- a/scripts/tgt-admin
+++ b/scripts/tgt-admin
@@ -300,7 +300,7 @@ sub process_options {
 			# Check if device exists
 			if ( -e $direct_store) {
 				$inq=`sg_inq $direct_store`;
-				if ($inq=~/Vendor identification:\s*(\w+)\s*\n*Product identification:\s*([\w\s\/\-]+)\n\s*\n*Product revision level:\s*(\w*)\s*\n*Unit serial number:\s*(\w+)/)
+				if ($inq=~/Vendor identification:\s*(\w+)\s*\n*Product identification:\s*([\w\s\/\-]+)\n\s*\n*Product revision level:\s*(\S*)\s*\n*Unit serial number:\s*(\S+)/)
 				{
 					$vendor_id="$1";
 					$prod_id="$2";
-- 
1.5.3.8

--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux