-
Thomas Leibovici authored
It looks LTFS 2.4 prefers taking a path to the SCSI generic device (sg) instead of the SCSI tape device (st). This issue only appears on some systems but the recent LTFS doc mostly mention the use of 'sg' devices. This change makes ldm_dev_lookup() return the path to an 'sg' device to LTFS. Nonetheless, ldm_dev_scsi_tape must still rely on 'st' devices to be able to query tape-drive-specific information (like serial number and model). So it maintains a mapping of st<->sg devices with their related information. When adding devices, administrators can provide either 'st' or 'sg' devices, as both fields are checked in the mapping described above. Change-Id: I61866121e2ef4b08a190f1ec02e2aee6958e1d7f Signed-off-by: Thomas Leibovici <thomas.leibovici@cea.fr> Reviewed-on: https://cws-fleury.labs.ocre.cea.fr/gerrit/6519 Reviewed-by: Linter Reviewed-by: Sebastien Gougeaud <sebastien.gougeaud@cea.fr> Tested-by: Jenkins s8open_nr <s8open_nr@ccc.ocre.cea.fr> Reviewed-by: Patrice LUCAS <patrice.lucas@cea.fr>
74cb2535