Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-camogm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-camogm
Commits
29d98f2d
Commit
29d98f2d
authored
Dec 22, 2016
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update help message in test program
parent
91c78109
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
camogm_test.c
src/camogm_test.c
+10
-3
No files found.
src/camogm_test.c
View file @
29d98f2d
...
...
@@ -756,11 +756,17 @@ int main(int argc, char *argv[])
"%s -d <path_to_disk> [-s state_file_name -b block_size -c count -t -f from_lba -e to_lba -w file_name]
\n\n
"
\
"i.e. write one sector:
\n\n
"
\
"%s -d /dev/sda2 -b 512 -c 1
\n\n
"
\
"The -t parameter sets test mode in which the program reads data from disk and verifies that "
\
"-d specifies partition or disk name which is used for testing;
\n
"
\
"-b sets block size in bytes. The program writes data to disk in blocks of this size;
\n
"
\
"-c sets the number of repetitions. Total amount of data recorded to disk is equal to (count * block_size);
\n
"
\
"-f and -e parameters define starting and finishing LBAs of the disk during test mode. These parameters are "
\
"ineffective during recording.
\n
"
"-t parameter sets test mode in which the program reads data from disk and verifies that "
\
"the counter values are consistent. The LBAs with counter discontinuities are reported. Test starts "
\
"from the beginning of the disk and continues until the end of disk is reached. '-b' parameter is "
\
"mandatory in this mode.
\n
"
\
"The -w parameter sets the file name were some statistics is saved during recording test.
\n
"
;
"mandatory in this mode and its value must correspond to that used during recording.
\n
"
\
"-w parameter sets the file name were some statistics is saved during recording test.
\n
"
\
"-h prints this help message
\n
"
;
int
ret
=
EXIT_SUCCESS
;
int
opt
;
bool
test_mode
=
false
;
...
...
@@ -796,6 +802,7 @@ int main(int argc, char *argv[])
printf
(
usage
,
argv
[
0
],
argv
[
0
]);
return
EXIT_SUCCESS
;
case
's'
:
// the name of state file
strncpy
(
state_name_str
,
(
const
char
*
)
optarg
,
ELPHEL_PATH_MAX
-
1
);
break
;
case
'b'
:
...
...
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