Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
08737fad
Commit
08737fad
authored
Jan 22, 2014
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle RO export of an extent.
parent
cd5edf1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
clientside/tmcc/freenas8/libvnode_blockstore.pm
clientside/tmcc/freenas8/libvnode_blockstore.pm
+6
-1
No files found.
clientside/tmcc/freenas8/libvnode_blockstore.pm
View file @
08737fad
...
...
@@ -741,11 +741,16 @@ sub exportSlice($$$$) {
return
-
1
;
}
my
$perm
=
"
rw
";
if
(
exists
(
$sconf
->
{'
PERMS
'})
&&
$sconf
->
{'
PERMS
'}
eq
"
RO
")
{
$perm
=
"
ro
";
}
# Create iSCSI target
my
$serial
=
genSerial
();
eval
{
freenasRunCmd
(
$FREENAS_CLI_VERB_IST_TARGET
,
"
add
$iqn
$serial
$ISCSI_GLOBAL_PORTAL
"
.
"
$tag
Auto -1
")
};
"
$tag
Auto -1
flags=
$perm
")
};
if
(
$@
)
{
warn
("
*** ERROR: blockstore_exportSlice:
$volname
:
"
.
"
Failed to create iSCSI target: $@
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment