Skip to content
Snippets Groups Projects
Commit a7615b30 authored by Steven Murray's avatar Steven Murray Committed by Steven Murray
Browse files

The castor-tape-mount executable is now built, but it does nothing.

parent c9f17d4d
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ EXTERN_C int rmc_mount(const char *const server, const char *const vid, const in
EXTERN_C int rmc_read_elem_status(const char *const server, const int type, const int startaddr, const int nbelem, struct smc_element_info *const element_info);
EXTERN_C void rmc_seterrbuf(const char *const buffer, const int buflen);
EXTERN_C int send2rmc(const char *const host, const char *const reqp, const int reql, char *const user_repbuf, const int user_repbuf_len);
EXTERN_C int rmc_mnt(const char *const server, const char *const vid, const char *const loader);
EXTERN_C int rmc_unmnt(const char *const server, const char *const vid, const char *const loader);
EXTERN_C int rmc_mnt(const char *const server, const char *const vid, const char *const drive);
EXTERN_C int rmc_unmnt(const char *const server, const char *const vid, const char *const drive);
#endif
......@@ -40,7 +40,7 @@
int rmc_mnt(
const char *const server,
const char *const vid,
const char *const loader)
const char *const drive)
{
const gid_t gid = getgid();
const uid_t uid = getuid();
......@@ -48,7 +48,7 @@ int rmc_mnt(
/* The total length of the fixed size members of the request message */
/* is Magic (4 bytes) + request ID (4 bytes) + length (4 bytes) + */
/* uid (4 bytes) + gid (4 bytes) = 20 bytes */
const int msglen = 20 + strlen(vid) + 1 + strlen(loader) + 1;
const int msglen = 20 + strlen(vid) + 1 + strlen(drive) + 1;
char repbuf[1];
char *sbp = NULL;
......@@ -78,7 +78,7 @@ int rmc_mnt(
marshall_LONG (sbp, uid);
marshall_LONG (sbp, gid);
marshall_STRING (sbp, vid);
marshall_STRING (sbp, loader);
marshall_STRING (sbp, drive);
/* Being paranoid; checking the calculated message length against */
/* the number of bytes marshalled */
......
......@@ -11,7 +11,7 @@ rmc_mnt \- send a request to the Remote Media Changer daemon to have a volume mo
.sp
.BI "int rmc_mnt (char *" server ,
.BI "char *" vid ,
.BI "char *" loader );
.BI "char *" drive );
.SH DESCRIPTION
.B rmc_mnt
asks the Remote Media Changer server running on
......@@ -19,7 +19,7 @@ asks the Remote Media Changer server running on
to mount the volume
.I vid
on the drive specified by
.IR loader .
.IR drive .
.TP
.I server
specifies the Remote Media Changer to be contacted.
......@@ -28,7 +28,7 @@ specifies the Remote Media Changer to be contacted.
is the volume visual identifier.
It must be at most six characters long.
.TP
.I loader
.I drive
specifies the drive in the robot in one of the following forms:
.RS
.TP
......@@ -52,7 +52,7 @@ is set appropriately.
Communication error.
.TP
.B ERMCUNREC
Unknown host or invalid loader or vid too long or requester does not have
Unknown host or invalid drive or vid too long or requester does not have
TP_SYSTEM privilege in the Cupv database.
.TP
.B ERMCFASTR
......
......@@ -40,7 +40,7 @@
int rmc_unmnt(
const char *const server,
const char *const vid,
const char *const loader)
const char *const drive)
{
const gid_t gid = getgid();
const uid_t uid = getuid();
......@@ -48,7 +48,7 @@ int rmc_unmnt(
/* The total length of the fixed size members of the request message */
/* is Magic (4 bytes) + request ID (4 bytes) + length (4 bytes) + */
/* uid (4 bytes) + gid (4 bytes) = 20 bytes */
const int msglen = 20 + strlen(vid) + 1 + strlen(loader) + 1;
const int msglen = 20 + strlen(vid) + 1 + strlen(drive) + 1;
char repbuf[1];
char *sbp = NULL;
......@@ -78,7 +78,7 @@ int rmc_unmnt(
marshall_LONG (sbp, uid);
marshall_LONG (sbp, gid);
marshall_STRING (sbp, vid);
marshall_STRING (sbp, loader);
marshall_STRING (sbp, drive);
/* Being paranoid; checking the calculated message length against */
/* the number of bytes marshalled */
......
......@@ -11,7 +11,7 @@ rmc_unmnt \- send a request to the Remote Media Changer daemon to have a volume
.sp
.BI "int rmc_unmnt (char *" server ,
.BI "char *" vid ,
.BI "char *" loader );
.BI "char *" drive );
.SH DESCRIPTION
.B rmc_unmnt
asks the Remote Media Changer server running on
......@@ -19,7 +19,7 @@ asks the Remote Media Changer server running on
to unmount the volume
.I vid
from the drive specified by
.IR loader .
.IR drive .
.TP
.I server
specifies the Remote Media Changer to be contacted.
......@@ -28,7 +28,7 @@ specifies the Remote Media Changer to be contacted.
is the volume visual identifier.
It must be at most six characters long.
.TP
.I loader
.I drive
specifies the drive in the robot in one of the following forms:
.RS
.TP
......@@ -52,7 +52,7 @@ is set appropriately.
Communication error.
.TP
.B ERMCUNREC
Unknown host or invalid loader or vid too long or requester does not have
Unknown host or invalid drive or vid too long or requester does not have
TP_SYSTEM privilege in the Cupv database.
.TP
.B ERMCFASTR
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment