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
a496d81c
Commit
a496d81c
authored
11 years ago
by
Steven Murray
Committed by
Steven Murray
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Skeleton version of castor-tape-mount no compiles
parent
c9157709
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
mediachanger/castorrmc/rmc/rmc_mnt.c
+13
-9
13 additions, 9 deletions
mediachanger/castorrmc/rmc/rmc_mnt.c
mediachanger/castorrmc/rmc/rmc_mnt.man
+17
-2
17 additions, 2 deletions
mediachanger/castorrmc/rmc/rmc_mnt.man
with
30 additions
and
11 deletions
mediachanger/castorrmc/rmc/rmc_mnt.c
+
13
−
9
View file @
a496d81c
...
...
@@ -61,7 +61,7 @@ int rmc_mnt(
case
RMC_LOADER_TYPE_SMC
:
return
rmc_smc_mnt
(
server
,
vid
,
drive
);
default:
errno
=
ERMCU
NREC
;
errno
=
ERMCU
KNLDRTYPE
;
/* Unknown loader type */
serrno
=
errno
;
return
-
1
;
}
...
...
@@ -88,25 +88,29 @@ static int rmc_acs_mnt(
char
rmc_host
[
CA_MAXHOSTNAMELEN
+
1
];
struct
rmc_acs_drive_id
drive_id
=
{
0
,
0
,
0
,
0
};
/* Consider the function arguments invalid if the total size of the */
/* request message would be greater than RMC_REQBUFSZ */
if
(
msglen
>
RMC_REQBUFSZ
)
{
errno
=
ERMCUNREC
;
if
(
CA_MAXVIDLEN
<
strlen
(
vid
))
{
errno
=
ERMCVIDTOOLONG
;
/* VID is too long */
serrno
=
errno
;
return
-
1
;
}
if
(
CA_MAXVIDLEN
<
strlen
(
vid
))
{
errno
=
ERMC
UNREC
;
if
(
rmc_get_rmc_host_of_drive
(
drive
,
rmc_host
,
sizeof
(
rmc_host
)
))
{
errno
=
ERMC
PARSERMCHOST
;
/* Failed to parse RMC host */
serrno
=
errno
;
return
-
1
;
}
if
(
rmc_get_rmc_host_of_drive
(
drive
,
rmc_host
,
sizeof
(
rmc_host
)))
{
if
(
rmc_get_acs_drive_id
(
drive
,
&
drive_id
))
{
errno
=
ERMCPARSEACSDRV
;
/* Failed to parse ACS drive id */
serrno
=
errno
;
return
-
1
;
}
if
(
rmc_get_acs_drive_id
(
drive
,
&
drive_id
))
{
/* It is an internal error if the total size of the request message */
/* would be greater than RMC_REQBUFSZ */
if
(
msglen
>
RMC_REQBUFSZ
)
{
errno
=
SEINTERNAL
;
serrno
=
errno
;
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
mediachanger/castorrmc/rmc/rmc_mnt.man
+
17
−
2
View file @
a496d81c
...
...
@@ -48,12 +48,12 @@ mount, or -1 if the operation failed. In the latter case,
.B serrno
is set appropriately.
.SH ERRORS
.TP 1.
2
i
.TP 1.
8
i
.B SECOMERR
Communication error.
.TP
.B ERMCUNREC
Unknown host or invalid drive or
vid too long or
requester does not have
Unknown host or invalid drive or requester does not have
TP_SYSTEM privilege in the Cupv database.
.TP
.B ERMCFASTR
...
...
@@ -61,6 +61,21 @@ Unit attention.
.TP
.B ERMCOMSGR
Hardware error or Medium Removal Prevented.
.TP
.B ERMCUKNLDRTYPE
Unknown loader type.
.TP
.B ERMCVIDTOOLONG
VID is too long.
.TP
.B ERMCPARSERMCHOST
Failed to parse RMC host.
.TP
.B ERMCPARSEACSDRV
Failed to parse ACS drive id.
.TP
.B SEINTERNAL
Internal error.
.SH SEE ALSO
.BR Cupvlist(1) ,
.SH AUTHOR
...
...
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