Re: Persistent USB to rs232 serial converter device name patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

Karl O. Pinc wrote:
> The patches generate udev rules, in extras/rule_generator/, like the
> process that generates persistent nic names, only for ttyUSB devices.

Why not make it act like persistent-storage and persistent-input, and
add symlinks?  The persistent-net stuff can't do that because there is
no such thing as a symlink to a net_device (and even if there was, the
IFNAMSIZ constant in the kernel is too small to handle the longer names
this would generate, and IFNAMSIZ is part of the userspace ABI).  The
persistent-cd stuff can't do that because its symlinks are named e.g.
"cdrom1", and don't have the serial # or path in them, and it needs to
have "cdrom1" always be the same device.

But persistent-storage creates a /dev/disk/by-id/ link that's named with
the disk's SCSI or ATA (or whatever) identifying information, along with
several other /dev/disk/by-*/ links using other info.  I don't see any
reason you couldn't do the same with e.g. /dev/ttyUSB/by-path/ and
/dev/ttyUSB/by-id/ links.  Of course ttyUSB could change; that's just
the first name that came to mind.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIbLS4S5vET1Wea5wRAxdcAJ9utojzdBFUjYi4p7OsiKq1qyY4NwCg1FvS
pD+srRu2KkfYhmeqk8Ka+j4=
=l1PR
-----END PGP SIGNATURE-----
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux