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
1f94ff16
Commit
1f94ff16
authored
11 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Moved rmc_marshall_element() into its own object file
parent
e20c1669
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rmc/Imakefile
+9
-1
9 additions, 1 deletion
rmc/Imakefile
rmc/rmc_procreq.c
+1
-18
1 addition, 18 deletions
rmc/rmc_procreq.c
with
10 additions
and
19 deletions
rmc/Imakefile
+
9
−
1
View file @
1f94ff16
...
...
@@ -11,7 +11,15 @@ include $(CASTOR_ROOT)/tape/Makefile
RMCD_DEPLIBS = DepSharedLibraryTargetName(tape,castortape)
RMCD_LIBS = $(RMCD_DEPLIBS) BuildRPathcastortape
RMCD_OBJS = rmc_serv.o rmc_procreq.o rmc_logit.o rmc_logreq.o rmc_sendrep.o rmc_smcsubr.o rmc_send_scsi_cmd.o
RMCD_OBJS = \
rmc_serv.o \
rmc_procreq.o \
rmc_logit.o \
rmc_logreq.o \
rmc_marshall_element.o \
rmc_sendrep.o \
rmc_smcsubr.o \
rmc_send_scsi_cmd.o
TapeProgramTarget(rmcd,$(RMCD_OBJS),$(RMCD_DEPLIBS),$(RMCD_LIBS),755)
ADMMANPAGE(rmcd)
TapeMakeDir($(LOGPATH),0755)
...
...
This diff is collapsed.
Click to expand it.
rmc/rmc_procreq.c
+
1
−
18
View file @
1f94ff16
...
...
@@ -18,6 +18,7 @@
#include
"h/rmc_constants.h"
#include
"h/rmc_logit.h"
#include
"h/rmc_logreq.h"
#include
"h/rmc_marshall_element.h"
#include
"h/rmc_smcsubr.h"
#include
"h/rmc_smcsubr2.h"
#include
"h/rmc_sendrep.h"
...
...
@@ -28,24 +29,6 @@
extern
struct
extended_robot_info
extended_robot_info
;
extern
char
localhost
[
CA_MAXHOSTNAMELEN
+
1
];
static
int
rmc_marshall_element
(
char
**
const
sbpp
,
const
struct
smc_element_info
*
const
element_info
)
{
char
*
sbp
=
*
sbpp
;
marshall_WORD
(
sbp
,
element_info
->
element_address
);
marshall_BYTE
(
sbp
,
element_info
->
element_type
);
marshall_BYTE
(
sbp
,
element_info
->
state
);
marshall_BYTE
(
sbp
,
element_info
->
asc
);
marshall_BYTE
(
sbp
,
element_info
->
ascq
);
marshall_BYTE
(
sbp
,
element_info
->
flags
);
marshall_WORD
(
sbp
,
element_info
->
source_address
);
marshall_STRING
(
sbp
,
element_info
->
name
);
*
sbpp
=
sbp
;
return
(
0
);
}
/* rmc_srv_export - export/eject a cartridge from the robot */
int
rmc_srv_export
(
...
...
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