<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/targetcli.git, branch master</title>
<subtitle>github.com: agrover/targetcli-fb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/'/>
<entry>
<title>Merge pull request #198 from gonzoleeman/fix-changing-savedir-mode</title>
<updated>2023-04-26T17:22:54+00:00</updated>
<author>
<name>Lee Duncan</name>
<email>lduncan@suse.com</email>
</author>
<published>2023-04-26T17:22:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=80f82f1f71f0be307a3725e68e49841efc898cad'/>
<id>80f82f1f71f0be307a3725e68e49841efc898cad</id>
<content type='text'>
Fix changing savedir directory mode</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix changing savedir directory mode</pre>
</div>
</content>
</entry>
<entry>
<title>Fix changing savedir directory mode</title>
<updated>2023-04-24T17:34:39+00:00</updated>
<author>
<name>Lee Duncan</name>
<email>lduncan@suse.com</email>
</author>
<published>2023-04-24T17:34:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=b8eb1933d4fdcbe806edead8cfa94879d0fc2015'/>
<id>b8eb1933d4fdcbe806edead8cfa94879d0fc2015</id>
<content type='text'>
Commit 9f5764dac39b ("saveconfig: set right perms on /etc/target/ dir")
fixed CVE-2020-13867 by ensuring that the mode of the target
meta-data directory (/etc/target) was always mode 0600. But users
can specify a different directory, such as "/tmp", and we don't
want targetcli changing the mode of such directories to 0600. So
only change the mode of the directory, when saving a config file,
if the directory is /etc/target.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Commit 9f5764dac39b ("saveconfig: set right perms on /etc/target/ dir")
fixed CVE-2020-13867 by ensuring that the mode of the target
meta-data directory (/etc/target) was always mode 0600. But users
can specify a different directory, such as "/tmp", and we don't
want targetcli changing the mode of such directories to 0600. So
only change the mode of the directory, when saving a config file,
if the directory is /etc/target.
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #197 from zoumingzhe/kill</title>
<updated>2023-04-14T08:30:03+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2023-04-14T08:30:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=f26c1ae9d255e7db4c3cb51c72dc081e17ad25a4'/>
<id>f26c1ae9d255e7db4c3cb51c72dc081e17ad25a4</id>
<content type='text'>
targetcli: avoild Ctrl+C print error stack</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
targetcli: avoild Ctrl+C print error stack</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #189 from zoumingzhe/zmz-dev</title>
<updated>2023-04-14T08:29:33+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2023-04-14T08:29:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=5cd6c7d241a924b91404f9d571e2e186aba6a045'/>
<id>5cd6c7d241a924b91404f9d571e2e186aba6a045</id>
<content type='text'>
fix setting preference rollback error</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fix setting preference rollback error</pre>
</div>
</content>
</entry>
<entry>
<title>targetcli: avoild Ctrl+C print error stack</title>
<updated>2023-03-27T08:44:40+00:00</updated>
<author>
<name>Mingzhe Zou</name>
<email>zoumingzhe@qq.com</email>
</author>
<published>2023-03-27T08:42:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=b4632c05d8c0a51460fb84ea70820f5136105fff'/>
<id>b4632c05d8c0a51460fb84ea70820f5136105fff</id>
<content type='text'>
Signed-off-by: Mingzhe Zou &lt;zoumingzhe@qq.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Mingzhe Zou &lt;zoumingzhe@qq.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix setting preference rollback error</title>
<updated>2021-10-22T06:02:05+00:00</updated>
<author>
<name>mingzhe.zou@easystack.cn</name>
<email>mingzhe.zou@easystack.cn</email>
</author>
<published>2021-10-22T05:45:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=963e4e9d5fbbda2f6bd4865e8f2e71d8253d8879'/>
<id>963e4e9d5fbbda2f6bd4865e8f2e71d8253d8879</id>
<content type='text'>
Setting preference maybe rollback when execute multiple targetcli requests concurrently.
ConfigShell always initialization new Console object.
However, the lockfile need to be opened before requesting flock.
At this time, an exception may occur and need to be output to the console.
Currently, ConfigShell always initializes a new Console object.
So, ConfigShell is initialized first to be able to print information.
The prefs.bin file will be loaded when ConfigShell is initialized.
In this case, the old value may be read, if a new preference is being set and not saved.
In order to solve this problem we must first initialize a Console object.

