Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
dee064dd
Commit
dee064dd
authored
Oct 22, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb distribute, check that node is built after volumes added
parent
cc25dae8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
wb/lib/wb/src/wb_pkg.cpp
wb/lib/wb/src/wb_pkg.cpp
+49
-0
wb/lib/wb/src/wb_pkg.h
wb/lib/wb/src/wb_pkg.h
+1
-0
No files found.
wb/lib/wb/src/wb_pkg.cpp
View file @
dee064dd
...
...
@@ -84,6 +84,9 @@ wb_pkg::wb_pkg( char *nodelist, bool distribute, bool config_only)
if
(
config_only
)
return
;
for
(
unsigned
int
i
=
0
;
i
<
m_nodelist
.
size
();
i
++
)
m_nodelist
[
i
].
checkNode
();
fetchFiles
(
distribute
);
}
...
...
@@ -325,6 +328,52 @@ pkg_node& wb_pkg::getNode( char *name)
throw
wb_error_str
(
"No such node"
);
}
void
pkg_node
::
checkNode
()
{
pwr_tStatus
sts
;
pwr_tVolumeId
*
vollist
;
pwr_tString40
*
volnamelist
;
int
volcount
;
pwr_tString80
*
plclist
;
int
plccount
;
char
systemname
[
80
];
char
systemgroup
[
80
];
pwr_tTime
bootversion
;
pwr_tFileName
fname
;
sprintf
(
fname
,
pwr_cNameBoot
,
load_cDirectory
,
name
(),
bus
());
sts
=
lfu_ReadBootFile
(
fname
,
&
bootversion
,
systemname
,
systemgroup
,
&
vollist
,
&
volnamelist
,
&
volcount
,
&
plclist
,
&
plccount
);
if
(
EVEN
(
sts
))
throw
wb_error_str
(
"Bootfile is corrupt"
);
// Check that bootversion is later than volume versions
for
(
int
i
=
0
;
i
<
volcount
;
i
++
)
{
pwr_tVid
vol_vid
;
pwr_tCid
vol_cid
;
pwr_tTime
vol_time
;
char
vol_name
[
80
];
pwr_tUInt32
vol_dvversion
;
char
dir
[
20
];
pwr_tObjName
vname
;
strcpy
(
dir
,
"$pwrp_load/"
);
strcpy
(
vname
,
(
char
*
)(
volnamelist
+
i
));
sprintf
(
fname
,
"%s%s.dbs"
,
dir
,
cdh_Low
(
vname
));
sts
=
lfu_GetVolume
(
fname
,
vol_name
,
&
vol_vid
,
&
vol_cid
,
&
vol_time
,
&
vol_dvversion
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
if
(
time_Acomp
(
&
bootversion
,
&
vol_time
)
==
-
1
)
{
char
msg
[
200
];
sprintf
(
msg
,
"Volume %s is built after node %s"
,
vname
,
name
());
MsgWindow
::
message
(
'E'
,
msg
,
msgw_ePop_No
);
m_errors
++
;
}
}
}
void
pkg_node
::
checkVolume
(
char
*
filename
)
{
lfu_t_volref
*
volref
;
...
...
wb/lib/wb/src/wb_pkg.h
View file @
dee064dd
...
...
@@ -195,6 +195,7 @@ class pkg_node {
m_pattern
.
push_back
(
pattern
);
}
void
checkVolume
(
char
*
filename
);
void
checkNode
();
void
fetchFiles
(
bool
distribute
);
void
copyPackage
(
char
*
pkg_name
);
void
incrWarnings
()
{
m_warnings
++
;}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment