Skip to content

Switch blktap licensing to GPLv2#442

Open
AnthoineB wants to merge 6 commits into
xapi-project:masterfrom
xcp-ng:GPLv2
Open

Switch blktap licensing to GPLv2#442
AnthoineB wants to merge 6 commits into
xapi-project:masterfrom
xcp-ng:GPLv2

Conversation

@AnthoineB

Copy link
Copy Markdown
Contributor

The Vates storage team would like to add support of VDI above 2TB.
To allow this we'd like to support Qcow2 format in the blktap component.
To help the development of this feature, we would like to import Qcow2 code from the Qemu implementation.

Since Qemu's code is licensed under GPLv2, we would like to also switch the global blktap license to GPLv2 to avoid license incompatibility.

Therefore, I am contacting all external contributors to get their approval on their commits to make this switch.
We will wait at least 2 weeks to get their feedback by email before considering merging this PR.
In the meantime, this PR is open to review.

There are 2 parts in the PR:

  1. Rewrite of BSD code coming from other components that we can convert (atomicio.c, list.h, aio_genevents.c, autogen.sh)
  2. Conversion of our code base in GPLv2 by partially revert 3480fc8
guzu and others added 5 commits June 10, 2026 09:40
atomicio() is still available in VHD.

Signed-off-by: Emmanuel Varagnat <emmanuel.varagnat@vates.tech>
The journal used atomicio() from atomicio.c/.h, which carry a separate
OpenBSD license. Replace it with vhd_atomic_io() / vhd_atomic_pio() in
the new io-util.c, under the same license as the rest of the tree.

vhd_atomic_pio() is the positioned helper moved out of libvhd.c;
vhd_atomic_io() is the sequential read/write variant.

Signed-off-by: Emmanuel Varagnat <emmanuel.varagnat@vates.tech>
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
@AnthoineB AnthoineB self-assigned this Jun 25, 2026
All files in this package are now licensed under a GPLv2 license.
Please see the LICENSE file for details.

Signed-off-by: Anthoine Bourgeois <anthoine.bourgeois@vates.tech>
@nraynaud

Copy link
Copy Markdown
Contributor

I approve.

@TSnake41

TSnake41 commented Jul 2, 2026

Copy link
Copy Markdown

Could we use SPDX license identifiers instead (https://spdx.dev/learn/handling-license-info/) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants