erofs-utils: lib: switch to GPL-2.0+ OR MIT dual license
Subsystems (6)
PATCH 1/2 erofs-utils: lib: switch to GPL-2.0+ OR MIT dual license
Apache 2.0 is still too strict for some 3rd-party integration.
Let's switch to GPL-2.0+ OR MIT dual license since we're absolutely not working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
--- COPYING | 6 +- LICENSES/Apache-2.0 | 186 --------------------------------- include/erofs/atomic.h | 2 +- include/erofs/bitops.h | 2 +- include/erofs/blobchunk.h | 2 +- include/erofs/block_list.h | 2 +- include/erofs/compress_hints.h | 2 +- include/erofs/config.h | 2 +- include/erofs/decompress.h | 2 +- include/erofs/dedupe.h | 2 +- include/erofs/defs.h | 2 +- include/erofs/dir.h | 2 +- include/erofs/diskbuf.h | 2 +- include/erofs/err.h | 2 +- include/erofs/exclude.h | 2 +- include/erofs/importer.h | 2 +- include/erofs/inode.h | 2 +- include/erofs/internal.h | 2 +- include/erofs/io.h | 2 +- include/erofs/list.h | 2 +- include/erofs/lock.h | 2 +- include/erofs/print.h | 2 +- include/erofs/tar.h | 2 +- include/erofs/trace.h | 2 +- include/erofs/workqueue.h | 2 +- include/erofs/xattr.h | 2 +- lib/Makefile.am | 2 +- lib/backends/fanotify.c | 2 +- lib/backends/nbd.c | 2 +- lib/base64.c | 2 +- lib/bitops.c | 2 +- lib/blobchunk.c | 2 +- lib/block_list.c | 2 +- lib/cache.c | 2 +- lib/compress.c | 2 +- lib/compress_hints.c | 2 +- lib/compressor.c | 2 +- lib/compressor.h | 2 +- lib/compressor_deflate.c | 2 +- lib/compressor_libdeflate.c | 2 +- lib/compressor_liblzma.c | 2 +- lib/compressor_libzstd.c | 2 +- lib/compressor_lz4.c | 2 +- lib/compressor_lz4hc.c | 2 +- lib/config.c | 2 +- lib/data.c | 2 +- lib/decompress.c | 2 +- lib/dedupe.c | 2 +- lib/dedupe_ext.c | 2 +- lib/dir.c | 2 +- lib/diskbuf.c | 2 +- lib/exclude.c | 2 +- lib/fragments.c | 2 +- lib/global.c | 2 +- lib/gzran.c | 2 +- lib/importer.c | 2 +- lib/inode.c | 2 +- lib/io.c | 2 +- lib/kite_deflate.c | 2 +- lib/liberofs_cache.h | 2 +- lib/liberofs_compress.h | 2 +- lib/liberofs_dockerconfig.h | 2 +- lib/liberofs_fanotify.h | 2 +- lib/liberofs_fragments.h | 2 +- lib/liberofs_gzran.h | 2 +- lib/liberofs_metabox.h | 2 +- lib/liberofs_nbd.h | 2 +- lib/liberofs_oci.h | 2 +- lib/liberofs_private.h | 2 +- lib/liberofs_rebuild.h | 2 +- lib/liberofs_s3.h | 2 +- lib/liberofs_uuid.h | 2 +- lib/metabox.c | 2 +- lib/namei.c | 2 +- lib/rebuild.c | 2 +- lib/remotes/docker_config.c | 2 +- lib/remotes/oci.c | 2 +- lib/remotes/s3.c | 2 +- lib/rolling_hash.h | 2 +- lib/sha256.h | 2 +- lib/super.c | 2 +- lib/tar.c | 2 +- lib/uuid.c | 2 +- lib/uuid_unparse.c | 2 +- lib/vmdk.c | 2 +- lib/workqueue.c | 2 +- lib/xattr.c | 2 +- lib/zmap.c | 2 +- 88 files changed, 89 insertions(+), 275 deletions(-) delete mode 100644 LICENSES/Apache-2.0
COPYING +3 -3
@@ -1,7 +1,7 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories - use GPL-2.0+ OR Apache-2.0 dual license; + use GPL-2.0+ OR MIT dual license; - all other files use GPL-2.0+ license, unless explicitly stated otherwise.
@@ -9,7 +9,7 @@ erofs-utils uses two different license patterns: Relevant licenses can be found in the LICENSES directory. This model is selected to emphasize that -files in `lib` and `include` directory are designed to be included into -3rd-party applications, while all other files, are intended to be used +files in `lib` and `include` directories are designed to be included in +3rd-party applications, while all other files are intended to be used "as is", as part of their intended scenarios, with no intention to support 3rd-party integration use cases.
LICENSES/Apache-2.0 deleted +0 -186
186 lines not on this page · raw message
include/erofs/atomic.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2024 Alibaba Cloud */
include/erofs/bitops.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_BITOPS_H#define __EROFS_BITOPS_H
include/erofs/blobchunk.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * erofs-utils/lib/blobchunk.h *
include/erofs/block_list.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]>
include/erofs/compress_hints.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]>
include/erofs/config.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/decompress.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]>
include/erofs/dedupe.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */
include/erofs/defs.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/dir.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DIR_H#define __EROFS_DIR_H
include/erofs/diskbuf.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DISKBUF_H#define __EROFS_DISKBUF_H
include/erofs/err.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/exclude.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Created by Li Guifu <[email protected]> */
include/erofs/importer.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */
include/erofs/inode.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/internal.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/io.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/list.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/lock.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LOCK_H#define __EROFS_LOCK_H
include/erofs/print.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
include/erofs/tar.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_TAR_H#define __EROFS_TAR_H
include/erofs/trace.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2020 Gao Xiang <[email protected]> */
include/erofs/workqueue.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_WORKQUEUE_H#define __EROFS_WORKQUEUE_H
include/erofs/xattr.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_XATTR_H#define __EROFS_XATTR_H
lib/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +# SPDX-License-Identifier: GPL-2.0+ OR MIT noinst_LTLIBRARIES = liberofs.la noinst_HEADERS = $(top_srcdir)/include/erofs_fs.h \
lib/backends/fanotify.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <errno.h> #include <fcntl.h>
lib/backends/nbd.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */
lib/base64.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "liberofs_base64.h" #include <string.h>
lib/bitops.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/bitops.c *
lib/blobchunk.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/blobchunk.c *
lib/block_list.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]>
lib/cache.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/compress.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/compress_hints.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]>
lib/compressor.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/compressor.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/compressor_deflate.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023, Alibaba Cloud * Copyright (C) 2023, Gao Xiang <[email protected]>
lib/compressor_libdeflate.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h"
lib/compressor_liblzma.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2021 Gao Xiang <[email protected]> */
lib/compressor_libzstd.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h"
lib/compressor_lz4.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/compressor_lz4hc.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/config.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/data.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2020 Gao Xiang <[email protected]> * Compression support by Huang Jianan <[email protected]>
lib/decompress.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]>
lib/dedupe.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2022 Alibaba Cloud */
lib/dedupe_ext.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/dedupe.h" #include "liberofs_xxhash.h" #include <stdlib.h>
lib/dir.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include <sys/stat.h> #include "erofs/print.h"
lib/diskbuf.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/diskbuf.h" #include "erofs/internal.h" #include "erofs/print.h"
lib/exclude.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */
lib/fragments.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2022, Coolpad Group Limited. * Created by Yue Hu <[email protected]>
lib/global.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */
lib/gzran.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */
lib/importer.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */
lib/inode.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
lib/io.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/
lib/kite_deflate.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/kite_deflate.c *
lib/liberofs_cache.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com
lib/liberofs_compress.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/
lib/liberofs_dockerconfig.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/
lib/liberofs_fanotify.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_FANOTIFY_H#define __EROFS_LIB_LIBEROFS_FANOTIFY_H
lib/liberofs_fragments.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022, Coolpad Group Limited. * Copyright (C) 2025 Alibaba Cloud
lib/liberofs_gzran.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */
lib/liberofs_metabox.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_METABOX_H#define __EROFS_LIB_LIBEROFS_METABOX_H
lib/liberofs_nbd.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */
lib/liberofs_oci.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/
lib/liberofs_private.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifdef HAVE_LIBSELINUX #include <selinux/selinux.h>
lib/liberofs_rebuild.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_REBUILD_H#define __EROFS_LIB_LIBEROFS_REBUILD_H
lib/liberofs_s3.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/
lib/liberofs_uuid.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_UUID_H#define __EROFS_LIB_UUID_H
lib/metabox.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include "erofs/inode.h" #include "erofs/importer.h"
lib/namei.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */
lib/rebuild.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <unistd.h> #include <stdlib.h>
lib/remotes/docker_config.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/
lib/remotes/oci.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/
lib/remotes/s3.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/
lib/rolling_hash.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */
lib/sha256.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_SHA256_H#define __EROFS_LIB_SHA256_H
lib/super.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */
lib/tar.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <unistd.h> #include <stdlib.h> #include <string.h>
lib/uuid.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */
lib/uuid_unparse.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */
lib/vmdk.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" static int erofs_vmdk_desc_add_extent(FILE *f, u64 sectors,
lib/workqueue.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <pthread.h> #include <stdlib.h> #include "erofs/print.h"
lib/xattr.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2019 Li Guifu <[email protected]> * Gao Xiang <[email protected]>
lib/zmap.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * (a large amount of code was adapted from Linux kernel. ) *
Signature · 1 line
2.43.5
PATCH 2/2 erofs-utils: switch other source files into MIT license
Let's switch other source files to MIT license since we're absolutely NOT working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
--- COPYING | 14 +++++++------- Makefile.am | 2 +- autogen.sh | 2 +- contrib/Makefile.am | 2 +- contrib/stress.c | 2 +- dump/Makefile.am | 2 +- dump/main.c | 2 +- fsck/Makefile.am | 2 +- fsck/main.c | 2 +- fuse/Makefile.am | 2 +- fuse/macosx.h | 2 +- fuse/main.c | 2 +- man/Makefile.am | 2 +- mkfs/Makefile.am | 2 +- mkfs/main.c | 2 +- mount/Makefile.am | 2 +- mount/main.c | 2 +- scripts/get-version-number | 2 +- 18 files changed, 24 insertions(+), 24 deletions(-)
COPYING +7 -7
@@ -3,13 +3,13 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories use GPL-2.0+ OR MIT dual license; - - all other files use GPL-2.0+ license, unless - explicitly stated otherwise. + - all other files use MIT license, unless explicitly stated + otherwise. Relevant licenses can be found in the LICENSES directory. -This model is selected to emphasize that -files in `lib` and `include` directories are designed to be included in -3rd-party applications, while all other files are intended to be used -"as is", as part of their intended scenarios, with no intention to -support 3rd-party integration use cases. +This model is selected to emphasize that erofs-utils can be integrated +into various ecosystems as much as possible. + +However, liberofs should be GPL-2.0+ OR MIT dual license since some +parts can be shared with the Linux kernel.
Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT ACLOCAL_AMFLAGS = -I m4
autogen.sh +1 -1
@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT aclocal && \ autoheader && \
contrib/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreign
contrib/stress.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * stress test for EROFS filesystem *
dump/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreign
dump/main.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2021-2022 HUAWEI, Inc. * http://www.huawei.com/
fsck/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreign
fsck/main.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright 2021 Google LLC * Author: Daeho Jeong <[email protected]>
fuse/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign noinst_HEADERS = $(top_srcdir)/fuse/macosx.h
fuse/macosx.h +1 -1
@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: MIT */ #ifdef __APPLE__#undef LIST_HEAD#endif
fuse/main.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Created by Li Guifu <[email protected]> * Lowlevel added by Li Yiyan <[email protected]>
man/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT dist_man_MANS = mkfs.erofs.1 dump.erofs.1 fsck.erofs.1
mkfs/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign bin_PROGRAMS = mkfs.erofs
mkfs/main.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/
mount/Makefile.am +1 -1
@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreign
mount/main.c +1 -1
@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT #define _GNU_SOURCE#include <dirent.h> #include <fcntl.h>
scripts/get-version-number +1 -1
@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0 +# SPDX-License-Identifier: MIT scm_version() {
Signature · 1 line
2.43.5
Re: [PATCH 2/2] erofs-utils: switch other source files into MIT license
Quoted 228 lines
2026年4月2日 14:09,Gao Xiang <[email protected]> 写道:
Let's switch other source files to MIT license since we're absolutely NOT working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>---
COPYING | 14 +++++++------- Makefile.am | 2 +- autogen.sh | 2 +- contrib/Makefile.am | 2 +- contrib/stress.c | 2 +- dump/Makefile.am | 2 +- dump/main.c | 2 +- fsck/Makefile.am | 2 +- fsck/main.c | 2 +- fuse/Makefile.am | 2 +- fuse/macosx.h | 2 +- fuse/main.c | 2 +- man/Makefile.am | 2 +- mkfs/Makefile.am | 2 +- mkfs/main.c | 2 +- mount/Makefile.am | 2 +- mount/main.c | 2 +- scripts/get-version-number | 2 +- 18 files changed, 24 insertions(+), 24 deletions(-)COPYING +2
-2@@ -3,13 +3,13 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories use GPL-2.0+ OR MIT dual license; - - all other files use GPL-2.0+ license, unless - explicitly stated otherwise. + - all other files use MIT license, unless explicitly stated + otherwise.Relevant licenses can be found in the LICENSES directory.
COPYING +5
-5-This model is selected to emphasize that -files in `lib` and `include` directories are designed to be included in -3rd-party applications, while all other files are intended to be used -"as is", as part of their intended scenarios, with no intention to -support 3rd-party integration use cases. +This model is selected to emphasize that erofs-utils can be integrated +into various ecosystems as much as possible. + +However, liberofs should be GPL-2.0+ OR MIT dual license since some +parts can be shared with the Linux kernel.Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT
ACLOCAL_AMFLAGS= -I m4autogen.sh +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT aclocal && \ autoheader && \contrib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am
AUTOMAKE_OPTIONS= foreigncontrib/stress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * stress test for EROFS filesystem * dump/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am
AUTOMAKE_OPTIONS= foreigndump/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2021-2022 HUAWEI, Inc. * http://www.huawei.com/ fsck/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am
AUTOMAKE_OPTIONS= foreignfsck/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright 2021 Google LLC * Author: Daeho Jeong <[email protected]> fuse/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT
AUTOMAKE_OPTIONS= foreignnoinst_HEADERS= $(top_srcdir)/fuse/macosx.hfuse/macosx.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: MIT */ #ifdef __APPLE__#undef LIST_HEAD#endif fuse/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Created by Li Guifu <[email protected]> * Lowlevel added by Li Yiyan <[email protected]> man/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT
dist_man_MANS= mkfs.erofs.1 dump.erofs.1 fsck.erofs.1mkfs/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT
AUTOMAKE_OPTIONS= foreignbin_PROGRAMS= mkfs.erofsmkfs/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ mount/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am
AUTOMAKE_OPTIONS= foreignmount/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT #define _GNU_SOURCE#include <dirent.h> #include <fcntl.h> scripts/get-version-number +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0 +# SPDX-License-Identifier: MIT scm_version() {Signature · 1 line
2.43.5
Re: [PATCH 2/2] erofs-utils: switch other source files into MIT license
In reply to Gao XiangQuoted 223 lines · Gao Xiang
Let's switch other source files to MIT license since we're absolutely NOT working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>--- COPYING | 14 +++++++------- Makefile.am | 2 +- autogen.sh | 2 +- contrib/Makefile.am | 2 +- contrib/stress.c | 2 +- dump/Makefile.am | 2 +- dump/main.c | 2 +- fsck/Makefile.am | 2 +- fsck/main.c | 2 +- fuse/Makefile.am | 2 +- fuse/macosx.h | 2 +- fuse/main.c | 2 +- man/Makefile.am | 2 +- mkfs/Makefile.am | 2 +- mkfs/main.c | 2 +- mount/Makefile.am | 2 +- mount/main.c | 2 +- scripts/get-version-number | 2 +- 18 files changed, 24 insertions(+), 24 deletions(-)COPYING +7
-7@@ -3,13 +3,13 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories use GPL-2.0+ OR MIT dual license; - - all other files use GPL-2.0+ license, unless - explicitly stated otherwise. + - all other files use MIT license, unless explicitly stated + otherwise. Relevant licenses can be found in the LICENSES directory. -This model is selected to emphasize that -files in `lib` and `include` directories are designed to be included in -3rd-party applications, while all other files are intended to be used -"as is", as part of their intended scenarios, with no intention to -support 3rd-party integration use cases. +This model is selected to emphasize that erofs-utils can be integrated +into various ecosystems as much as possible. + +However, liberofs should be GPL-2.0+ OR MIT dual license since some +parts can be shared with the Linux kernel.Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT ACLOCAL_AMFLAGS = -I m4autogen.sh +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT aclocal && \ autoheader && \contrib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreigncontrib/stress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * stress test for EROFS filesystem * dump/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreigndump/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2021-2022 HUAWEI, Inc. * http://www.huawei.com/ fsck/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreignfsck/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright 2021 Google LLC * Author: Daeho Jeong <[email protected]> fuse/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign noinst_HEADERS = $(top_srcdir)/fuse/macosx.hfuse/macosx.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: MIT */ #ifdef __APPLE__#undef LIST_HEAD#endif fuse/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Created by Li Guifu <[email protected]> * Lowlevel added by Li Yiyan <[email protected]> man/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT dist_man_MANS = mkfs.erofs.1 dump.erofs.1 fsck.erofs.1mkfs/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign bin_PROGRAMS = mkfs.erofsmkfs/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ mount/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreignmount/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT #define _GNU_SOURCE#include <dirent.h> #include <fcntl.h> scripts/get-version-number +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0 +# SPDX-License-Identifier: MIT scm_version() {
Re: [PATCH 2/2] erofs-utils: switch other source files into MIT license
In reply to Gao XiangQuoted 5 lines · Gao Xiang
Let's switch other source files to MIT license since we're absolutely NOT working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>
Thanks,
Re: [PATCH 2/2] erofs-utils: switch other source files into MIT license
In reply to Gao XiangQuoted 5 lines · Gao Xiang
Let's switch other source files to MIT license since we're absolutely NOT working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>
Thanks,
Hongbo
Quoted 218 lines
--- COPYING | 14 +++++++------- Makefile.am | 2 +- autogen.sh | 2 +- contrib/Makefile.am | 2 +- contrib/stress.c | 2 +- dump/Makefile.am | 2 +- dump/main.c | 2 +- fsck/Makefile.am | 2 +- fsck/main.c | 2 +- fuse/Makefile.am | 2 +- fuse/macosx.h | 2 +- fuse/main.c | 2 +- man/Makefile.am | 2 +- mkfs/Makefile.am | 2 +- mkfs/main.c | 2 +- mount/Makefile.am | 2 +- mount/main.c | 2 +- scripts/get-version-number | 2 +- 18 files changed, 24 insertions(+), 24 deletions(-)COPYING +7
-7@@ -3,13 +3,13 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories use GPL-2.0+ OR MIT dual license; - - all other files use GPL-2.0+ license, unless - explicitly stated otherwise. + - all other files use MIT license, unless explicitly stated + otherwise. Relevant licenses can be found in the LICENSES directory. -This model is selected to emphasize that -files in `lib` and `include` directories are designed to be included in -3rd-party applications, while all other files are intended to be used -"as is", as part of their intended scenarios, with no intention to -support 3rd-party integration use cases. +This model is selected to emphasize that erofs-utils can be integrated +into various ecosystems as much as possible. + +However, liberofs should be GPL-2.0+ OR MIT dual license since some +parts can be shared with the Linux kernel.Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT ACLOCAL_AMFLAGS = -I m4autogen.sh +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT aclocal && \ autoheader && \contrib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreigncontrib/stress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * stress test for EROFS filesystem * dump/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreigndump/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2021-2022 HUAWEI, Inc. * http://www.huawei.com/ fsck/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreignfsck/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright 2021 Google LLC * Author: Daeho Jeong <[email protected]> fuse/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign noinst_HEADERS = $(top_srcdir)/fuse/macosx.hfuse/macosx.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ +/* SPDX-License-Identifier: MIT */ #ifdef __APPLE__#undef LIST_HEAD#endif fuse/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Created by Li Guifu <[email protected]> * Lowlevel added by Li Yiyan <[email protected]> man/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT dist_man_MANS = mkfs.erofs.1 dump.erofs.1 fsck.erofs.1mkfs/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT AUTOMAKE_OPTIONS = foreign bin_PROGRAMS = mkfs.erofsmkfs/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ mount/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ +# SPDX-License-Identifier: MIT # Makefile.am AUTOMAKE_OPTIONS = foreignmount/main.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: MIT #define _GNU_SOURCE#include <dirent.h> #include <fcntl.h> scripts/get-version-number +1
-1@@ -1,5 +1,5 @@ #!/bin/sh -# SPDX-License-Identifier: GPL-2.0 +# SPDX-License-Identifier: MIT scm_version() {
Quoted 1,179 lines
2026年4月2日 14:09,Gao Xiang <[email protected]> 写道:
Apache 2.0 is still too strict for some 3rd-party integration.
Let's switch to GPL-2.0+ OR MIT dual license since we're absolutely not working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>---
COPYING | 6 +- LICENSES/Apache-2.0 | 186 --------------------------------- include/erofs/atomic.h | 2 +- include/erofs/bitops.h | 2 +- include/erofs/blobchunk.h | 2 +- include/erofs/block_list.h | 2 +- include/erofs/compress_hints.h | 2 +- include/erofs/config.h | 2 +- include/erofs/decompress.h | 2 +- include/erofs/dedupe.h | 2 +- include/erofs/defs.h | 2 +- include/erofs/dir.h | 2 +- include/erofs/diskbuf.h | 2 +- include/erofs/err.h | 2 +- include/erofs/exclude.h | 2 +- include/erofs/importer.h | 2 +- include/erofs/inode.h | 2 +- include/erofs/internal.h | 2 +- include/erofs/io.h | 2 +- include/erofs/list.h | 2 +- include/erofs/lock.h | 2 +- include/erofs/print.h | 2 +- include/erofs/tar.h | 2 +- include/erofs/trace.h | 2 +- include/erofs/workqueue.h | 2 +- include/erofs/xattr.h | 2 +- lib/Makefile.am | 2 +- lib/backends/fanotify.c | 2 +- lib/backends/nbd.c | 2 +- lib/base64.c | 2 +- lib/bitops.c | 2 +- lib/blobchunk.c | 2 +- lib/block_list.c | 2 +- lib/cache.c | 2 +- lib/compress.c | 2 +- lib/compress_hints.c | 2 +- lib/compressor.c | 2 +- lib/compressor.h | 2 +- lib/compressor_deflate.c | 2 +- lib/compressor_libdeflate.c | 2 +- lib/compressor_liblzma.c | 2 +- lib/compressor_libzstd.c | 2 +- lib/compressor_lz4.c | 2 +- lib/compressor_lz4hc.c | 2 +- lib/config.c | 2 +- lib/data.c | 2 +- lib/decompress.c | 2 +- lib/dedupe.c | 2 +- lib/dedupe_ext.c | 2 +- lib/dir.c | 2 +- lib/diskbuf.c | 2 +- lib/exclude.c | 2 +- lib/fragments.c | 2 +- lib/global.c | 2 +- lib/gzran.c | 2 +- lib/importer.c | 2 +- lib/inode.c | 2 +- lib/io.c | 2 +- lib/kite_deflate.c | 2 +- lib/liberofs_cache.h | 2 +- lib/liberofs_compress.h | 2 +- lib/liberofs_dockerconfig.h | 2 +- lib/liberofs_fanotify.h | 2 +- lib/liberofs_fragments.h | 2 +- lib/liberofs_gzran.h | 2 +- lib/liberofs_metabox.h | 2 +- lib/liberofs_nbd.h | 2 +- lib/liberofs_oci.h | 2 +- lib/liberofs_private.h | 2 +- lib/liberofs_rebuild.h | 2 +- lib/liberofs_s3.h | 2 +- lib/liberofs_uuid.h | 2 +- lib/metabox.c | 2 +- lib/namei.c | 2 +- lib/rebuild.c | 2 +- lib/remotes/docker_config.c | 2 +- lib/remotes/oci.c | 2 +- lib/remotes/s3.c | 2 +- lib/rolling_hash.h | 2 +- lib/sha256.h | 2 +- lib/super.c | 2 +- lib/tar.c | 2 +- lib/uuid.c | 2 +- lib/uuid_unparse.c | 2 +- lib/vmdk.c | 2 +- lib/workqueue.c | 2 +- lib/xattr.c | 2 +- lib/zmap.c | 2 +- 88 files changed, 89 insertions(+), 275 deletions(-)delete mode 100644
LICENSES/Apache-2.0COPYING +0
-0@@ -1,7 +1,7 @@erofs-utils uses two different license patterns:
- most liberofs files in
libandincludedirectoriesCOPYING +1
-1- use GPL-2.0+ OR Apache-2.0 dual license; + use GPL-2.0+ OR MIT dual license; - all other files use GPL-2.0+ license, unless explicitly stated otherwise.@@ -9,7 +9,7 @@ erofs-utils uses two different license patterns:Relevant licenses can be found in the LICENSES directory.
This model is selected to emphasize that
COPYING +2
-2-files in `lib` and `include` directory are designed to be included into -3rd-party applications, while all other files, are intended to be used +files in `lib` and `include` directories are designed to be included in +3rd-party applications, while all other files are intended to be used"as is", as part of their intended scenarios, with no intention to support 3rd-party integration use cases.
LICENSES/Apache-2.0 deleted +0
-186@@ -1,186 +0,0 @@ -Valid-License-Identifier: Apache-2.0 -SPDX-URL: https://spdx.org/licenses/Apache-2.0.html -Usage-Guide: - The Apache-2.0 may only be used for dual-licensed files where the other - license is GPL2 compatible. If you end up using this it MUST be used - together with a GPL2 compatible license using "OR". - To use the Apache License version 2.0 put the following SPDX tag/value - pair into a comment according to the placement guidelines in the - licensing rules documentation: - SPDX-License-Identifier: Apache-2.0 -License-Text: - -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty -percent (50%) or more of the outstanding shares, or (iii) beneficial -ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that -is included in or attached to the work (an example is provided in the -Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. For the purposes of this License, -Derivative Works shall not include works that remain separable from, or -merely link (or bind by name) to the interfaces of, the Work and Derivative -Works thereof. - -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the -purposes of this definition, "submitted" means any form of electronic, -verbal, or written communication sent to the Licensor or its -representatives, including but not limited to communication on electronic -mailing lists, source code control systems, and issue tracking systems that -are managed by, or on behalf of, the Licensor for the purpose of discussing -and improving the Work, but excluding communication that is conspicuously -marked or otherwise designated in writing by the copyright owner as "Not a -Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on -behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable copyright license to - reproduce, prepare Derivative Works of, publicly display, publicly - perform, sublicense, and distribute the Work and such Derivative Works - in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable (except as stated in - this section) patent license to make, have made, use, offer to sell, - sell, import, and otherwise transfer the Work, where such license - applies only to those patent claims licensable by such Contributor that - are necessarily infringed by their Contribution(s) alone or by - combination of their Contribution(s) with the Work to which such - Contribution(s) was submitted. If You institute patent litigation - against any entity (including a cross-claim or counterclaim in a - lawsuit) alleging that the Work or a Contribution incorporated within - the Work constitutes direct or contributory patent infringement, then - any patent licenses granted to You under this License for that Work - shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or - Derivative Works thereof in any medium, with or without modifications, - and in Source or Object form, provided that You meet the following - conditions: - - a. You must give any other recipients of the Work or Derivative Works a - copy of this License; and - - b. You must cause any modified files to carry prominent notices stating - that You changed the files; and - - c. You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices - from the Source form of the Work, excluding those notices that do not - pertain to any part of the Derivative Works; and - - d. If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained within - such NOTICE file, excluding those notices that do not pertain to any - part of the Derivative Works, in at least one of the following - places: within a NOTICE text file distributed as part of the - Derivative Works; within the Source form or documentation, if - provided along with the Derivative Works; or, within a display - generated by the Derivative Works, if and wherever such third-party - notices normally appear. The contents of the NOTICE file are for - informational purposes only and do not modify the License. You may - add Your own attribution notices within Derivative Works that You - distribute, alongside or as an addendum to the NOTICE text from the - Work, provided that such additional attribution notices cannot be - construed as modifying the License. - - You may add Your own copyright statement to Your modifications and may - provide additional or different license terms and conditions for use, - reproduction, or distribution of Your modifications, or for any such - Derivative Works as a whole, provided Your use, reproduction, and - distribution of the Work otherwise complies with the conditions stated - in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any - Contribution intentionally submitted for inclusion in the Work by You to - the Licensor shall be under the terms and conditions of this License, - without any additional terms or conditions. Notwithstanding the above, - nothing herein shall supersede or modify the terms of any separate - license agreement you may have executed with Licensor regarding such - Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to - in writing, Licensor provides the Work (and each Contributor provides - its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS - OF ANY KIND, either express or implied, including, without limitation, - any warranties or conditions of TITLE, NON-INFRINGEMENT, - MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely - responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your - exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether - in tort (including negligence), contract, or otherwise, unless required - by applicable law (such as deliberate and grossly negligent acts) or - agreed to in writing, shall any Contributor be liable to You for - damages, including any direct, indirect, special, incidental, or - consequential damages of any character arising as a result of this - License or out of the use or inability to use the Work (including but - not limited to damages for loss of goodwill, work stoppage, computer - failure or malfunction, or any and all other commercial damages or - losses), even if such Contributor has been advised of the possibility of - such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the - Work or Derivative Works thereof, You may choose to offer, and charge a - fee for, acceptance of support, warranty, indemnity, or other liability - obligations and/or rights consistent with this License. However, in - accepting such obligations, You may act only on Your own behalf and on - Your sole responsibility, not on behalf of any other Contributor, and - only if You agree to indemnify, defend, and hold each Contributor - harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability. - -END OF TERMS AND CONDITIONSinclude/erofs/atomic.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2024 Alibaba Cloud */ include/erofs/bitops.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_BITOPS_H#define __EROFS_BITOPS_Hinclude/erofs/blobchunk.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * erofs-utils/lib/blobchunk.h * include/erofs/block_list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> include/erofs/compress_hints.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/config.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/decompress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/dedupe.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ include/erofs/defs.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/dir.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DIR_H#define __EROFS_DIR_Hinclude/erofs/diskbuf.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DISKBUF_H#define __EROFS_DISKBUF_Hinclude/erofs/err.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/exclude.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Created by Li Guifu <[email protected]> */ include/erofs/importer.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ include/erofs/inode.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/internal.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/io.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/lock.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LOCK_H#define __EROFS_LOCK_Hinclude/erofs/print.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/tar.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_TAR_H#define __EROFS_TAR_Hinclude/erofs/trace.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2020 Gao Xiang <[email protected]> */ include/erofs/workqueue.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_WORKQUEUE_H#define __EROFS_WORKQUEUE_Hinclude/erofs/xattr.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_XATTR_H#define __EROFS_XATTR_Hlib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +# SPDX-License-Identifier: GPL-2.0+ OR MIT
noinst_LTLIBRARIES= liberofs.lanoinst_HEADERS= $(top_srcdir)/include/erofs_fs.h \lib/backends/fanotify.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <errno.h> #include <fcntl.h> lib/backends/nbd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/base64.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "liberofs_base64.h" #include <string.h> lib/bitops.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/bitops.c * lib/blobchunk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/blobchunk.c * lib/block_list.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/cache.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress_hints.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/compressor.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023, Alibaba Cloud * Copyright (C) 2023, Gao Xiang <[email protected]> lib/compressor_libdeflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_liblzma.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2021 Gao Xiang <[email protected]> */ lib/compressor_libzstd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_lz4.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_lz4hc.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/data.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2020 Gao Xiang <[email protected]> * Compression support by Huang Jianan <[email protected]> lib/decompress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/dedupe.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2022 Alibaba Cloud */ lib/dedupe_ext.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/dedupe.h" #include "liberofs_xxhash.h" #include <stdlib.h> lib/dir.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include <sys/stat.h> #include "erofs/print.h" lib/diskbuf.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/diskbuf.h" #include "erofs/internal.h" #include "erofs/print.h" lib/exclude.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/fragments.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2022, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/global.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/gzran.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/importer.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/inode.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/io.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ lib/kite_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/kite_deflate.c * lib/liberofs_cache.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com lib/liberofs_compress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_dockerconfig.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_fanotify.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_FANOTIFY_H#define __EROFS_LIB_LIBEROFS_FANOTIFY_Hlib/liberofs_fragments.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022, Coolpad Group Limited. * Copyright (C) 2025 Alibaba Cloud lib/liberofs_gzran.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_metabox.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_METABOX_H#define __EROFS_LIB_LIBEROFS_METABOX_Hlib/liberofs_nbd.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_oci.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_private.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifdef HAVE_LIBSELINUX #include <selinux/selinux.h> lib/liberofs_rebuild.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_REBUILD_H#define __EROFS_LIB_LIBEROFS_REBUILD_Hlib/liberofs_s3.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_uuid.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_UUID_H#define __EROFS_LIB_UUID_Hlib/metabox.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include "erofs/inode.h" #include "erofs/importer.h" lib/namei.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/rebuild.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <unistd.h> #include <stdlib.h> lib/remotes/docker_config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/remotes/oci.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/remotes/s3.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/rolling_hash.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ lib/sha256.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_SHA256_H#define __EROFS_LIB_SHA256_Hlib/super.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/tar.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <unistd.h> #include <stdlib.h> #include <string.h> lib/uuid.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/uuid_unparse.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/vmdk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" static int erofs_vmdk_desc_add_extent(FILE *f, u64 sectors,lib/workqueue.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <pthread.h> #include <stdlib.h> #include "erofs/print.h" lib/xattr.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2019 Li Guifu <[email protected]> * Gao Xiang <[email protected]> lib/zmap.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * (a large amount of code was adapted from Linux kernel. ) * Signature · 1 line
2.43.5
Quoted 1,174 lines · Gao Xiang
Apache 2.0 is still too strict for some 3rd-party integration.
Let's switch to GPL-2.0+ OR MIT dual license since we're absolutely not working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>--- COPYING | 6 +- LICENSES/Apache-2.0 | 186 --------------------------------- include/erofs/atomic.h | 2 +- include/erofs/bitops.h | 2 +- include/erofs/blobchunk.h | 2 +- include/erofs/block_list.h | 2 +- include/erofs/compress_hints.h | 2 +- include/erofs/config.h | 2 +- include/erofs/decompress.h | 2 +- include/erofs/dedupe.h | 2 +- include/erofs/defs.h | 2 +- include/erofs/dir.h | 2 +- include/erofs/diskbuf.h | 2 +- include/erofs/err.h | 2 +- include/erofs/exclude.h | 2 +- include/erofs/importer.h | 2 +- include/erofs/inode.h | 2 +- include/erofs/internal.h | 2 +- include/erofs/io.h | 2 +- include/erofs/list.h | 2 +- include/erofs/lock.h | 2 +- include/erofs/print.h | 2 +- include/erofs/tar.h | 2 +- include/erofs/trace.h | 2 +- include/erofs/workqueue.h | 2 +- include/erofs/xattr.h | 2 +- lib/Makefile.am | 2 +- lib/backends/fanotify.c | 2 +- lib/backends/nbd.c | 2 +- lib/base64.c | 2 +- lib/bitops.c | 2 +- lib/blobchunk.c | 2 +- lib/block_list.c | 2 +- lib/cache.c | 2 +- lib/compress.c | 2 +- lib/compress_hints.c | 2 +- lib/compressor.c | 2 +- lib/compressor.h | 2 +- lib/compressor_deflate.c | 2 +- lib/compressor_libdeflate.c | 2 +- lib/compressor_liblzma.c | 2 +- lib/compressor_libzstd.c | 2 +- lib/compressor_lz4.c | 2 +- lib/compressor_lz4hc.c | 2 +- lib/config.c | 2 +- lib/data.c | 2 +- lib/decompress.c | 2 +- lib/dedupe.c | 2 +- lib/dedupe_ext.c | 2 +- lib/dir.c | 2 +- lib/diskbuf.c | 2 +- lib/exclude.c | 2 +- lib/fragments.c | 2 +- lib/global.c | 2 +- lib/gzran.c | 2 +- lib/importer.c | 2 +- lib/inode.c | 2 +- lib/io.c | 2 +- lib/kite_deflate.c | 2 +- lib/liberofs_cache.h | 2 +- lib/liberofs_compress.h | 2 +- lib/liberofs_dockerconfig.h | 2 +- lib/liberofs_fanotify.h | 2 +- lib/liberofs_fragments.h | 2 +- lib/liberofs_gzran.h | 2 +- lib/liberofs_metabox.h | 2 +- lib/liberofs_nbd.h | 2 +- lib/liberofs_oci.h | 2 +- lib/liberofs_private.h | 2 +- lib/liberofs_rebuild.h | 2 +- lib/liberofs_s3.h | 2 +- lib/liberofs_uuid.h | 2 +- lib/metabox.c | 2 +- lib/namei.c | 2 +- lib/rebuild.c | 2 +- lib/remotes/docker_config.c | 2 +- lib/remotes/oci.c | 2 +- lib/remotes/s3.c | 2 +- lib/rolling_hash.h | 2 +- lib/sha256.h | 2 +- lib/super.c | 2 +- lib/tar.c | 2 +- lib/uuid.c | 2 +- lib/uuid_unparse.c | 2 +- lib/vmdk.c | 2 +- lib/workqueue.c | 2 +- lib/xattr.c | 2 +- lib/zmap.c | 2 +- 88 files changed, 89 insertions(+), 275 deletions(-)delete mode 100644
LICENSES/Apache-2.0COPYING +3
-3@@ -1,7 +1,7 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories - use GPL-2.0+ OR Apache-2.0 dual license; + use GPL-2.0+ OR MIT dual license; - all other files use GPL-2.0+ license, unless explicitly stated otherwise.@@ -9,7 +9,7 @@ erofs-utils uses two different license patterns: Relevant licenses can be found in the LICENSES directory. This model is selected to emphasize that -files in `lib` and `include` directory are designed to be included into -3rd-party applications, while all other files, are intended to be used +files in `lib` and `include` directories are designed to be included in +3rd-party applications, while all other files are intended to be used "as is", as part of their intended scenarios, with no intention to support 3rd-party integration use cases.LICENSES/Apache-2.0 deleted +0
-186@@ -1,186 +0,0 @@ -Valid-License-Identifier: Apache-2.0 -SPDX-URL: https://spdx.org/licenses/Apache-2.0.html -Usage-Guide: - The Apache-2.0 may only be used for dual-licensed files where the other - license is GPL2 compatible. If you end up using this it MUST be used - together with a GPL2 compatible license using "OR". - To use the Apache License version 2.0 put the following SPDX tag/value - pair into a comment according to the placement guidelines in the - licensing rules documentation: - SPDX-License-Identifier: Apache-2.0 -License-Text: - -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty -percent (50%) or more of the outstanding shares, or (iii) beneficial -ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that -is included in or attached to the work (an example is provided in the -Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. For the purposes of this License, -Derivative Works shall not include works that remain separable from, or -merely link (or bind by name) to the interfaces of, the Work and Derivative -Works thereof. - -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the -purposes of this definition, "submitted" means any form of electronic, -verbal, or written communication sent to the Licensor or its -representatives, including but not limited to communication on electronic -mailing lists, source code control systems, and issue tracking systems that -are managed by, or on behalf of, the Licensor for the purpose of discussing -and improving the Work, but excluding communication that is conspicuously -marked or otherwise designated in writing by the copyright owner as "Not a -Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on -behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable copyright license to - reproduce, prepare Derivative Works of, publicly display, publicly - perform, sublicense, and distribute the Work and such Derivative Works - in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable (except as stated in - this section) patent license to make, have made, use, offer to sell, - sell, import, and otherwise transfer the Work, where such license - applies only to those patent claims licensable by such Contributor that - are necessarily infringed by their Contribution(s) alone or by - combination of their Contribution(s) with the Work to which such - Contribution(s) was submitted. If You institute patent litigation - against any entity (including a cross-claim or counterclaim in a - lawsuit) alleging that the Work or a Contribution incorporated within - the Work constitutes direct or contributory patent infringement, then - any patent licenses granted to You under this License for that Work - shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or - Derivative Works thereof in any medium, with or without modifications, - and in Source or Object form, provided that You meet the following - conditions: - - a. You must give any other recipients of the Work or Derivative Works a - copy of this License; and - - b. You must cause any modified files to carry prominent notices stating - that You changed the files; and - - c. You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices - from the Source form of the Work, excluding those notices that do not - pertain to any part of the Derivative Works; and - - d. If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained within - such NOTICE file, excluding those notices that do not pertain to any - part of the Derivative Works, in at least one of the following - places: within a NOTICE text file distributed as part of the - Derivative Works; within the Source form or documentation, if - provided along with the Derivative Works; or, within a display - generated by the Derivative Works, if and wherever such third-party - notices normally appear. The contents of the NOTICE file are for - informational purposes only and do not modify the License. You may - add Your own attribution notices within Derivative Works that You - distribute, alongside or as an addendum to the NOTICE text from the - Work, provided that such additional attribution notices cannot be - construed as modifying the License. - - You may add Your own copyright statement to Your modifications and may - provide additional or different license terms and conditions for use, - reproduction, or distribution of Your modifications, or for any such - Derivative Works as a whole, provided Your use, reproduction, and - distribution of the Work otherwise complies with the conditions stated - in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any - Contribution intentionally submitted for inclusion in the Work by You to - the Licensor shall be under the terms and conditions of this License, - without any additional terms or conditions. Notwithstanding the above, - nothing herein shall supersede or modify the terms of any separate - license agreement you may have executed with Licensor regarding such - Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to - in writing, Licensor provides the Work (and each Contributor provides - its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS - OF ANY KIND, either express or implied, including, without limitation, - any warranties or conditions of TITLE, NON-INFRINGEMENT, - MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely - responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your - exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether - in tort (including negligence), contract, or otherwise, unless required - by applicable law (such as deliberate and grossly negligent acts) or - agreed to in writing, shall any Contributor be liable to You for - damages, including any direct, indirect, special, incidental, or - consequential damages of any character arising as a result of this - License or out of the use or inability to use the Work (including but - not limited to damages for loss of goodwill, work stoppage, computer - failure or malfunction, or any and all other commercial damages or - losses), even if such Contributor has been advised of the possibility of - such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the - Work or Derivative Works thereof, You may choose to offer, and charge a - fee for, acceptance of support, warranty, indemnity, or other liability - obligations and/or rights consistent with this License. However, in - accepting such obligations, You may act only on Your own behalf and on - Your sole responsibility, not on behalf of any other Contributor, and - only if You agree to indemnify, defend, and hold each Contributor - harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability. - -END OF TERMS AND CONDITIONSinclude/erofs/atomic.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2024 Alibaba Cloud */ include/erofs/bitops.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_BITOPS_H#define __EROFS_BITOPS_Hinclude/erofs/blobchunk.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * erofs-utils/lib/blobchunk.h * include/erofs/block_list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> include/erofs/compress_hints.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/config.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/decompress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/dedupe.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ include/erofs/defs.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/dir.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DIR_H#define __EROFS_DIR_Hinclude/erofs/diskbuf.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DISKBUF_H#define __EROFS_DISKBUF_Hinclude/erofs/err.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/exclude.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Created by Li Guifu <[email protected]> */ include/erofs/importer.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ include/erofs/inode.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/internal.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/io.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/lock.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LOCK_H#define __EROFS_LOCK_Hinclude/erofs/print.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/tar.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_TAR_H#define __EROFS_TAR_Hinclude/erofs/trace.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2020 Gao Xiang <[email protected]> */ include/erofs/workqueue.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_WORKQUEUE_H#define __EROFS_WORKQUEUE_Hinclude/erofs/xattr.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_XATTR_H#define __EROFS_XATTR_Hlib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +# SPDX-License-Identifier: GPL-2.0+ OR MIT noinst_LTLIBRARIES = liberofs.la noinst_HEADERS = $(top_srcdir)/include/erofs_fs.h \lib/backends/fanotify.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <errno.h> #include <fcntl.h> lib/backends/nbd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/base64.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "liberofs_base64.h" #include <string.h> lib/bitops.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/bitops.c * lib/blobchunk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/blobchunk.c * lib/block_list.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/cache.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress_hints.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/compressor.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023, Alibaba Cloud * Copyright (C) 2023, Gao Xiang <[email protected]> lib/compressor_libdeflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_liblzma.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2021 Gao Xiang <[email protected]> */ lib/compressor_libzstd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_lz4.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_lz4hc.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/data.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2020 Gao Xiang <[email protected]> * Compression support by Huang Jianan <[email protected]> lib/decompress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/dedupe.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2022 Alibaba Cloud */ lib/dedupe_ext.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/dedupe.h" #include "liberofs_xxhash.h" #include <stdlib.h> lib/dir.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include <sys/stat.h> #include "erofs/print.h" lib/diskbuf.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/diskbuf.h" #include "erofs/internal.h" #include "erofs/print.h" lib/exclude.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/fragments.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2022, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/global.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/gzran.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/importer.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/inode.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/io.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ lib/kite_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/kite_deflate.c * lib/liberofs_cache.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com lib/liberofs_compress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_dockerconfig.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_fanotify.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_FANOTIFY_H#define __EROFS_LIB_LIBEROFS_FANOTIFY_Hlib/liberofs_fragments.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022, Coolpad Group Limited. * Copyright (C) 2025 Alibaba Cloud lib/liberofs_gzran.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_metabox.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_METABOX_H#define __EROFS_LIB_LIBEROFS_METABOX_Hlib/liberofs_nbd.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_oci.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_private.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifdef HAVE_LIBSELINUX #include <selinux/selinux.h> lib/liberofs_rebuild.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_REBUILD_H#define __EROFS_LIB_LIBEROFS_REBUILD_Hlib/liberofs_s3.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_uuid.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_UUID_H#define __EROFS_LIB_UUID_Hlib/metabox.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include "erofs/inode.h" #include "erofs/importer.h" lib/namei.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/rebuild.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <unistd.h> #include <stdlib.h> lib/remotes/docker_config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/remotes/oci.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/remotes/s3.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/rolling_hash.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ lib/sha256.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_SHA256_H#define __EROFS_LIB_SHA256_Hlib/super.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/tar.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <unistd.h> #include <stdlib.h> #include <string.h> lib/uuid.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/uuid_unparse.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/vmdk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" static int erofs_vmdk_desc_add_extent(FILE *f, u64 sectors,lib/workqueue.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <pthread.h> #include <stdlib.h> #include "erofs/print.h" lib/xattr.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2019 Li Guifu <[email protected]> * Gao Xiang <[email protected]> lib/zmap.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * (a large amount of code was adapted from Linux kernel. ) *
Quoted 7 lines · Gao Xiang
Apache 2.0 is still too strict for some 3rd-party integration.
Let's switch to GPL-2.0+ OR MIT dual license since we're absolutely not working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>
Thanks,
Hongbo
Quoted 1,167 lines
--- COPYING | 6 +- LICENSES/Apache-2.0 | 186 --------------------------------- include/erofs/atomic.h | 2 +- include/erofs/bitops.h | 2 +- include/erofs/blobchunk.h | 2 +- include/erofs/block_list.h | 2 +- include/erofs/compress_hints.h | 2 +- include/erofs/config.h | 2 +- include/erofs/decompress.h | 2 +- include/erofs/dedupe.h | 2 +- include/erofs/defs.h | 2 +- include/erofs/dir.h | 2 +- include/erofs/diskbuf.h | 2 +- include/erofs/err.h | 2 +- include/erofs/exclude.h | 2 +- include/erofs/importer.h | 2 +- include/erofs/inode.h | 2 +- include/erofs/internal.h | 2 +- include/erofs/io.h | 2 +- include/erofs/list.h | 2 +- include/erofs/lock.h | 2 +- include/erofs/print.h | 2 +- include/erofs/tar.h | 2 +- include/erofs/trace.h | 2 +- include/erofs/workqueue.h | 2 +- include/erofs/xattr.h | 2 +- lib/Makefile.am | 2 +- lib/backends/fanotify.c | 2 +- lib/backends/nbd.c | 2 +- lib/base64.c | 2 +- lib/bitops.c | 2 +- lib/blobchunk.c | 2 +- lib/block_list.c | 2 +- lib/cache.c | 2 +- lib/compress.c | 2 +- lib/compress_hints.c | 2 +- lib/compressor.c | 2 +- lib/compressor.h | 2 +- lib/compressor_deflate.c | 2 +- lib/compressor_libdeflate.c | 2 +- lib/compressor_liblzma.c | 2 +- lib/compressor_libzstd.c | 2 +- lib/compressor_lz4.c | 2 +- lib/compressor_lz4hc.c | 2 +- lib/config.c | 2 +- lib/data.c | 2 +- lib/decompress.c | 2 +- lib/dedupe.c | 2 +- lib/dedupe_ext.c | 2 +- lib/dir.c | 2 +- lib/diskbuf.c | 2 +- lib/exclude.c | 2 +- lib/fragments.c | 2 +- lib/global.c | 2 +- lib/gzran.c | 2 +- lib/importer.c | 2 +- lib/inode.c | 2 +- lib/io.c | 2 +- lib/kite_deflate.c | 2 +- lib/liberofs_cache.h | 2 +- lib/liberofs_compress.h | 2 +- lib/liberofs_dockerconfig.h | 2 +- lib/liberofs_fanotify.h | 2 +- lib/liberofs_fragments.h | 2 +- lib/liberofs_gzran.h | 2 +- lib/liberofs_metabox.h | 2 +- lib/liberofs_nbd.h | 2 +- lib/liberofs_oci.h | 2 +- lib/liberofs_private.h | 2 +- lib/liberofs_rebuild.h | 2 +- lib/liberofs_s3.h | 2 +- lib/liberofs_uuid.h | 2 +- lib/metabox.c | 2 +- lib/namei.c | 2 +- lib/rebuild.c | 2 +- lib/remotes/docker_config.c | 2 +- lib/remotes/oci.c | 2 +- lib/remotes/s3.c | 2 +- lib/rolling_hash.h | 2 +- lib/sha256.h | 2 +- lib/super.c | 2 +- lib/tar.c | 2 +- lib/uuid.c | 2 +- lib/uuid_unparse.c | 2 +- lib/vmdk.c | 2 +- lib/workqueue.c | 2 +- lib/xattr.c | 2 +- lib/zmap.c | 2 +- 88 files changed, 89 insertions(+), 275 deletions(-)delete mode 100644
LICENSES/Apache-2.0COPYING +3
-3@@ -1,7 +1,7 @@ erofs-utils uses two different license patterns: - most liberofs files in `lib` and `include` directories - use GPL-2.0+ OR Apache-2.0 dual license; + use GPL-2.0+ OR MIT dual license; - all other files use GPL-2.0+ license, unless explicitly stated otherwise.@@ -9,7 +9,7 @@ erofs-utils uses two different license patterns: Relevant licenses can be found in the LICENSES directory. This model is selected to emphasize that -files in `lib` and `include` directory are designed to be included into -3rd-party applications, while all other files, are intended to be used +files in `lib` and `include` directories are designed to be included in +3rd-party applications, while all other files are intended to be used "as is", as part of their intended scenarios, with no intention to support 3rd-party integration use cases.LICENSES/Apache-2.0 deleted +0
-186@@ -1,186 +0,0 @@ -Valid-License-Identifier: Apache-2.0 -SPDX-URL: https://spdx.org/licenses/Apache-2.0.html -Usage-Guide: - The Apache-2.0 may only be used for dual-licensed files where the other - license is GPL2 compatible. If you end up using this it MUST be used - together with a GPL2 compatible license using "OR". - To use the Apache License version 2.0 put the following SPDX tag/value - pair into a comment according to the placement guidelines in the - licensing rules documentation: - SPDX-License-Identifier: Apache-2.0 -License-Text: - -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and -distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the -copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other -entities that control, are controlled by, or are under common control with -that entity. For the purposes of this definition, "control" means (i) the -power, direct or indirect, to cause the direction or management of such -entity, whether by contract or otherwise, or (ii) ownership of fifty -percent (50%) or more of the outstanding shares, or (iii) beneficial -ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising -permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, -including but not limited to software source code, documentation source, -and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation -or translation of a Source form, including but not limited to compiled -object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, -made available under the License, as indicated by a copyright notice that -is included in or attached to the work (an example is provided in the -Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, -that is based on (or derived from) the Work and for which the editorial -revisions, annotations, elaborations, or other modifications represent, as -a whole, an original work of authorship. For the purposes of this License, -Derivative Works shall not include works that remain separable from, or -merely link (or bind by name) to the interfaces of, the Work and Derivative -Works thereof. - -"Contribution" shall mean any work of authorship, including the original -version of the Work and any modifications or additions to that Work or -Derivative Works thereof, that is intentionally submitted to Licensor for -inclusion in the Work by the copyright owner or by an individual or Legal -Entity authorized to submit on behalf of the copyright owner. For the -purposes of this definition, "submitted" means any form of electronic, -verbal, or written communication sent to the Licensor or its -representatives, including but not limited to communication on electronic -mailing lists, source code control systems, and issue tracking systems that -are managed by, or on behalf of, the Licensor for the purpose of discussing -and improving the Work, but excluding communication that is conspicuously -marked or otherwise designated in writing by the copyright owner as "Not a -Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on -behalf of whom a Contribution has been received by Licensor and -subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable copyright license to - reproduce, prepare Derivative Works of, publicly display, publicly - perform, sublicense, and distribute the Work and such Derivative Works - in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this - License, each Contributor hereby grants to You a perpetual, worldwide, - non-exclusive, no-charge, royalty-free, irrevocable (except as stated in - this section) patent license to make, have made, use, offer to sell, - sell, import, and otherwise transfer the Work, where such license - applies only to those patent claims licensable by such Contributor that - are necessarily infringed by their Contribution(s) alone or by - combination of their Contribution(s) with the Work to which such - Contribution(s) was submitted. If You institute patent litigation - against any entity (including a cross-claim or counterclaim in a - lawsuit) alleging that the Work or a Contribution incorporated within - the Work constitutes direct or contributory patent infringement, then - any patent licenses granted to You under this License for that Work - shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or - Derivative Works thereof in any medium, with or without modifications, - and in Source or Object form, provided that You meet the following - conditions: - - a. You must give any other recipients of the Work or Derivative Works a - copy of this License; and - - b. You must cause any modified files to carry prominent notices stating - that You changed the files; and - - c. You must retain, in the Source form of any Derivative Works that You - distribute, all copyright, patent, trademark, and attribution notices - from the Source form of the Work, excluding those notices that do not - pertain to any part of the Derivative Works; and - - d. If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained within - such NOTICE file, excluding those notices that do not pertain to any - part of the Derivative Works, in at least one of the following - places: within a NOTICE text file distributed as part of the - Derivative Works; within the Source form or documentation, if - provided along with the Derivative Works; or, within a display - generated by the Derivative Works, if and wherever such third-party - notices normally appear. The contents of the NOTICE file are for - informational purposes only and do not modify the License. You may - add Your own attribution notices within Derivative Works that You - distribute, alongside or as an addendum to the NOTICE text from the - Work, provided that such additional attribution notices cannot be - construed as modifying the License. - - You may add Your own copyright statement to Your modifications and may - provide additional or different license terms and conditions for use, - reproduction, or distribution of Your modifications, or for any such - Derivative Works as a whole, provided Your use, reproduction, and - distribution of the Work otherwise complies with the conditions stated - in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any - Contribution intentionally submitted for inclusion in the Work by You to - the Licensor shall be under the terms and conditions of this License, - without any additional terms or conditions. Notwithstanding the above, - nothing herein shall supersede or modify the terms of any separate - license agreement you may have executed with Licensor regarding such - Contributions. - -6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to - in writing, Licensor provides the Work (and each Contributor provides - its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS - OF ANY KIND, either express or implied, including, without limitation, - any warranties or conditions of TITLE, NON-INFRINGEMENT, - MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely - responsible for determining the appropriateness of using or - redistributing the Work and assume any risks associated with Your - exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether - in tort (including negligence), contract, or otherwise, unless required - by applicable law (such as deliberate and grossly negligent acts) or - agreed to in writing, shall any Contributor be liable to You for - damages, including any direct, indirect, special, incidental, or - consequential damages of any character arising as a result of this - License or out of the use or inability to use the Work (including but - not limited to damages for loss of goodwill, work stoppage, computer - failure or malfunction, or any and all other commercial damages or - losses), even if such Contributor has been advised of the possibility of - such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the - Work or Derivative Works thereof, You may choose to offer, and charge a - fee for, acceptance of support, warranty, indemnity, or other liability - obligations and/or rights consistent with this License. However, in - accepting such obligations, You may act only on Your own behalf and on - Your sole responsibility, not on behalf of any other Contributor, and - only if You agree to indemnify, defend, and hold each Contributor - harmless for any liability incurred by, or claims asserted against, such - Contributor by reason of your accepting any such warranty or additional - liability. - -END OF TERMS AND CONDITIONSinclude/erofs/atomic.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2024 Alibaba Cloud */ include/erofs/bitops.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_BITOPS_H#define __EROFS_BITOPS_Hinclude/erofs/blobchunk.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * erofs-utils/lib/blobchunk.h * include/erofs/block_list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> include/erofs/compress_hints.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/config.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/decompress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> include/erofs/dedupe.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ include/erofs/defs.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/dir.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DIR_H#define __EROFS_DIR_Hinclude/erofs/diskbuf.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_DISKBUF_H#define __EROFS_DISKBUF_Hinclude/erofs/err.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/exclude.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Created by Li Guifu <[email protected]> */ include/erofs/importer.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ include/erofs/inode.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/internal.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/io.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/list.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/lock.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LOCK_H#define __EROFS_LOCK_Hinclude/erofs/print.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ include/erofs/tar.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_TAR_H#define __EROFS_TAR_Hinclude/erofs/trace.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2020 Gao Xiang <[email protected]> */ include/erofs/workqueue.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_WORKQUEUE_H#define __EROFS_WORKQUEUE_Hinclude/erofs/xattr.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_XATTR_H#define __EROFS_XATTR_Hlib/Makefile.am +1
-1@@ -1,4 +1,4 @@ -# SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +# SPDX-License-Identifier: GPL-2.0+ OR MIT noinst_LTLIBRARIES = liberofs.la noinst_HEADERS = $(top_srcdir)/include/erofs_fs.h \lib/backends/fanotify.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <errno.h> #include <fcntl.h> lib/backends/nbd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/base64.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "liberofs_base64.h" #include <string.h> lib/bitops.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/bitops.c * lib/blobchunk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/blobchunk.c * lib/block_list.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2021, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/cache.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compress_hints.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2021, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/compressor.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023, Alibaba Cloud * Copyright (C) 2023, Gao Xiang <[email protected]> lib/compressor_libdeflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_liblzma.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2021 Gao Xiang <[email protected]> */ lib/compressor_libzstd.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" #include "erofs/print.h" #include "erofs/config.h" lib/compressor_lz4.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/compressor_lz4hc.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/data.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2020 Gao Xiang <[email protected]> * Compression support by Huang Jianan <[email protected]> lib/decompress.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2008-2020, OPPO Mobile Comm Corp., Ltd. * Created by Huang Jianan <[email protected]> lib/dedupe.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2022 Alibaba Cloud */ lib/dedupe_ext.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/dedupe.h" #include "liberofs_xxhash.h" #include <stdlib.h> lib/dir.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include <sys/stat.h> #include "erofs/print.h" lib/diskbuf.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/diskbuf.h" #include "erofs/internal.h" #include "erofs/print.h" lib/exclude.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/fragments.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C), 2022, Coolpad Group Limited. * Created by Yue Hu <[email protected]> lib/global.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/gzran.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/importer.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Alibaba Cloud */ lib/inode.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018-2019 HUAWEI, Inc. * http://www.huawei.com/ lib/io.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com/ lib/kite_deflate.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * erofs-utils/lib/kite_deflate.c * lib/liberofs_cache.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2018 HUAWEI, Inc. * http://www.huawei.com lib/liberofs_compress.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2019 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_dockerconfig.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_fanotify.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_FANOTIFY_H#define __EROFS_LIB_LIBEROFS_FANOTIFY_Hlib/liberofs_fragments.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022, Coolpad Group Limited. * Copyright (C) 2025 Alibaba Cloud lib/liberofs_gzran.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_metabox.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_METABOX_H#define __EROFS_LIB_LIBEROFS_METABOX_Hlib/liberofs_nbd.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Alibaba Cloud */ lib/liberofs_oci.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/liberofs_private.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0-only OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifdef HAVE_LIBSELINUX #include <selinux/selinux.h> lib/liberofs_rebuild.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_LIBEROFS_REBUILD_H#define __EROFS_LIB_LIBEROFS_REBUILD_Hlib/liberofs_s3.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/liberofs_uuid.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_UUID_H#define __EROFS_LIB_UUID_Hlib/metabox.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <stdlib.h> #include "erofs/inode.h" #include "erofs/importer.h" lib/namei.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/rebuild.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #define _GNU_SOURCE#include <unistd.h> #include <stdlib.h> lib/remotes/docker_config.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2026 Tencent, Inc. * http://www.tencent.com/ lib/remotes/oci.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 Tencent, Inc. * http://www.tencent.com/ lib/remotes/s3.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2025 HUAWEI, Inc. * http://www.huawei.com/ lib/rolling_hash.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ /* * Copyright (C) 2022 Alibaba Cloud */ lib/sha256.h +1
-1@@ -1,4 +1,4 @@ -/* SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 */ +/* SPDX-License-Identifier: GPL-2.0+ OR MIT */ #ifndef __EROFS_LIB_SHA256_H#define __EROFS_LIB_SHA256_Hlib/super.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Created by Li Guifu <[email protected]> */ lib/tar.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <unistd.h> #include <stdlib.h> #include <string.h> lib/uuid.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/uuid_unparse.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2023 Norbert Lange <[email protected]> */ lib/vmdk.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include "erofs/internal.h" static int erofs_vmdk_desc_add_extent(FILE *f, u64 sectors,lib/workqueue.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT #include <pthread.h> #include <stdlib.h> #include "erofs/print.h" lib/xattr.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * Copyright (C) 2019 Li Guifu <[email protected]> * Gao Xiang <[email protected]> lib/zmap.c +1
-1@@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ OR Apache-2.0 +// SPDX-License-Identifier: GPL-2.0+ OR MIT /* * (a large amount of code was adapted from Linux kernel. ) *
Quoted 8 lines · Gao Xiang
Apache 2.0 is still too strict for some 3rd-party integration.
Let's switch to GPL-2.0+ OR MIT dual license since we're absolutely not working on secret rocket science, so licenses should not be a bottleneck to innovation in the Cloud Native and AI era.
Signed-off-by Gao Xiang <[email protected]>
Thanks,