[stgt] [PATCH] tgt-admin: fix parsing information from direct device
Doron Shoham
dorons at Voltaire.COM
Sun Sep 14 10:08:27 CEST 2008
fix parsing information from direct device
Signed-off-by: Doron Shoham <dorons at voltaire.com>
---
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 at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list