Sg3 utils для windows

sg3_utils 1.33

sg3_utils 1.33

sg3_utils package contains utilities that send SCSI commands to Linux devices. As well as devices on SCSI transports (e.g. Fibre channel and the SCSI parallel interface) many other devices use SCSI command sets.

Examples are ATAPI cd/dvd drives and SATA disks (typically via a translation layer or bridge device). SCSI command sets are divided into what are called «primary» commands (e.g. SPC-3) and device class specific sets (e.g. SBC-2 for disks and MMC-4 for cd/dvd devices). SCSI command sets and transports definitions can be found at www.t10.org .

The sg3_utils package targets the linux kernel 2.4 and 2.6 series and is still under active development. An earlier package called sg_utils targeted the linux kernel 2.2 series with some support for the 2.0 series. See an earlier version of this web page for further information about sg_utils. This document describes version 1.18 of sg3_utils .

In the linux kernel 2.4 series most these utilities must be used with a SCSI generic (sg) driver device name (e.g. /dev/sg0). In the lk 2.6 series almost all of these utilities can be used with the primary device names as well (e.g. /dev/sda, /dev/sdc0, /dev/st0 and /dev/hdd (if it is an ATAPI device)).

The SCSI generic (sg) interface still represents a cleaner interface than the primary device names since the drivers behind primary device names have their own policies, may interfere with error processing and in some cases run their own state machines.

· A sg_sanitize utility was added.
· A major rework of the sg_ses utility was undertaken.
· SCSI (t10.org) draft standard changes were incorporated.

Состоялся релиз утилит sg3_utils 1.43r777

Сабж. Предыдущий релиз, по ходу, был в феврале прошлого года. Утилиты предназначены для отправления SCSI команд устройствам.

я незнаю что это, но радует что не про гитхаб.

Зачем оно нужно ?

Написано же: чтобы работать с устройствами через SCSI команды.

Мало конкретики в этом описании.

Потому, что там целая куча разных утилит на самые разные случаи. И даже библиотека.

Например, для того, чтобы увидеть свежеподключенный «на горячую» жесткий диск, сказав rescan-scsi-bus.sh .

Читайте также:  Carried on the windows

partprobe уже закопали ?

я не знаю кто сейчас отправляет команды «скузи» (С) устройствам, но тоже рад, что это не про гитлаб.

Саахрикту, заведи себе ютуб канал и снимай видосы про своё старье, у тебя нарисуется кармичекая аудитория старо-пёрдов, которые в свои 20 лет не наигрались с сурьезными игрушками 🙂

partprobe перечитывает таблицы разделов, rescan-scsi-bus.sh сканирует шины.

я не знаю кто сейчас отправляет команды «скузи» (С) устройствам

На самом деле, во всяких стораджевых сетях это норма жизни.

Странно. Всегда успешно его использовал при добавлении новых сата дисков нагорячую.

sg3_utils

sg3_utils is a package of utilities for accessing devices that use SCSI command sets. Most utilities issue a single command and display the response, while some work at a slightly higher level. There are utilities for fetching INQUIRY data and VPD, mode, and log pages. There is support for modern SCSI transports such as SAS and FCP. The package is written for Linux and has been ported to FreeBSD, Solaris, Tru64, and Windows. There is an earlier version of this package for Linux 2.2 series kernels called sg_utils.

Licenses GPL

  • All releases

Recent releases

  • sg3_utils-1.39
  • 13 Jun 2014 15:04

Release Notes: This release adds some ZBC support in the form of sg_rep_zones and sg_reset_wp. Many other cleanups, with some small extensions. It tracks changes made by www.t10.org since April 2014.

  • 1.38
  • 03 Apr 2014 04:59

Release Notes: This release contains mainly bugfixes and code cleanups, with some small extensions. It tracks changes made by www.t10.org since October 2013. sg_xcopy now sends the xcopy(lid1) command to the destination device by default.

  • sg3_utils-1.37
  • 16 Oct 2013 03:32

Release Notes: This release contains mainly bugfixes and code cleanups, with some small extensions. It tracks changes made by www.t10.org since May 2013.

  • 1.36
  • 03 Jun 2013 03:39

Release Notes: This release adds several features to the sg_xcopy utility and improves 64 bit LUN handling. www.t10.org changes since January 2013 have been tracked .

  • 1.35
  • 18 Jan 2013 15:25

Release Notes: This release adds the sg_compare_and_write utility. www.t10.org changes since October 2012 have been tracked .

  • All comments

Recent comments

The proposed read-only flag added to sg_sat_set_features and will appear in version 1.39. Best to email patches like that directly to me as I don’t check this site that often.

