Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
c516812f
Commit
c516812f
authored
7 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
delete_archive_file now returns better errno codes
parent
75adea9f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eos_wfe_scripts/delete_archive_file
+4
-2
4 additions, 2 deletions
eos_wfe_scripts/delete_archive_file
with
4 additions
and
2 deletions
eos_wfe_scripts/delete_archive_file
+
4
−
2
View file @
c516812f
#!/bin/bash
EINVAL
=
22
ECANCELED
=
125
export
XrdSecPROTOCOL
=
sss
export
XrdSecSSSKT
=
/etc/cta/cta-cli.sss.keytab
if
test
$#
-ne
5
;
then
echo
"Wrong number of command-line arguments"
echo
"Usage: delete_archive_file wf_tag rusername rgroupname archive_file_id file_path"
exit
-1
exit
${
EINVAL
}
fi
WF_TAG
=
"
$1
"
...
...
@@ -27,5 +29,5 @@ if RESULT=`2>&1 /usr/bin/cta deletearchive --user ${RUSERNAME} --group ${RGROUPN
exit
0
else
echo
`
date
+%s
`
`
date
`
"
$0
Failed to delete tape archive file: error=
${
RESULT
}
rusername=
${
RUSERNAME
}
rgroupname=
${
RGROUPNAME
}
archiveFileId=
${
ARCHIVE_FILE_ID
}
path=
${
FILE_PATH
}
"
>>
${
LOG_FILE
}
exit
1
exit
${
ECANCELED
}
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment