diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2012-03-22 03:16:31 -0400 |
---|---|---|
committer | Mike Christie <michaelc@cs.wisc.edu> | 2012-03-22 03:16:31 -0400 |
commit | e6e47f08eef2978c0915658f610c5251e86925ae (patch) | |
tree | 1361b151d6392bab598324939d134a8ca5a92d23 | |
parent | 65587dd31ca89395ee5300de33863fa880b970ce (diff) | |
download | open-iscsi-e6e47f08eef2978c0915658f610c5251e86925ae.tar.gz |
iscsiadm: make sure offload drivers are loaded in host mode
If a user wanted to print out host info then make sure
the module is loaded.
-rw-r--r-- | usr/host.c | 1 | ||||
-rw-r--r-- | usr/iscsiadm.c | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -295,6 +295,7 @@ int host_info_print(int info_level, uint32_t host_no) break; } + transport_probe_for_offload(); err = iscsi_sysfs_for_each_host(&flags, &num_found, host_info_print_tree); break; diff --git a/usr/iscsiadm.c b/usr/iscsiadm.c index 4303135..b8f86a2 100644 --- a/usr/iscsiadm.c +++ b/usr/iscsiadm.c @@ -2240,6 +2240,8 @@ static uint32_t parse_host_info(char *optarg, int *rc) *rc = 0; if (strstr(optarg, ":")) { + transport_probe_for_offload(); + host_no = iscsi_sysfs_get_host_no_from_hwaddress(optarg, &err); if (err) { |