Comment # 49 on bug 1036463 from
(In reply to Martin Wilck from comment #48)

> Summarizing, unless I'm overlooking something essential, the early loading
> of the sg driver is really just a relict from the past and could be dropped.

This argument is about system boot, udev rules, and device detection only. 

We've been early-loading sg for decades, so it's quite likely that user-space
applications, either shipped or 3rd party, rely on the sg driver being present.
If we don't load sg at all, such applications may fail in strange ways.

But to address that issue, "late" loading of sg would be sufficient. Thus the
approach of comment 5 should work, and should also address libgphoto2's needs.

>From a technical point of view, comment 5 is actually too broad - as argued in
comment 48, loading sg isn't necessary for devices that forward ioctls to
scsi_cmd_ioctl(), which, AFAICS, applies at least for sd, sr, and st. Anyway,
user space apps may not be aware of this, and look for the sg device nodes
anyway, so we should probably apply comment 5 even if it's not strictly
necessary.

Comments, please.


You are receiving this mail because: