| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Build: Add an iscsiuio 'build_date.sh' script
This is currently unused, but will be used by meson to
build the "build_date.[ch]" files used by iscsiuio.
* Build: have git ignore file '.setup'
I commonly use this file for shell aliases/functions.
* Add framework to support building using meson.
This adds the ability to use meson/ninja to build open-iscsi
and iscsiuio, rather than the current system that uses 'autoconf'
for iscsiuio and uses 'make' for everything else.
The old make/autoconf system is left in place, for now, but
deprecated, including a warning about that when running 'make all'
or 'make user' from the top-level.
* utils/build: enhance iscsi-iname to generate prefix
Added new "-g/--generate-iname-prefix" argument to generate the
InitiatorName= prefix. Also, updated iscsi-iname to use getopts.
Also, use the new option from meson.
* git/meson: remove 'builddir' from ignored files
The build directory can be called anything.
Suggested by: Eli Schwartz
* iscsiuio build: fix new build_date.sh script
Fixed several issues:
- fix option handling for "-S"
- fix epoch date handling from env (noticed by Eli Schwartz)
- remove debug statements
* iscsiuio meson: warn when not creating a symlink for iscsiuio
* meson: install man pages more efficiently
We don't need to specify path or subdirectory
* iscsiuio meson: remove unused source date epoch option
This option was never used, since we pass this info
from the environment.
* meson: no need to set libdir: default is fine
* iscsiuio meson: no need to add c_args: already there
* Don't generate initiatorname when cross-building (#367)
Let it be generated by the iscsi-init service.
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
* Set ISCSI_CONFIG_ROOT by meson
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
* Set LOCK_DIR from home_dir to lock_dir
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
* Install iface.example to db_root/ifaces
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Signed-off-by: TIAN Yuanhao <tianyuanhao3@163.com>
Co-authored-by: TIAN Yuanhao <78596099+tianyuanhao@users.noreply.github.com>
Co-authored-by: TIAN Yuanhao <tianyuanhao3@163.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* build: move utils/sysdeps to top-level
The routines here are used by iscsiuio, so
move them to the top level.
* libopeniscsiusr: fix kernel-doc bugs
There were errors in four places, effecting the generated
manual pages.
* libopeniscsiusr: clean up kernel-doc usage
Simplify generation of library interface documentation using
the kernel-doc script:
* make the kernel-doc perl script executble (the only visible change)
* remove mention of sed (not used)
* stop compressing man pages -- let distros do that
* improve kernel-doc so that doc-preclean.pl and split-man.pl
are no longer needed
* add list-man-pages.sh to simplify things (copied from libnvme)
* build: keep current version number in one place
Move the current version number (now 2.1.7) into
the top-level Makefile, and out of usr/version.h and
libopeniscsiusr/version.h, completely eliminating the
need for the latter.
Note that this ties the libopeniscsiusr library idea of
"version" to the usr/ (iscsid, etc) idea of version, even
though they used to be defined separately. But they always
had the same value, so nothing lost.
* build: insteall man pages uncompressed
We were delivering some man pages compressed and other not, and
it turns out distros know how to install man pages using the
compression they prefer, so stop doing it for them.
|
|
|
|
|
|
|
|
|
|
| |
This cleans up a little more than "make clean",
in particular removing files generated from templates,
and automake-generated files in iscsiuio.
Also, a ".PHONY:" target was added where needed
so that each Makefile has a complete list of
phony targets.
|
|
|
|
|
|
|
| |
Commit 9a2d2f2cf391 ("Make DB and ISCSIHOME directories configurable.")
added use of RULESDIR in utils/Makefile, but it needs to be passed
down from the top-level Makefile, as well, for it to be
configurable at build time.
|
|
|
|
|
| |
The "HOMEDIR" (/etc/iscsi by default) is no referenced
in the top-level Makefile, so no need to create it here.
|
|
|
|
|
|
| |
The top-level Makefile was adding in DESTDIR to HOMEDIR
and DBROOT before passing them down to etc, where DESTDIR
was being added again.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit moves the "fwparam_ibft" subdirectory from
being under "utils" to being under "usr", where its
actually used. It also updates usr/Makefile so that
it's smarter about how and when to build the fwparam_ibft
object files it needs, as well as how to build sysdeps.o.
From the top-level Makefile, "make user" will now make
the fwparam_ibft files, as needed for the "user" targets,
before building iscsid and friends.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit adds two new top-level build options: one
for the "home" directory for open-iscsi called "HOMEDIR",
and one for the "database" directory, called "DBROOT". One can
now override the defaults of "/etc/iscsi" for either or
both of these directories on the make command line.
The README and man pages are updated with details about
these new options.
Some Makefile cleanup/repair was done as well. Installation
of the initiatorname.iscsi file, was moved out of the top-level
Makefile into the etc subdirectory, and installation of man
ages moved from the top-level Makefile to the doc subdirectory.
Also, this fixes some issues from commit fd14dd8316b1 ("Clean
p Makefile build system."), which incorrectly changed the DESTDIR
ariable in the Makefiles. This current commit also fixes the
top-level variable names for moving DBROOT and HOMEDIR.
|
|
|
|
|
|
| |
Commit fd14dd8316b1 ("Clean up Makefile build system.") cleaned up
the Makefiles, but it left install_etc in the top-level Makefile,
which is not used. Removed it.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A major overdue overhaul of the Make layout, including
moving lots of lower-level things out of the top-level
Makefile into the Makefiles for the appropriate subdirectory,
renaming the template files (where @SBINDIR@ gets translated)
so that their purpose is more obvious, making the build more
idempotent (no need to install a file if it's not newer).
Should be no functional change, as no script or C file changed.
Main difference from before: now the udev rules gets made and
installed by default (as part of "make"/"make install"), and
the iscsiuio daemon is now installed for "make install".
One should now be able to go into any subdirectory and type
"make"/"make install" to build and install the targets from
that directory, at least for the etc, utils, and usr
subdirectories.
This change is in preparation for more template translations
coming.
|
|
|
|
|
|
|
| |
Cleaning up the Makefiles, in preperation for adding the
ability to move files out of /etc/iscsi more easily. Also,
clean up the README file by updating it with help updated
help messages, alignment, and those pesky spaces at the ends of lines.
|
|
|
|
| |
These files have not been used for years.
|
|
|
|
|
|
|
|
|
| |
Previous implement would installl systemd files to
"/usr/lib/systemd/system/system" which should be
"/usr/lib/systemd/system". Fix this by updating
variable systemddir.
Signed-off-by: Wenchao Hao <haowenchao@huawei.com>
|
| |
|
|
|
|
| |
remove a merge error
|
|
|
|
|
|
|
|
|
|
| |
A Recent commit, fff82c57f5df ("Use "sbindir" for
path in systemd service files") added the ability
to have our binaries in another location rather
than /sbin (e.g. /usr/sbin), but it was incomplete.
This commit finishes the job.
Fixes: fff82c57f5dfe6d3db795f1195b4d2ebc497d33c
|
|
|
|
|
|
|
|
|
|
| |
Use a variable for the sbin directory where executables
go in our systemd unit files, so that the files can
be configured, during installation, to have the
correct path, instead of just hard-coding these paths.
Now "make sbindir=/SOME/PATH ..." works correctly for
different paths.
|
|
|
|
|
|
|
|
|
|
| |
iscsi-init.service is not included in the SYSTEMDFILES Makefile variable,
causing it to be skipped when the install_systemd rule is executed. This causes
the iscsi systemd service to fail on a fresh install, as it requires the
iscsi-init service.
This commit adds etc/systemd/iscsi-init.service to the list of files in
SYSTEMDFILES to correct this issue.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Commit c1870ae6dddb7bc2dbdc750df68edbbe1a80763f added systemd
support to iscsiuio, but it was not integrated with the
autoconf script there, so this commit rectifies that. Now one
can build without systemd support, from the top, using:
$ make OPTFLAGS="... -DNO_SYSTEMD ...
which now works for both iscsid and iscsiuio.
|
|
|
|
|
|
|
|
|
| |
You can compile without system now by using something
like:
make OPTFLAGS="-DNO_SYSTEMD ..." NO_SYSTEMD=1
This will skip systemd code for iscsid and iscsiuio.
|
|
|
|
|
| |
Found by dualdm on github, who suggested a fix
but then went away, so this is submitted for him.
|
|
|
|
| |
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
| |
the kernel subdirectory no longer exists
|
|
|
|
|
|
|
|
|
|
| |
* This is the initial patch of the library libopenscsiusr.so, so we have no
actual code on iscsi functionality, just introduce a code layout.
* The library is created by following the guideline of libabc.
* Documentation is done by using linux kernel-doc script generating
manpages out of header files.
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
| |
Signed-off-by: Gris Ge <fge@redhat.com>
|
|
|
|
|
| |
This is just cleanup, as these scripts and man pages
are present but just not named in the top-level Makefile.
|
|\
| |
| | |
Repo cleanup, delete old kernel stuff and unused stub code
|
| |
| |
| |
| |
| |
| | |
The out of tree kernel code in this repo has not been maintained for a
very long time. We're only maintaining the user-space tools here, the
kernel side is in the Linux kernel.
|
|/
|
|
|
|
|
| |
Add a script that logs into all iSCSI firmware
targets, and add a udev rule to call that script
when new targets are detected. Also, add a
man page for the script.
|
|
|
|
|
|
|
| |
This preceeds removing of the internal version of
open-isns. All open-isns includes are changed from
"file.h" to <libisns/file.h>, and the Makefiles
remove all use of the local open-isns files.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make the build systsem respect CFLAGS and LDFLAGS set from the outside.
Previously, OPTFLAGS could be set to alter CFLAGS (which were
overridden completely), but that is non-standard, so also check for
user-set CFLAGS. This will make life easier when packaging this for
distributions. If OPTFLAGS is set, prefer that to CFLAGS to retain the
old behavior in that case (and not break current builds).
Additionally, also use LDFLAGS for linking the binaries, which was not
respected at all previously.
|
|
|
|
|
| |
Make sure 'make clean' will always succeed. Also make distclean in
iscsiuio subdirectory.
|
|
|
|
|
|
|
|
| |
Several Makefile targets are missing DESTDIR, making it
hard for packagers.
Signed-off-by: Lee Duncan <lduncan@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
|
|
|
| |
The automake files from iscsiuio are somewhat oldish.
So update them to the current standard.
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
|
|
|
| |
This patch modifies the open-iscsi Makefile to include the compilation,
binary/manpage install, and clean of the iscsiuio source.
Signed-off-by: Eddie Wai <eddie.wai@broadcom.com>
|
|
|
|
|
|
|
|
| |
We only need to run configure in open-isns if either the
configure script or Makefile.in has changed. Otherwise
it's perfectly okay just to call a plain 'make' here.
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With stable kernels and the iscsi kernel modules stablizing, there is
less of a need to distribute kernel modules with the tarball. I also
do not have time to update and maintain ports of the modules for
so many kernels. So this patch changes the build default behavior.
Running "make" use to build the kernel modules and tools. Now, it
will only create the tools. "make install" used to install the
tools and kernel modules and now it only installs the tools.
I am not removing the kernel modules, but I will not be updating them
anymore. They will remain for users of very old kernels. To build
you now need to do
and to install do
|
|
|
|
|
|
| |
For discovery we do not use the isns dsa code but
still build against libcrypto. This disables the code
until we add support.
|
|
|
|
|
|
|
| |
Mv isns cleanup to last step incase it has not been built. It
will then not stop the makefile from other processing.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This replaces the native isns code with open-isns's libisns.
I included the open-isns code in the open-iscsi tarball
to make distribution easier since some distros use different
isns clients and may not want to carry open-isns.
This is based on open-isns commit
5e09f36d3446e41de0b8361601ffec4cd140d513.
Changes in iSNS behavior/use:
- To do discovery you must pass the ip and optionally the
port to iscsiadm:
iscsiadm -m discovery -t st -p 10.15.0.9
This command accepts the same ops as sendtargets so you can
add/remove/update the node records that are created.
It also supports ifaces properly now.
- isns.address and isns.port in iscsid.conf are no longer
used.
- ESI is temporarily not supported. This will be fixed in the
next patch when SCNs support is added.
- The iscsiadm isns discovery command is not marked as stable.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
|
|
|
|
|
|
|
| |
For packaging, it's very useful to to check for /etc/iscsi/initiatorname.iscsi in the real
filesystem but if we have to generate a new one, this should be done inside DESTDIR and not
in the real filesystem as we might be in a sandboxed environment without being able to
write anywhere else.
|
|
|
|
| |
When doing a make notify user that iscsistart was built.
|
|
|
|
|
| |
We messed up strncat in so many different ways that strlat could
fix. This patch converts the userspace uses of strncat to strlcat.
|
|
|
|
|
|
|
|
| |
Separate out the build of "kernel:" and "user:" targets.
[Mike please revisit the @echo output if we need anything added]
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Users may want to install the userspace tools but
use the distro kernel modules. This adds a
make user
to build the userspace tools. And it adds a
make user_install
to install the userspace tools.
|
|
|
|
|
|
|
|
|
| |
These are some updates to the SUSE init scripts, plus a new
boot.open-iscsi script for SUSE. The latter is used for
root on iscsi, to start iscsid as early as possible to
avoid deadlocks on the root fs.
Signed-off-by: Hannes Reinecke <hare@suse.de>
|
|
|
|
|
|
| |
from Albert:
Need some ;\ to break up lines.
|