5 Commits

Author SHA1 Message Date
Albert Esteve
fc6e58d9e6 reuse: addheader test/*.py
Add SPDX header to python files with
the 'py' extension in the test directory.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00
Nir Soffer
3fc44d98fc pypi: Eliminate the daemon directory
This make it easier to work with the project and to improve packaging.
For example, README.md is now at the expected location, so it is
packaged automatically for pypi.

Change-Id: Ib1a456054de34146bf2a4f39a69ccf1756b99e41
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2021-10-21 19:39:45 +03:00
Amit Aviram
92d234bc5c packaging: move image-daemon to a dedicated folder.
As a decision was made to move image-proxy and image-daemon under the
same repository, this patch moves image-daemon related files to its
specific directory.

Once this change is done, the next phase will be to start migrating code
from the image-proxy project into this one. The proxy code will also
reside in its own directory.

After that, common code and setup scripts will be made for easy setup.

Change-Id: I49a58d933272ee17e27666ba4a7ff55300dcadfe
Signed-off-by: Amit Aviram <aaviram@redhat.com>
2016-02-23 14:20:16 +02:00
Nir Soffer
256aee2bcf Rename to ovirt-image-daemon
We want to merge this project with ovirt-image-proxy, and have
consistent names. This also more consistent with other ovirt projects
(e.g. ovirt-engine, ovirt-hosted-engine-ha).

Change-Id: I7efd46413cc4dd4cc70e72eabc3c25e8ea986929
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2016-01-16 22:44:35 +02:00
Nir Soffer
6fe00a0b9d errors: Introduce the errors module
Add new errors module for keeping imaged errors. The first error is
PartialContent, raised when available size is shorter then the requested
size.  Add tests verifying that the new error is raised when it should.

The new tests reveal that the reading loop was not checking the partial
content correctly when a file is not aligned to 512 bytes. The last read
returned partial content leaving the file offset at the end of the file.
The next read fails because the file offset is not aligned. Now we check
this state and fail wit the new PartialContent exception.

Change-Id: I9066ec43c71e6ce873abd16cac68c5d283694b3d
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
2016-01-06 20:12:26 +02:00