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
9b3a7ae9
Commit
9b3a7ae9
authored
5 years ago
by
Victor Kotlyar
Browse files
Options
Downloads
Patches
Plain Diff
Change usage and man info for cta-tape-label.
parent
04c43001
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tapeserver/tapelabel/TapeLabelCmdLineArgs.cpp
+8
-1
8 additions, 1 deletion
tapeserver/tapelabel/TapeLabelCmdLineArgs.cpp
tapeserver/tapelabel/cta-tape-label.1cta
+5
-6
5 additions, 6 deletions
tapeserver/tapelabel/cta-tape-label.1cta
with
13 additions
and
7 deletions
tapeserver/tapelabel/TapeLabelCmdLineArgs.cpp
+
8
−
1
View file @
9b3a7ae9
...
...
@@ -127,7 +127,14 @@ TapeLabelCmdLineArgs::TapeLabelCmdLineArgs(const int argc, char *const *const ar
void
TapeLabelCmdLineArgs
::
printUsage
(
std
::
ostream
&
os
)
{
os
<<
"Usage:"
<<
std
::
endl
<<
" cta-tape-label --vid/-v VID [--oldlabel/-o VID] [--help/-h] [--debug/-d] [--force/-f]"
<<
std
::
endl
;
" cta-tape-label [options] --vid/-v VID"
<<
std
::
endl
<<
"Where:"
<<
std
::
endl
<<
" -v, --vid The VID of the tape to be labeled"
<<
std
::
endl
<<
"Options:"
<<
std
::
endl
<<
" -o, --oldlabel The vid of the current tape label on the tape if it is not the same as VID"
<<
std
::
endl
<<
" -h, --help Print this help message and exit"
<<
std
::
endl
<<
" -d, --debug Print more logs for label operations"
<<
std
::
endl
<<
" -f, --force Force labeling for not-blank tapes for testing purpose and without label checks. Must only be used manually."
<<
std
::
endl
;
}
}
// namespace tapelabel
...
...
This diff is collapsed.
Click to expand it.
tapeserver/tapelabel/cta-tape-label.1cta
+
5
−
6
View file @
9b3a7ae9
...
...
@@ -17,17 +17,16 @@
.SH NAME
cta-tape-label \- Pre-label a CTA tape
.SH SYNOPSIS
.BI "cta-tape-label --vid/-v VID
[--oldlabel/-o VID] [--help/-h] [--debug/-d] [--force/-f]
"
.BI "cta-tape-label
[options]
--vid/-v VID"
.SH DESCRIPTION
\fBcta-tape-label\fP is a command-line tool for pre-labelling a CTA tape.
\fBcta-tape-label\fP writes CTA label to the tape with specified \fBVID\fP.
.SH OPTIONS
.TP
\fB\-v, \-\-vid
Volume ID of the tape. This option is mandatory.
.TP
\fB\-o, \-\-oldlabel
Volume ID
o
f the tape
that is aready on the tape
. Needs to be set if the tape has any
label
.
Volume ID f
rom
the tape
label if the tape non-blank
. Needs to be set if the tape has any
vid in the label differ from VID
.
.TP
\fB\-h, \-\-help
Prints the usage message.
...
...
@@ -36,7 +35,7 @@ Prints the usage message.
Prints more logs for label operations.
.TP
\fB\-f, \-\-force
Force labeling for not-blank tapes
without label checks
.
Force labeling for not-blank tapes
for testing purpose and without label checks. Must only be used manually
.
.SH RETURN VALUE
Zero on success and non-zero on failure.
.SH EXAMPLES
...
...
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