From: Nicholas Bellinger Date: Sat, 7 Mar 2015 04:34:32 +0000 (-0800) Subject: target: Add target_show_dynamic_sessions attribute helper X-Git-Tag: omap-for-v4.1/fixes-rc1~30^2~66 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8e471f9eb9068bf5ac8c6a04da74329a442f75a;p=pandora-kernel.git target: Add target_show_dynamic_sessions attribute helper This patch adds a new helper function that can be used by fabric driver TPG attributes for dumping the list of active sessions with a dynamically generated se_node_acl. (generate_node_acl=1). It prints one se_node_acl->initiatorname per line, up to PAGE_SIZE which is due to the current limitiation of single page attribute output within sysfs and configfs code. Note that if a session is referencing a explicit NodeACL, the InitiatorName will not appear within dynamic_sessions output. Reported-by: Andy Grover Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed