Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
71a66f24
Commit
71a66f24
authored
Jan 15, 2008
by
Mike Hibler
Browse files
Bah, one more: add islocaldir() function
parent
76dba0e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tmcd/cygwinxp/liblocsetup.pm
View file @
71a66f24
#!/usr/bin/perl -wT
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
6
University of Utah and the Flux Group.
# Copyright (c) 2000-200
8
University of Utah and the Flux Group.
# All rights reserved.
#
...
...
@@ -21,7 +21,7 @@ use Exporter;
os_ifconfig_veth
os_viface_name
os_routing_enable_forward
os_routing_enable_gated
os_routing_add_manual
os_routing_del_manual
os_homedirdel
os_groupdel
os_samba_mount
os_groupdel
os_samba_mount
os_islocaldir
os_getnfsmounts
os_getnfsmountpoints
os_noisycmd
os_fwconfig_line
os_fwrouteconfig_line
);
...
...
@@ -729,6 +729,18 @@ sub MapShell($)
return
$fullpath
;
}
# Return non-zero if given directory is on a "local" filesystem
sub
os_islocaldir
($)
{
my
(
$dir
)
=
@_
;
# XXX
if
(
$dir
=~
/^\/(proj|groups|users|share)/
)
{
return
0
;
}
return
1
;
}
sub
os_samba_mount
($$$)
{
my
(
$local
,
$host
,
$verbose
)
=
@_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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