]> granicus.if.org Git - sysstat/commit
Update functons used to count number of FC hosts
authorSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2015 13:15:54 +0000 (15:15 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Sun, 12 Apr 2015 13:15:54 +0000 (15:15 +0200)
commita187f650efebe966345b7d83a7ac5721b7145fd1
tree5b350641025b9174dfccca60dbecd5442308ad21
parenta3797b1f0494ab347d2b424c739a566d812a31d1
Update functons used to count number of FC hosts

Update/improve functions used to count number of FC hosts:
1) Move code used to count hosts from sa_wrap.c to its normal location
(count.c).
2) Preallocate FC host structures to take into account a possibly
dynamically registerd host. No structures are allocated only if
/sys/class/fc_host directory is not found.

Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
count.c
count.h
json_stats.c
pr_stats.c
prealloc.in
rndr_stats.c
sa_wrap.c
xml_stats.c