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
08839a6f
Commit
08839a6f
authored
Jan 02, 2013
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wb_ldlist, volume class displayed
parent
27ddc98e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
6 deletions
+29
-6
wb/exe/wb_ldlist/src/wb_ldlist.cpp
wb/exe/wb_ldlist/src/wb_ldlist.cpp
+29
-6
No files found.
wb/exe/wb_ldlist/src/wb_ldlist.cpp
View file @
08839a6f
...
...
@@ -53,7 +53,7 @@ static void usage( const char *txt)
cout
<<
txt
<<
endl
;
}
void
ldlist_print
(
const
char
*
text
,
pwr_tVid
vid
,
const
char
*
name
,
pwr_tTime
*
time
)
void
ldlist_print
(
const
char
*
text
,
pwr_tVid
vid
,
pwr_tCid
cid
,
const
char
*
name
,
pwr_tTime
*
time
)
{
char
timestr
[
40
];
...
...
@@ -69,8 +69,31 @@ void ldlist_print( const char *text, pwr_tVid vid, const char *name, pwr_tTime *
cout
<<
" "
;
cout
<<
" "
;
cout
<<
timestr
<<
" ("
<<
time
->
tv_sec
<<
","
<<
time
->
tv_nsec
<<
") "
;
cout
<<
vid
<<
endl
;
cout
<<
timestr
<<
" "
;
char
vid_str
[
40
];
strcpy
(
vid_str
,
cdh_VolumeIdToString
(
0
,
vid
,
0
,
0
));
cout
<<
vid_str
;
for
(
int
i
=
0
;
i
<
(
int
)(
15
-
strlen
(
vid_str
));
i
++
)
cout
<<
" "
;
cout
<<
" "
;
if
(
cid
)
{
pwr_tObjName
cname
;
switch
(
cid
)
{
case
pwr_eClass_RootVolume
:
strcpy
(
cname
,
"RootVolume"
);
break
;
case
pwr_eClass_SubVolume
:
strcpy
(
cname
,
"SubVolume"
);
break
;
case
pwr_eClass_SharedVolume
:
strcpy
(
cname
,
"SharedVolume"
);
break
;
case
pwr_eClass_ClassVolume
:
strcpy
(
cname
,
"ClassVolume"
);
break
;
case
pwr_eClass_DetachedClassVolume
:
strcpy
(
cname
,
"DetachedVolume"
);
break
;
case
pwr_eClass_VolatileVolume
:
strcpy
(
cname
,
"RootVolume"
);
break
;
default:
strcpy
(
cname
,
"Unknown class"
);
}
cout
<<
" "
<<
cname
<<
endl
;
}
else
cout
<<
endl
;
}
int
main
(
...
...
@@ -110,12 +133,12 @@ int main (
vrep
->
load
();
vrep
->
time
(
&
time
);
ldlist_print
(
"Volume"
,
vrep
->
vid
(),
vrep
->
name
(),
&
time
);
ldlist_print
(
"Volume"
,
vrep
->
vid
(),
vrep
->
cid
(),
vrep
->
name
(),
&
time
);
for
(
int
i
=
0
;
i
<
(
int
)
vrep
->
m_dbsmep
->
nVolRef
+
1
;
i
++
)
{
time
=
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
time
;
ldlist_print
(
"VolRef"
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
vid
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
name
,
&
time
);
ldlist_print
(
"VolRef"
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
vid
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
cid
,
vrep
->
m_dbsmep
->
venv
[
i
].
vp
->
name
,
&
time
);
}
}
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