summaryrefslogtreecommitdiffstats
path: root/sg_io.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* imsm: fix reading scsi serialArtur Paszkiewicz2017-11-021-0/+3
| | | | | | | | | | | Improve error detection after SG_IO ioctl. Checking only the return value and response length is insufficient and leads to anomalies if a drive does not have a serial number. Reported-by: NeilBrown <neilb@suse.com> Tested-by: NeilBrown <neilb@suse.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Signed-off-by: Jes Sorensen <jsorensen@fb.com>
* imsm: retrieve nvme serial from sysfsArtur Paszkiewicz2016-10-071-4/+19
| | | | | | | | | | | | | | | | Don't rely on SCSI ioctl for reading NVMe serials - SCSI emulation for NVMe devices can be disabled in the kernel config. Instead, try to get a serial from /sys/block/nvme*/device/serial. If that fails for whatever reason (i.e. no such attribute in old kernels) - fall back to the SCSI method. This also moves some SCSI-specific code from imsm_read_serial() to scsi_get_serial(). Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com> Reviewed-by: Tomasz Majchrzak <tomasz.majchrzak@intel.com> Reviewed-by: Alexey Obitotskiy <aleksey.obitotskiy@intel.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
* Remove lots of unnecessary white space.NeilBrown2013-06-191-1/+1
| | | | | | | Now that I am using white-space mode in Emacs I can see all of this, and I don't like it :-) Signed-off-by: NeilBrown <neilb@suse.de>
* update copyright headersDan Williams2008-10-281-1/+1
| | | | Signed-off-by: Dan Williams <dan.j.williams@intel.com>
* imsm: initial Intel(R) Matrix Storage Manager supportDan Williams2008-05-151-0/+42
From: Dan Williams <dan.j.williams@intel.com> The following now work: --examine --examine --brief Signed-off-by: Dan Williams <dan.j.williams@intel.com>