1lsm_local_disk_link_type_geLti(b3s)toragemgmt C API Mlasnmu_allocal_disk_link_type_get(3)
2
3
4
6 lsm_local_disk_link_type_get - Query disk link type.
7
9 int lsm_local_disk_link_type_get (const char *disk_path,
10 lsm_disk_link_type *link_type, lsm_error **lsm_err);
11
13 disk_path String. The path of disk, example "/dev/sdb".:
14
15 link_type Output pointer of lsm_disk_link_type.
16
17 lsm_err Output pointer of lsm_error. Error message could be: re‐
18 trieved via lsm_error_message_get. Memory should be freed
19 by lsm_error_free.
20
22 1.3
23
25 Query the disk link type of specified disk path. For SATA disks con‐
26 nected to SAS SES enclosure, will return LSM_SCSI_LINK_TYPE_ATA. Re‐
27 quire permission to open /dev/sdX(root user or disk group).
28
29 Possible value of lsm_disk_link_type:
30 * LSM_DISK_LINK_TYPE_UNKNOWN
31 When error or unknown.
32 * LSM_DISK_LINK_TYPE_FC
33 Fibre Channel.
34 * LSM_DISK_LINK_TYPE_SSA
35 Serial Storage Architecture, Old IBM tech.
36 * LSM_DISK_LINK_TYPE_SBP
37 Serial Bus Protocol, used by IEEE 1394.
38 * LSM_DISK_LINK_TYPE_SRP
39 SCSI RDMA Protocol.
40 * LSM_DISK_LINK_TYPE_ISCSI
41 Internet Small Computer System Interface.
42 * LSM_DISK_LINK_TYPE_SAS
43 Serial Attached SCSI.
44 * LSM_DISK_LINK_TYPE_ADT
45 Automation/Drive Interface Transport Protocol, often used by Tape.
46 * LSM_DISK_LINK_TYPE_ATA
47 PATA/IDE or SATA.
48 * LSM_DISK_LINK_TYPE_USB
49 USB disk.
50 * LSM_DISK_LINK_TYPE_SOP
51 SCSI over PCI-E.
52 * LSM_DISK_LINK_TYPE_PCIE
53 PCI-E, e.g. NVMe.
54
56 Error code as enumerated by 'lsm_error_number':
57 * LSM_ERR_OK
58 On success.
59 * LSM_ERR_INVALID_ARGUMENT
60 When any argument is NULL
61 * LSM_ERR_NO_MEMORY
62 When no memory.
63 * LSM_ERR_LIB_BUG
64 When something unexpected happens.
65 * LSM_ERR_NOT_FOUND_DISK
66 When provided disk path not found.
67 * LSM_ERR_PERMISSION_DENIED
68 Insufficient permission to access provided disk path.
69
70
71
72April 2023 lsm_local_disk_link_typles_mg_eltocal_disk_link_type_get(3)