| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
Check whether socket is opened successfully in find_vlan_dev func
|
| |
| |
| |
| |
| |
| | |
In find_vlan_dev func, socket should be checked before used.
Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
|
|\ \
| | |
| | | |
Fix memory leaks in libopeniscsiusr/idbm.c
|
| |/
| |
| |
| |
| | |
Running "make check" in the libopeniscsiusr directory found
two memory leaks. The fix was to free the memory.
|
|\ \
| |/
|/| |
Update regression test
|
| |
| |
| |
| |
| |
| |
| | |
Using the new "-s" option, one can specify a single subtest or
a range of subtests. Together with the blocksize arguments and
being able to specify the actual test case if you wish, you
can now run just a single test.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Now you can run:
> python3 -m unittest discover
to run all the tests, using discovery, or
> ./test-open-iscsi -l
to list the tests.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Tested on Tumbleweed, and all tests pass so far. Run time is
around 3 hours so far, for the whole suite.
|
| |
| |
| |
| | |
At least they are coded.
|
|/
|
|
|
| |
Created a framework. Replacing disktest with fio, sfdisk
with parted, and moving to a PyUnit test framework.
|
|\
| |
| | |
Avoid logout of iscsi boot session
|
|/ |
|
|\
| |
| | |
Fix compiler issues
|
| |
| |
| |
| |
| |
| |
| | |
Now that "-Werror" is turned on, 32-bit x86 compile problems are
fatal, so fix them.
*Should* be no functional change.
|
| |
| |
| |
| |
| |
| | |
This meant cleaning up the definition of some
global variables, so that they were only defined
in one place and refered to as external elsewhere.
|
|/
|
|
|
|
| |
Enabled -Wextra and -Werror, then fixed all the issues found.
*Should* be no functional change.
|
|
|
|
|
|
| |
It's been reported that this breaks IPv6 discovery with qedi controllers
This reverts commit af48f0d68db48cd492d0e27e046fc011be236fd3.
|
|\
| |
| | |
Fix bug with libopeniscsiusr.pc
|
| |
| |
| |
| |
| | |
The library name is libopeniscsiusr, so the -l linker option should be
`-lopeniscsiusr` instead of `-liscsiusr`.
|
|\ \
| |/
|/| |
configuration support for CHAP algorithms
|
|/
|
|
|
|
|
|
| |
Introduces support for preference lists in configuration files, and uses
that for the 'node.session.auth.chap_algs' setting.
This is also re-used for discovery authentication, rather than have two
different configurations.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Updated Changelog and two include files.
Note that this bumps the minor version number from
0 to 1, and starts the "patch" version number over
again at 0.
See https://semver.org for information on semantic
versioning.
|
|
|
|
|
| |
Some places list version number with "2.0-NUMBER", and some
as "2.0.NUMBER". The latter is correct.
|
|\
| |
| | |
first batch of changes to address Coverity scan issues
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This loop is executing 16 times (sizeof(struct ipv6_addr)) but then
consumes 16-bits at a time (and moves ptr ahead two bytes).
|
| | |
|
| |
| |
| |
| |
| | |
Resource Leak: Variable mac_file going out of scope leaks the storage it points to.
Resource Leak: Handle variable mac_fd going out of scope leaks the storage it points to.
|
| |
| |
| |
| |
| |
| | |
Picked up by Coverity as a resource leak on the allocated context,
callers are not expected allocation here (and the function would need to
take a **boot_context if they were)
|
| | |
|
| |
| |
| |
| | |
Don't know who might be trying to make really long IQNs ¯\_(ツ)_/¯
|
| |
| |
| |
| |
| | |
We don't actually control the open-iscsi.org domain anymore, so change
the prefix to reflect the use of open-iscsi.com
|
| |
| |
| |
| | |
dereferencing pointer
|
| | |
|
| |
| |
| |
| |
| |
| | |
This is comming up in places where the error handling assumes that on a
failure there is no file descriptor to worry about. I don't think we
need to keep fd around when indicating a connection error.
|
| |
| |
| |
| | |
points to.
|
| |
| |
| |
| | |
points to.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
acl_text_to_number
This was triggering from acl_text_to_number callsites, but the issue to
me looks like the unneeded reading of the parameter num. The variable
number is always going to be overwritten after this with the output of
strtoul.
|
| |
| |
| |
| |
| |
| |
| |
| | |
On iscsi_context_new failure in main, this was jumping to out without
the ifaces list head being initialized.
Run through this file making use of LIST_HEAD for static initialization
where possible.
|
| | |
|
| |
| |
| |
| | |
destination array
|
| |
| |
| |
| | |
point to.
|
| | |
|