projects
/
invirt/packages/xvm-iscsi-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02d816b
)
Be less overzealous about removing cached discovery results
dev
prod
0.0.12
author
Quentin Smith
<quentin@mit.edu>
Sun, 12 Dec 2010 07:15:32 +0000
(
02:15
-0500)
committer
Quentin Smith
<quentin@mit.edu>
Sun, 12 Dec 2010 07:15:32 +0000
(
02:15
-0500)
xvm-iscsi-connect
patch
|
blob
|
history
diff --git
a/xvm-iscsi-connect
b/xvm-iscsi-connect
index
b0701d0
..
ede3b36
100755
(executable)
--- a/
xvm-iscsi-connect
+++ b/
xvm-iscsi-connect
@@
-43,9
+43,9
@@
for node in $bad_nodes; do
echo "Removing $node"
# Remove the node entry
- rm $node;
+ rm $node
# Remove the cached results of the discovery so iscsiadm doesn't
# get confused
- find /etc/iscsi/send_targets -lname "${node%/*}" -delete
+ find /etc/iscsi/send_targets -lname "${node%/*}" -name "*,${node##*/}" -print -delete
done