Skip to content
GitLab
Menu
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
2f5f6da6
Commit
2f5f6da6
authored
Dec 05, 2005
by
Timothy Stack
Browse files
Only send separate nfs mail if its the main installation, put it in
the swap log otherwise.
parent
54230b6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswap.in
View file @
2f5f6da6
...
...
@@ -34,6 +34,7 @@ sub usage()
my
$TBROOT
=
"
@prefix
@
";
my
$TBOPS
=
"
@TBOPSEMAIL
@
";
my
$TBLOGS
=
"
@TBLOGSEMAIL
@
";
my
$THISHOMEBASE
=
"
@THISHOMEBASE
@
";
my
$TESTMODE
=
@TESTMODE@
;
my
$DISABLE_EVENTS
=
"
@DISABLE_EVENT_SCHED
@
";
my
$piper
=
"
$TBROOT
/sbin/locpiper
";
...
...
@@ -397,13 +398,18 @@ sub doSwapout($) {
print
"
Getting files accessed via NFS.
\n
";
TBDebugTimeStamp
("
nfstrace started
");
my
(
$dbuid
,
$uname
,
$umail
);
if
(
UNIX2DBUID
(
$UID
,
\
$dbuid
)
&&
UserDBInfo
(
$dbuid
,
\
$uname
,
\
$umail
))
{
SENDMAIL
("
$TBLOGS
",
"
Files accessed by
$pid
/
$eid
via NFS
",
`
nfstrace get
$pid
$eid
`,
"
$uname
<
$umail
>
");
if
(
lc
$THISHOMEBASE
eq
"
emulab.net
")
{
my
(
$dbuid
,
$uname
,
$umail
);
if
(
UNIX2DBUID
(
$UID
,
\
$dbuid
)
&&
UserDBInfo
(
$dbuid
,
\
$uname
,
\
$umail
))
{
SENDMAIL
("
$TBLOGS
",
"
Files accessed by
$pid
/
$eid
via NFS
",
`
nfstrace get
$pid
$eid
`,
"
$uname
<
$umail
>
");
}
}
else
{
system
("
nfstrace get
$pid
$eid
");
}
TBDebugTimeStamp
("
nfstrace finished
");
...
...
Write
Preview
Supports
Markdown
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