/
githubmirror
/
sg3_utils
ОбзорДокументацияВойти
/
githubmirror
/
sg3_utils
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
ДокументацияПоддержка
Политика конфиденциальностиПользовательское соглашениеПолитика использования «cookies»Согласие субъекта персональных данных
2026 ©
sg3_utils/
ttesting/
..
Makefile

sg_lib: add sg_strscpy() to replace strncpy(); sg_json: add sgj_haj_vs_nex(); fixes from regression testing against version 1.48

2 месяца назад
Makefile.cyg

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
Makefile.freebsd

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
README

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
bsg_queue_tst.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
random_write_cp_verify.sh

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_chk_asc.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_chk_inq_vd.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_iovec_tst.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_json_builder_test.c

sg_lib: add sg_strscpy() to replace strncpy(); sg_json: add sgj_haj_vs_nex(); fixes from regression testing against version 1.48

2 месяца назад
sg_mrq_dd.cpp

sg_inq: re-introduce --ata, prepare for release

месяц назад
sg_queue_tst.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_scat_gath.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_scat_gath.h

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_sense_test.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_take_snap.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_async.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_bidi.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_context.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_excl.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_excl2.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_excl3.cpp

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_ioctl.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sg_tst_json_builder.c

sg_lib: add sg_strscpy() to replace strncpy(); sg_json: add sgj_haj_vs_nex(); fixes from regression testing against version 1.48

2 месяца назад
sg_tst_nvme.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
sgh_dd.cpp

sg_inq: re-introduce --ata, prepare for release

месяц назад
sgs_dd.c

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
tst_sg_lib.c

sg_lib: add sg_strscpy() to replace strncpy(); sg_json: add sgj_haj_vs_nex(); fixes from regression testing against version 1.48

2 месяца назад
tst_sg_lib_all.sh

sg_lib: add sg_strscpy() to replace strncpy(); sg_json: add sgj_haj_vs_nex(); fixes from regression testing against version 1.48

2 месяца назад
uapi_sg.h

rename testing directory to ttesting to avoid clash with cmake's CTEST that creates a Testing directory

3 месяца назад
README
 
 
The utilities in this directory are _not_ built automatically. So:
cd <root_of_sg3_utils_src>
./configure ; make ; make install
will _not_ build and install them. The make command (or some variant
of it) needs to be run in this directory as outlined below.
 
Building files in this directory depends on several files being already
built in the ../lib directory. So to build files here, the ./configure
needs to be executed in the parent directory followed by changing
directory to the lib directory and calling 'make' there.
Another way is to do a top level 'make' after the ./configure which
will make the libraries followed by all the utilities in the src/
directory. To make them in FreeBSD use 'make -f Makefile.freebsd' .
 
The utilities in this directory do not have manpages. They have
relatively complete but terse help messages, typically seen by using
the '--help' option one or more times. If called several times, the
shorter form of the help option is more convenient, for example: '-hhh'.
And of course there is the source code. Unfortunately where the code
implements many different options, it can become a bit dense. There
is also a large amount of error checking, as many of these utilities
were used to test new features placed in the sg v4 driver in Linux.
 
The sg_chk_asc utility decodes the SCSI additional sense code table
found at https://www.t10.org/lists/asc-num.txt and checks it against
the table found in sg_lib_data.c in the lib/ subdirectory. It is
designed to keep the table in sg_lib_data.c in "sync" with the
table at the t10.org web site.
 
The tst_sg_lib utility exercises several functions found in sg_lib.c
and related files in the 'lib' sibling directory. Use 'tst_sg_lib -h'
to get more information.
 
There are both C and C++ files in this directory, they have extensions
'.c' and '.cpp' respectively. Now both are built with rules in Makefile
(at least in Linux). A gcc/g++ compiler of 4.7.3 vintage or later
(or a recent clang compiler) will be required. To make them in FreeBSD
use 'make -f Makefile.freebsd'.
 
The sgh_dd utility (C++) uses 'libatomic' which may not be installed
on some systems. On Debian based systems 'apt install libatomic1' fixes
this.
 
Douglas Gilbert
17th September 2019