Skip to content

Commit 7af2ed4

Browse files
committed
treewide: Add SPDX identifier
Add the default project wide license SPDX identifier GPL-2.0-or-later to all files which do not have any copyright statement. Add the GPL-2.0-or-later or GPL-2.0-only according the copyright statement listed in the file. Signed-off-by: Daniel Wagner <[email protected]>
1 parent 77f6c8f commit 7af2ed4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+120
-1
lines changed

Documentation/meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
13
adoc_sources = [
24
'nvme',
35
'nvme-admin-passthru',

Documentation/update-docs.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
2+
# SPDX-License-Identifier: GPL-2.0-or-later
23

34
BUILDDIR="$(mktemp -d)"
45
trap 'rm -rf -- $BUILDDIR' EXIT

ccan/meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
13
sources += files([
24
'ccan/list/list.c',
35
'ccan/str/debug.c',

cmd.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef _CMD_H
23
#define _CMD_H
34

cmd_handler.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
/*
23
* Stage 1
34
*

common.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef _COMMON_H
23
#define _COMMON_H
34

completions/_nvme

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
13
#compdef _nvme nvme
24

35
# zsh completions for the nvme command-line interface,

completions/bash-nvme-completion.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# bash tab completion for the nvme command line utility
24
# (unfortunately, bash won't let me add descriptions to cmds)
35
# Kelly Kaoudis kelly.n.kaoudis at intel.com, Aug. 2015

define_cmd.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifdef CREATE_CMD
23
#undef CREATE_CMD
34

fabrics.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
12
/*
23
* Copyright (C) 2016 Intel Corporation. All rights reserved.
34
* Copyright (c) 2016 HGST, a Western Digital Company.

fabrics.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef _FABRICS_H
23
#define _FABRICS_H
34

meson.build

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
12
################################################################################
23
project(
34
'nvme-cli', ['c', 'cpp'],

meson_options.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
12
option('version-tag', type : 'string', description : 'override the git version string')
23
option('udevrulesdir', type : 'string', value : 'lib/udev/rules.d', description : 'directory for udev rules files')
34
option('dracutrulesdir', type : 'string', value : 'lib/dracut/dracut.conf.d/', description : 'directory for dracut rules files')

nvme-builtin.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE nvme-builtin
34

nvme-models.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#include <stdio.h>
23
#include <stdlib.h>
34
#include <stdbool.h>

nvme-models.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef NVME_MODEL_H
23
#define NVME_MODEL_H
34

nvme-print.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <assert.h>
23
#include <errno.h>
34
#include <stdio.h>

nvme-print.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef NVME_PRINT_H
23
#define NVME_PRINT_H
34

nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* nvme.c -- NVM-Express command line utility.
34
*

nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-only */
12
/*
23
* Definitions for the NVM Express interface
34
* Copyright (c) 2011-2014, Intel Corporation.

plugin.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <errno.h>
23
#include <stdio.h>
34
#include <stdlib.h>

plugin.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef PLUGIN_H
23
#define PLUGIN_H
34

plugins/amzn/amzn-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/amzn/amzn-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/amzn/amzn-nvme
34

plugins/dera/dera-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/dera/dera-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/dera/dera-nvme
34

plugins/huawei/huawei-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* Copyright (c) 2017-2019 Huawei Corporation or its affiliates.
34
*

plugins/huawei/huawei-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/huawei/huawei-nvme
34

plugins/intel/intel-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/intel/intel-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/intel/intel-nvme
34

plugins/memblaze/memblaze-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/memblaze/memblaze-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/memblaze/memblaze-nvme
34

plugins/memblaze/memblaze-utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef __MEMBLAZE_UTILS_H__
23
#define __MEMBLAZE_UTILS_H__
34

plugins/meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
13
sources += [
24
'plugins/amzn/amzn-nvme.c',
35
'plugins/dera/dera-nvme.c',

plugins/micron/micron-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <stdio.h>
23
#include <string.h>
34
#include <ctype.h>

plugins/micron/micron-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/micron/micron-nvme
34

plugins/netapp/netapp-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* Copyright (c) 2018 NetApp, Inc.
34
*

plugins/netapp/netapp-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/netapp/netapp-nvme
34

plugins/nvidia/nvidia-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/nvidia/nvidia-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/nvidia/nvidia-nvme
34

plugins/scaleflux/sfx-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/scaleflux/sfx-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/scaleflux/sfx-nvme
34

plugins/seagate/seagate-diag.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
/*
23
* Do NOT modify or remove this copyright and license
34
*

plugins/seagate/seagate-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* Do NOT modify or remove this copyright and license
34
*

plugins/seagate/seagate-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
/*
23
* Do NOT modify or remove this copyright and license
34
*

plugins/shannon/shannon-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/shannon/shannon-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/shannon/shannon-nvme
34

plugins/toshiba/toshiba-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/toshiba/toshiba-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/toshiba/toshiba-nvme
34

plugins/transcend/transcend-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/transcend/transcend-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/transcend/transcend-nvme
34

plugins/virtium/virtium-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/virtium/virtium-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/virtium/virtium-nvme
34

plugins/wdc/wdc-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* Copyright (c) 2015-2018 Western Digital Corporation or its affiliates.
34
*

plugins/wdc/wdc-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/wdc/wdc-nvme
34

plugins/wdc/wdc-utils.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
/*
23
* Copyright (c) 2017-2018 Western Digital Corporation or its affiliates.
34
*

plugins/wdc/wdc-utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
/*
23
* Copyright (c) 2017-2018 Western Digital Corporation or its affiliates.
34
*

plugins/ymtc/ymtc-nvme.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/ymtc/ymtc-nvme.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/ymtc/ymtc-nvme
34

plugins/ymtc/ymtc-utils.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#ifndef __YMTC_UTILS_H__
23
#define __YMTC_UTILS_H__
34

plugins/zns/zns.c

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
12
#include <fcntl.h>
23
#include <errno.h>
34
#include <stdio.h>

plugins/zns/zns.h

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* SPDX-License-Identifier: GPL-2.0-or-later */
12
#undef CMD_INC_FILE
23
#define CMD_INC_FILE plugins/zns/zns
34

regress

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0-or-later
23
#
34
# Copyright 2015 PMC-Sierra, Inc.
45
#

scripts/gen-hostnqn.sh

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
#!/bin/sh
2+
# SPDX-License-Identifier: GPL-2.0-or-later
23

34
nvme gen-hostnqn

scripts/latency

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/bash
2+
# SPDX-License-Identifier: GPL-2.0-or-later
23
#
34
# Copyright 2015 PMC-Sierra, Inc.
45
#

tests/meson.build

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
13
tests = [
24
'nvme_attach_detach_ns_test',
35
'nvme_compare_test',

tests/nvme_attach_detach_ns_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_compare_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_create_max_ns_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_error_log_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_flush_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_format_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_fw_log_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_get_features_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

tests/nvme_id_ctrl_test.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
23
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
34
#
45
# This program is free software; you can redistribute it and/or

tests/nvme_id_ns_test.py

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
13
# Copyright (c) 2015-2016 Western Digital Corporation or its affiliates.
24
#
35
# This program is free software; you can redistribute it and/or

0 commit comments

Comments
 (0)