diff --git a/mediachanger/castorrmc/h/rmc_api.h b/mediachanger/castorrmc/h/rmc_api.h index ae2a94fe0012cd95790795220466c4abc63d0c1d..b0784b4602e09dae0298616a8a1e76cb45742558 100644 --- a/mediachanger/castorrmc/h/rmc_api.h +++ b/mediachanger/castorrmc/h/rmc_api.h @@ -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 diff --git a/mediachanger/castorrmc/rmc/rmc_mnt.c b/mediachanger/castorrmc/rmc/rmc_mnt.c index cc0c387481ef74e86ce3327fd4cd39be0bcd81c2..95ee15bc2dba41bba7c669dd6661e1592ea53292 100644 --- a/mediachanger/castorrmc/rmc/rmc_mnt.c +++ b/mediachanger/castorrmc/rmc/rmc_mnt.c @@ -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 */ diff --git a/mediachanger/castorrmc/rmc/rmc_mnt.man b/mediachanger/castorrmc/rmc/rmc_mnt.man index eee7173eb9e1c3a0eb153c2a9f1c3dce936fa428..896b7992283c05474c4f40f97875cb224b7ee9d1 100644 --- a/mediachanger/castorrmc/rmc/rmc_mnt.man +++ b/mediachanger/castorrmc/rmc/rmc_mnt.man @@ -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 diff --git a/mediachanger/castorrmc/rmc/rmc_unmnt.c b/mediachanger/castorrmc/rmc/rmc_unmnt.c index 7e7d869f00823c122b526023ec0d4402ab0b2070..9e8780a1408528d469b05c4b6d392a5116ce083e 100644 --- a/mediachanger/castorrmc/rmc/rmc_unmnt.c +++ b/mediachanger/castorrmc/rmc/rmc_unmnt.c @@ -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 */ diff --git a/mediachanger/castorrmc/rmc/rmc_unmnt.man b/mediachanger/castorrmc/rmc/rmc_unmnt.man index c33dc3b199862243680d45c1a2f15e851c05507c..c7603f8c30179fa973f0b23d1ad9c0fd4811fad2 100644 --- a/mediachanger/castorrmc/rmc/rmc_unmnt.man +++ b/mediachanger/castorrmc/rmc/rmc_unmnt.man @@ -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