More information about sg_xcopy: its xcopy(lid1) functionality has been ported to ddpt (https://freecode.com/projects/ddpt). Further, ODX support (aka: xcopy v2, lite) is being added to ddpt and will appear shortly.

Using sg_sat_set_features to send EPC (TAPM) power commands requires ability to open device as read-only otherwise, drivers will wake up device and issue IDENTIFY and READ commands potentially negating power condition specified in command.

Below is a patch based off similar work in sg_start to illustrate. It works for me as I have confirmed the power condition using `hdparm -C /dev/sda` after issuing `sg_sat_set_features —feature=74 —count=0 —lba=1 /dev/sda` to transition to Standby_z (spin-down).

If this is acceptable, I would like to complete the patch to the necessary documentation and perform additional testing.

— a/src/sg_sat_set_features.c
+++ b/src/sg_sat_set_features.c
@@ -55,6 +55,7 @@
<"help", no_argument, 0, 'h'>,
<"len", required_argument, 0, 'l'>,
<"lba", required_argument, 0, 'L'>,
+ <"readonly", no_argument, 0, 'r'>,
<"verbose", no_argument, 0, 'v'>,
<"version", no_argument, 0, 'V'>,
<0, 0, 0, 0>,
@@ -79,6 +80,9 @@
» —lba=LBA | -L LBA LBA field contents (def: 0)\n»
» —len=16|12 | -l 16|12 cdb length: 16 or 12 bytes »
«(def: 16)\n»
+ » —readonly | -r open DEVICE read-only »
+ «(def: read-write)\n»
+ » recommended if DEVICE is ATA disk\n»
» —verbose | -v increase verbosity\n»
» —version | -V print version string and exit\n\n»
«Sends an ATA SET FEATURES command via a SAT pass through.\n»
@@ -256,12 +260,13 @@
int lba = 0;
int verbose = 0;
int ck_cond = 0;
+ int rdonly = 0;
int cdb_len = SAT_ATA_PASS_THROUGH16_LEN;

while (1) <
int option_index = 0;

— c = getopt_long(argc, argv, «c:Cf:hl:L:vV», long_options,
+ c = getopt_long(argc, argv, «c:Cf:hl:L:rvV», long_options,
&option_index);
if (c == -1)
break;
@@ -302,6 +307,8 @@
return SG_LIB_SYNTAX_ERROR;
>
break;
+ case ‘r’:
+ rdonly = 1;
case ‘v’:
++verbose;
break;
@@ -334,7 +341,7 @@
return 1;
>

— if ((sg_fd = sg_cmds_open_device(device_name, 0 /* rw */,
+ if ((sg_fd = sg_cmds_open_device(device_name, rdonly,
verbose)) 03 Jun 2013 21:52 dpgilbert

‘Does sdparm support SCSI FW download?’ No but sg_write_buffer in this package does.

With regard to the sg_xcopy offer by yuvalkashtan, a sg_xcopy (and sg_copy_results) was added in version 1.34 . There have been several extensions and fixes added in versions 1.35 and 1.36 . Are there more features that you could suggest for sg_xcopy?

Does Sdparm support SCSI FW download?

sg3_utils 1.33

sg3_utils 1.33

sg3_utils package contains utilities that send SCSI commands to Linux devices. As well as devices on SCSI transports (e.g. Fibre channel and the SCSI parallel interface) many other devices use SCSI command sets.

Examples are ATAPI cd/dvd drives and SATA disks (typically via a translation layer or bridge device). SCSI command sets are divided into what are called «primary» commands (e.g. SPC-3) and device class specific sets (e.g. SBC-2 for disks and MMC-4 for cd/dvd devices). SCSI command sets and transports definitions can be found at www.t10.org .

The sg3_utils package targets the linux kernel 2.4 and 2.6 series and is still under active development. An earlier package called sg_utils targeted the linux kernel 2.2 series with some support for the 2.0 series. See an earlier version of this web page for further information about sg_utils. This document describes version 1.18 of sg3_utils .

In the linux kernel 2.4 series most these utilities must be used with a SCSI generic (sg) driver device name (e.g. /dev/sg0). In the lk 2.6 series almost all of these utilities can be used with the primary device names as well (e.g. /dev/sda, /dev/sdc0, /dev/st0 and /dev/hdd (if it is an ATAPI device)).

The SCSI generic (sg) interface still represents a cleaner interface than the primary device names since the drivers behind primary device names have their own policies, may interfere with error processing and in some cases run their own state machines.

· A sg_sanitize utility was added.
· A major rework of the sg_ses utility was undertaken.
· SCSI (t10.org) draft standard changes were incorporated.

Пакет исходного кода: sg3-utils (1.40-0ubuntu1)

Ссылки для sg3-utils

Ресурсы Ubuntu:

Сопровождающий:

Please consider filing a bug or asking a question via Launchpad before contacting the maintainer directly.

Original Maintainers (usually from Debian):

  • Ritesh Raj Sarraf
  • Jonathan McDowell

It should generally not be necessary for users to contact the original maintainer.

Внешние ресурсы:

Другие пакеты, относящиеся к sg3-utils

  • для сборки
  • build-depends-indep
  • adep: debhelper (>= 9) helper programs for debian/rules
  • adep: libtool Generic library support script
  • adep: libcam-dev [kfreebsd-any] Пакет недоступен
  • adep: dh-autoreconf debhelper add-on to call autoreconf and clean up after the build
  • adep: dpkg-dev (>= 1.16.1

    ) Debian package development tools

Download sg3-utils

Файл Размер (в Кб) Контрольная сумма MD5
sg3-utils_1.40-0ubuntu1.dsc 2,2 Кб a331c9cdba0fbc617219c9d9ab1451bf
sg3-utils_1.40.orig.tar.gz 1 152,1 Кб 4a74ed491b0891fc60cd91d2b5d68331
sg3-utils_1.40-0ubuntu1.debian.tar.xz 9,5 Кб 4c03fa4f844ac13f051ca57fcd08b330

Репозиторий пакетов исходного кода Debian (VCS : Git) git://anonscm.debian.org/collab-maint/sg3-utils.git Репозиторий пакетов исходного кода Debian (доступен просмотр) http://anonscm.debian.org/gitweb/?p=collab-maint/sg3-utils.git

This page is also available in the following languages:

Авторские права © 2021 Canonical Ltd.; См. условия лицензии. Ubuntu это торговый знак компании Canonical Ltd. Об этом сайте.

Оцените статью