Commit 8bac96a
committed
prov/verbs: Always return vrb_prov in VERBS_INI
Previously NULL was returned if vrb_os_ini() failed. This mainly affected
Windows because the function would always succeed on Linux. On Windows,
the function would fail if the ND driver failed to initialize.
Returning NULL from VEBRS_INI prevents fi_getinfo() from working as
expecetd when the FI_PROV_ATTR_ONLY flags is used. This patch moves the
vrb_os_ini() check to vrb_init_info() which is invoked when fi_getinfo()
is called the first time.
Signed-off-by: Jianxin Xiong <[email protected]>1 parent 75c559e commit 8bac96a
2 files changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1366 | 1366 | | |
1367 | 1367 | | |
1368 | 1368 | | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1369 | 1376 | | |
1370 | 1377 | | |
1371 | 1378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
807 | 807 | | |
808 | 808 | | |
809 | 809 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | 810 | | |
814 | 811 | | |
815 | 812 | | |
| |||
0 commit comments