On Jul 23 Andy Grover wrote: > I'm looking to add sbp support to the target userspace config tools, in > the form of an rtslib .spec file[1]. > > How does one get a list of the guids for local fw devices that can be > used as targets? I looked under /sys/class/* but didn't see anything. > Should I be looking at /sys/bus/firewire/devices/*/guid? Yes in principle, but there is a caveat with "older" kernels, like v3.5 and before. :-) > How do I filter these properly? To determine whether a node is a local node, you currently need to use the /dev/fw* ioctl interface itself. Here is a code snippet which contains a "is it a local node?" test: https://user.in-berlin.de/~s5r6/linux1394/utils/test-phy-pinging_v20100719.c But there is a patch pending and planned to be released in v3.6-rc1 which adds a sysfs attribute that tells whether a node is local or remote. http://git.kernel.org/?p=linux/kernel/git/ieee1394/linux1394.git;a=commitdiff;h=baedee177e6c553af455865718971d9a9c75e537 http://git.kernel.org/?p=linux/kernel/git/ieee1394/linux1394.git;a=commitdiff;h=e3cbd92002a30aecae8cb8b31a5e1916eb270a14 -- Stefan Richter -=====-===-- -=== ==--- http://arcgraph.de/sr/ -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html