Bug 1215476

Summary: sane-backends: Sane scans for /dev/sga but scanner is at /dev/sg10
Product: [openSUSE] openSUSE Tumbleweed Reporter: Bodo Eggert <7eggert>
Component: OtherAssignee: Stefan Brüns <stefan.bruens>
Status: RESOLVED UPSTREAM QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bodo Eggert 2023-09-19 09:35:31 UTC
The kernel currently uses /dev/sd{\d+}, but the search algorithm uses /dev/sg[0-9a-z].

After (cd /dev && ln -s sg10 sga), the scanner is found:

--8<---
This is sane-find-scanner from sane-backends 1.2.1

…
searching for SCSI scanners:
…
checking /dev/sga... open ok
found SCSI scanner "FUJITSU fi-5120Cdj 0E00" at /dev/sga
…
--8<---

Proposed fix: Also scan for /dev/sd\d{\d+}
Comment 1 Bodo Eggert 2023-09-19 09:46:13 UTC
PS: scanimage / xsane expects the device node at /dev/scsi/host6/bus0/target4/lun0/generic, but it's not being created there. Only /dev/sg[0-8] are scanned.
Comment 2 Stefan Brüns 2023-10-08 16:55:39 UTC
1. /dev/sdX is used for disks, not "generic" scsi devices
2. This is apparently an upstream (SANE project) issue, not (open)SUSE specific, please open a bug report there.