On Tue, 2008-06-03 at 23:55 +0530, Amar Mudrankit wrote:The idea would be to have a separate file per attribute, ie ioc_guid in a file, dgid in a file, pkey in a file, and so on. Userspace would make a directory for the new connection in /configfs/qlogic-device (or what ever you call it), and configfs will populate it with default values for those attributes. Or so the theory goes. Unfortunately, you need all that information before you can create the connection. The configfs guys have thought about that, but not implemented yet: It looks like the design for what you'd need is there, but no code -- ag grep for 'commit' in the fs/configfs directory doesn't give me anything, though I just did a cursory glance when it was suggested that SRP use this. So, I don't think configfs is ready for your use case just yet. Perhaps you can contact the configfs guys and see where they are at on this. I suppose you could also implement a special "activate" attribute that tells your code that all the attributes are set when it gets written, but that seems counter to the intended usage, and there are some possible obj lifetime rules to deal with then. The commitable item concept seems like a much better fit. -- Dave Dillow National Center for Computational Science Oak Ridge National Laboratory (865) 241-6602 office -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| Artem Bityutskiy | [PATCH 18/44 take 2] [UBI] build unit implementation |
| James Morris | Re: LSM conversion to static interface |
git: | |
| Paul Jackson | [PATCH] cpuset sched_load_balance kmalloc fix |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Linus Torvalds | Re: [GIT]: Networking |
