On Mon, Jun 22, 2015 at 01:18:43PM +0300, Dimitris Aragiorgis wrote: > So I suggest we go with the submitted patch taking into account Eric's > proposal: The code first stat()s the given filename to ensure it is a > character device node, and then it issues the SG_GET_VERSION_NUM and > SG_GET_SCSI_ID ioctl()s.
That's fine. Regarding Eric's comment about ioctl number collisions, I've checked Linux Documentation/ioctl/ioctl-number.txt. At least under Linux there is no collision for SG_GET_VERSION_NUM/SG_GET_SCSI_ID. Stefan
pgp5jiALAVKKY.pgp
Description: PGP signature