This patch needs https://github.com/open-iscsi/configshell-fb/pull/62 to be merged first.

Signed-off-by: Zou Mingzhe &lt;mingzhe.zou@easystack.cn&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Setting preference maybe rollback when execute multiple targetcli requests concurrently.
ConfigShell always initialization new Console object.
However, the lockfile need to be opened before requesting flock.
At this time, an exception may occur and need to be output to the console.
Currently, ConfigShell always initializes a new Console object.
So, ConfigShell is initialized first to be able to print information.
The prefs.bin file will be loaded when ConfigShell is initialized.
In this case, the old value may be read, if a new preference is being set and not saved.
In order to solve this problem we must first initialize a Console object.

This patch needs https://github.com/open-iscsi/configshell-fb/pull/62 to be merged first.

Signed-off-by: Zou Mingzhe &lt;mingzhe.zou@easystack.cn&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>version 2.1.54</title>
<updated>2021-03-04T12:51:22+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2021-03-04T12:51:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=033cf1c2d34c73cce84c4c12c7383188167bf9e5'/>
<id>033cf1c2d34c73cce84c4c12c7383188167bf9e5</id>
<content type='text'>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #177 from maurizio-lombardi/sparse</title>
<updated>2020-11-23T18:04:25+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-11-23T18:04:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=af9f5f679d37d91469a73226605d827a4986bcff'/>
<id>af9f5f679d37d91469a73226605d827a4986bcff</id>
<content type='text'>
fileio backstore: fix sparse file creation</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fileio backstore: fix sparse file creation</pre>
</div>
</content>
</entry>
<entry>
<title>fileio backstore: fix sparse file creation</title>
<updated>2020-11-23T18:02:58+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-11-13T10:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=3176671662bda79d4b4059b8cc22b4b31a6547e0'/>
<id>3176671662bda79d4b4059b8cc22b4b31a6547e0</id>
<content type='text'>
fallocate() can't be used to create sparse files because it
actually preallocates all the disk space that will be used by the file
backstore, sparse files do not have preallocated disk space
by definition.
We must therefore use ftruncate().

We can, on the other hand, use fallocate() to create non-sparse
files and fall back to the slower "while() fwrite()" if we
are running on Python version &lt; 3.3 where fallocate() is not available

Fixes 3bd4d8ef7c9b154c53e8b8dd863a570bce7f5c2c

Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fallocate() can't be used to create sparse files because it
actually preallocates all the disk space that will be used by the file
backstore, sparse files do not have preallocated disk space
by definition.
We must therefore use ftruncate().

We can, on the other hand, use fallocate() to create non-sparse
files and fall back to the slower "while() fwrite()" if we
are running on Python version &lt; 3.3 where fallocate() is not available

Fixes 3bd4d8ef7c9b154c53e8b8dd863a570bce7f5c2c

Signed-off-by: Maurizio Lombardi &lt;mlombard@redhat.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #176 from iammattcoleman/no-systemd-changes-in-setup.py</title>
<updated>2020-07-16T07:31:21+00:00</updated>
<author>
<name>Maurizio Lombardi</name>
<email>mlombard@redhat.com</email>
</author>
<published>2020-07-16T07:31:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/targetcli.git/commit/?id=2c3eccac082a2980aaed371a1fdf0efc6a49dd59'/>
<id>2c3eccac082a2980aaed371a1fdf0efc6a49dd59</id>
<content type='text'>
Do not install systemd files in setup.py</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not install systemd files in setup.py</pre>
</div>
</content>
</entry>
</feed>
