diff --git a/.githooks/pre-commit b/.githooks/pre-commit index c0b461246..358cf789d 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. + # # Verify what is about to be committed. # Called by "git commit" with no arguments. The hook should diff --git a/.githooks/pre-push b/.githooks/pre-push index fa9bfb928..e9b4299cf 100755 --- a/.githooks/pre-push +++ b/.githooks/pre-push @@ -1,4 +1,7 @@ #!/bin/sh +# SPDX-License-Identifier: BSD-3-Clause +# All rights reserved. + # Verify what is about to be pushed. Called by "git # push" after it has checked the remote status, but before anything has been # pushed. If this script exits with a non-zero status nothing will be pushed. diff --git a/autorun_post.py b/autorun_post.py index dad48871b..0166b56b6 100755 --- a/autorun_post.py +++ b/autorun_post.py @@ -1,4 +1,8 @@ #!/usr/bin/python3 +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + import shutil import subprocess diff --git a/examples/interrupt_tgt/interrupt_plugin.py b/examples/interrupt_tgt/interrupt_plugin.py index c27887bc8..4de7a2982 100644 --- a/examples/interrupt_tgt/interrupt_plugin.py +++ b/examples/interrupt_tgt/interrupt_plugin.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + from spdk.rpc.client import print_json diff --git a/examples/nvme/hotplug/hotplug_plugin.py b/examples/nvme/hotplug/hotplug_plugin.py index ba39524e3..445431c25 100644 --- a/examples/nvme/hotplug/hotplug_plugin.py +++ b/examples/nvme/hotplug/hotplug_plugin.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.rpc.client import print_json diff --git a/python/spdk/__init__.py b/python/spdk/__init__.py index e69de29bb..5e8c05620 100644 --- a/python/spdk/__init__.py +++ b/python/spdk/__init__.py @@ -0,0 +1,3 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. diff --git a/python/spdk/rpc/__init__.py b/python/spdk/rpc/__init__.py index eb2ba7737..6a698ddf5 100644 --- a/python/spdk/rpc/__init__.py +++ b/python/spdk/rpc/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + import json import os import sys diff --git a/python/spdk/rpc/accel.py b/python/spdk/rpc/accel.py index 85fcd6c91..ad527b859 100644 --- a/python/spdk/rpc/accel.py +++ b/python/spdk/rpc/accel.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.rpc.helpers import deprecated_alias diff --git a/python/spdk/rpc/app.py b/python/spdk/rpc/app.py index 891ebc6a0..8f3a55338 100644 --- a/python/spdk/rpc/app.py +++ b/python/spdk/rpc/app.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def spdk_kill_instance(client, sig_name): """Send a signal to the SPDK process. diff --git a/python/spdk/rpc/bdev.py b/python/spdk/rpc/bdev.py index cdc67e7af..22ffd8289 100644 --- a/python/spdk/rpc/bdev.py +++ b/python/spdk/rpc/bdev.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def bdev_set_options(client, bdev_io_pool_size=None, bdev_io_cache_size=None, bdev_auto_examine=None, small_buf_pool_size=None, large_buf_pool_size=None): """Set parameters for the bdev subsystem. diff --git a/python/spdk/rpc/blobfs.py b/python/spdk/rpc/blobfs.py index a064afecf..d46324df8 100644 --- a/python/spdk/rpc/blobfs.py +++ b/python/spdk/rpc/blobfs.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation. +# All rights reserved. + def blobfs_detect(client, bdev_name): """Detect whether a blobfs exists on bdev. diff --git a/python/spdk/rpc/client.py b/python/spdk/rpc/client.py index caecda144..652dbed3e 100644 --- a/python/spdk/rpc/client.py +++ b/python/spdk/rpc/client.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + import json import socket import time diff --git a/python/spdk/rpc/cmd_parser.py b/python/spdk/rpc/cmd_parser.py index 4cf728f75..97694ba33 100644 --- a/python/spdk/rpc/cmd_parser.py +++ b/python/spdk/rpc/cmd_parser.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries', 'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client'] diff --git a/python/spdk/rpc/dsa.py b/python/spdk/rpc/dsa.py index 447618f01..1ee5a8e76 100644 --- a/python/spdk/rpc/dsa.py +++ b/python/spdk/rpc/dsa.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.rpc.helpers import deprecated_alias diff --git a/python/spdk/rpc/env_dpdk.py b/python/spdk/rpc/env_dpdk.py index f2c098e52..9faf267a1 100644 --- a/python/spdk/rpc/env_dpdk.py +++ b/python/spdk/rpc/env_dpdk.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation. +# All rights reserved. + def env_dpdk_get_mem_stats(client): """Dump the applications memory stats to a file. diff --git a/python/spdk/rpc/helpers.py b/python/spdk/rpc/helpers.py index d931fcf14..52aaf616b 100644 --- a/python/spdk/rpc/helpers.py +++ b/python/spdk/rpc/helpers.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation. +# All rights reserved. + import sys deprecated_aliases = {} diff --git a/python/spdk/rpc/iaa.py b/python/spdk/rpc/iaa.py index 1eb4fee26..613ab7bac 100644 --- a/python/spdk/rpc/iaa.py +++ b/python/spdk/rpc/iaa.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.rpc.helpers import deprecated_alias diff --git a/python/spdk/rpc/ioat.py b/python/spdk/rpc/ioat.py index 6485f3851..c76be1087 100644 --- a/python/spdk/rpc/ioat.py +++ b/python/spdk/rpc/ioat.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + from spdk.rpc.helpers import deprecated_alias diff --git a/python/spdk/rpc/iscsi.py b/python/spdk/rpc/iscsi.py index cf7f3e5a7..1ef8f14aa 100644 --- a/python/spdk/rpc/iscsi.py +++ b/python/spdk/rpc/iscsi.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def iscsi_set_options( client, auth_file=None, diff --git a/python/spdk/rpc/log.py b/python/spdk/rpc/log.py index f73c115e8..d2d30790d 100644 --- a/python/spdk/rpc/log.py +++ b/python/spdk/rpc/log.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def log_set_flag(client, flag): """Set log flag. diff --git a/python/spdk/rpc/lvol.py b/python/spdk/rpc/lvol.py index 8da2505f6..e2360449b 100644 --- a/python/spdk/rpc/lvol.py +++ b/python/spdk/rpc/lvol.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def bdev_lvol_create_lvstore(client, bdev_name, lvs_name, cluster_sz=None, clear_method=None, num_md_pages_per_cluster_ratio=None): """Construct a logical volume store. diff --git a/python/spdk/rpc/nbd.py b/python/spdk/rpc/nbd.py index ce2ee6c35..a4d0c2bf8 100644 --- a/python/spdk/rpc/nbd.py +++ b/python/spdk/rpc/nbd.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def nbd_start_disk(client, bdev_name, nbd_device): params = { 'bdev_name': bdev_name diff --git a/python/spdk/rpc/notify.py b/python/spdk/rpc/notify.py index f6288deb1..132287a04 100644 --- a/python/spdk/rpc/notify.py +++ b/python/spdk/rpc/notify.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + def notify_get_types(client): return client.call("notify_get_types") diff --git a/python/spdk/rpc/nvme.py b/python/spdk/rpc/nvme.py index dad4f02bb..504ed95dc 100644 --- a/python/spdk/rpc/nvme.py +++ b/python/spdk/rpc/nvme.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + def bdev_nvme_send_cmd(client, name, cmd_type, data_direction, cmdbuf, data=None, metadata=None, data_len=None, metadata_len=None, diff --git a/python/spdk/rpc/nvmf.py b/python/spdk/rpc/nvmf.py index dfb4bd296..4d4d0743b 100644 --- a/python/spdk/rpc/nvmf.py +++ b/python/spdk/rpc/nvmf.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + from .cmd_parser import * diff --git a/python/spdk/rpc/pmem.py b/python/spdk/rpc/pmem.py index 8cb25148d..f51792f5f 100644 --- a/python/spdk/rpc/pmem.py +++ b/python/spdk/rpc/pmem.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size): """Create pmem pool at specified path. Args: diff --git a/python/spdk/rpc/sock.py b/python/spdk/rpc/sock.py index d7ccc10b6..dc1bafddd 100644 --- a/python/spdk/rpc/sock.py +++ b/python/spdk/rpc/sock.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + def sock_impl_get_options(client, impl_name=None): """Get parameters for the socket layer implementation. diff --git a/python/spdk/rpc/subsystem.py b/python/spdk/rpc/subsystem.py index 1701d2aff..cab7d486d 100644 --- a/python/spdk/rpc/subsystem.py +++ b/python/spdk/rpc/subsystem.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + def framework_get_subsystems(client): return client.call('framework_get_subsystems') diff --git a/python/spdk/rpc/trace.py b/python/spdk/rpc/trace.py index 37c7803d1..15a218a3d 100644 --- a/python/spdk/rpc/trace.py +++ b/python/spdk/rpc/trace.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + def trace_enable_tpoint_group(client, name): """Enable trace on a specific tpoint group. diff --git a/python/spdk/rpc/vfio_user.py b/python/spdk/rpc/vfio_user.py index dd610838e..5c57aa0e7 100644 --- a/python/spdk/rpc/vfio_user.py +++ b/python/spdk/rpc/vfio_user.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + def vfu_tgt_set_base_path(client, path): """Set socket base path. diff --git a/python/spdk/rpc/vhost.py b/python/spdk/rpc/vhost.py index 16bcbd8d9..4744e65c6 100644 --- a/python/spdk/rpc/vhost.py +++ b/python/spdk/rpc/vhost.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2017 Intel Corporation. +# All rights reserved. + from .cmd_parser import * diff --git a/python/spdk/rpc/vmd.py b/python/spdk/rpc/vmd.py index b4ceb79c1..e6f128a26 100644 --- a/python/spdk/rpc/vmd.py +++ b/python/spdk/rpc/vmd.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2019 Intel Corporation. +# All rights reserved. + from .helpers import deprecated_alias diff --git a/python/spdk/sma/__init__.py b/python/spdk/sma/__init__.py index 05b034012..dbe563ee0 100644 --- a/python/spdk/sma/__init__.py +++ b/python/spdk/sma/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import os import sys diff --git a/python/spdk/sma/common.py b/python/spdk/sma/common.py index 4e4f0b3fe..5fbc01a77 100644 --- a/python/spdk/sma/common.py +++ b/python/spdk/sma/common.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import uuid diff --git a/python/spdk/sma/device/__init__.py b/python/spdk/sma/device/__init__.py index dcb86ea27..096a82f5c 100644 --- a/python/spdk/sma/device/__init__.py +++ b/python/spdk/sma/device/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from .device import DeviceException from .device import DeviceManager from .nvmf_tcp import NvmfTcpDeviceManager diff --git a/python/spdk/sma/device/device.py b/python/spdk/sma/device/device.py index a57e8a29a..edcf4ac66 100644 --- a/python/spdk/sma/device/device.py +++ b/python/spdk/sma/device/device.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from ..proto import sma_pb2 diff --git a/python/spdk/sma/device/nvmf_tcp.py b/python/spdk/sma/device/nvmf_tcp.py index fad8a9a16..c69d9d371 100644 --- a/python/spdk/sma/device/nvmf_tcp.py +++ b/python/spdk/sma/device/nvmf_tcp.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import grpc import logging import uuid diff --git a/python/spdk/sma/device/nvmf_vfiouser.py b/python/spdk/sma/device/nvmf_vfiouser.py index 0aed08064..775814605 100644 --- a/python/spdk/sma/device/nvmf_vfiouser.py +++ b/python/spdk/sma/device/nvmf_vfiouser.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import logging import os import shutil diff --git a/python/spdk/sma/device/vhost_blk.py b/python/spdk/sma/device/vhost_blk.py index 9301f08a7..bc5469b8c 100644 --- a/python/spdk/sma/device/vhost_blk.py +++ b/python/spdk/sma/device/vhost_blk.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import logging import os import uuid diff --git a/python/spdk/sma/qos.py b/python/spdk/sma/qos.py index ef3d1e02f..7b52e1d09 100644 --- a/python/spdk/sma/qos.py +++ b/python/spdk/sma/qos.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import grpc from spdk.rpc.client import JSONRPCException diff --git a/python/spdk/sma/sma.py b/python/spdk/sma/sma.py index f36933c31..529bc5c78 100644 --- a/python/spdk/sma/sma.py +++ b/python/spdk/sma/sma.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from concurrent import futures from contextlib import contextmanager from multiprocessing import Lock diff --git a/python/spdk/sma/volume/__init__.py b/python/spdk/sma/volume/__init__.py index ce34cd053..582fd2f70 100644 --- a/python/spdk/sma/volume/__init__.py +++ b/python/spdk/sma/volume/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from .volume import VolumeException from .volume import VolumeManager from .crypto import CryptoEngine diff --git a/python/spdk/sma/volume/crypto.py b/python/spdk/sma/volume/crypto.py index f564fa18e..6079d4604 100644 --- a/python/spdk/sma/volume/crypto.py +++ b/python/spdk/sma/volume/crypto.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import grpc import logging diff --git a/python/spdk/sma/volume/crypto_bdev.py b/python/spdk/sma/volume/crypto_bdev.py index 3a3f9926d..300f976d4 100644 --- a/python/spdk/sma/volume/crypto_bdev.py +++ b/python/spdk/sma/volume/crypto_bdev.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import grpc import logging import uuid diff --git a/python/spdk/sma/volume/volume.py b/python/spdk/sma/volume/volume.py index e3a641d44..9ae568346 100644 --- a/python/spdk/sma/volume/volume.py +++ b/python/spdk/sma/volume/volume.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + import grpc import ipaddress import logging diff --git a/python/spdk/spdkcli/__init__.py b/python/spdk/spdkcli/__init__.py index 571d49a8f..1b0bed771 100644 --- a/python/spdk/spdkcli/__init__.py +++ b/python/spdk/spdkcli/__init__.py @@ -1 +1,5 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + from .ui_root import UIRoot diff --git a/python/spdk/spdkcli/ui_node.py b/python/spdk/spdkcli/ui_node.py index f3acb0113..1e59b4c52 100644 --- a/python/spdk/spdkcli/ui_node.py +++ b/python/spdk/spdkcli/ui_node.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + from configshell_fb import ConfigNode, ExecutionError from uuid import UUID from ..rpc.client import JSONRPCException diff --git a/python/spdk/spdkcli/ui_node_iscsi.py b/python/spdk/spdkcli/ui_node_iscsi.py index e47660c27..9bedadd31 100644 --- a/python/spdk/spdkcli/ui_node_iscsi.py +++ b/python/spdk/spdkcli/ui_node_iscsi.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + from configshell_fb import ExecutionError from ..rpc.client import JSONRPCException from .ui_node import UINode diff --git a/python/spdk/spdkcli/ui_node_nvmf.py b/python/spdk/spdkcli/ui_node_nvmf.py index b54f1c3e6..f15f3bce9 100644 --- a/python/spdk/spdkcli/ui_node_nvmf.py +++ b/python/spdk/spdkcli/ui_node_nvmf.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + from ..rpc.client import JSONRPCException from .ui_node import UINode diff --git a/python/spdk/spdkcli/ui_root.py b/python/spdk/spdkcli/ui_root.py index 9b201ad3c..ec37822ff 100644 --- a/python/spdk/spdkcli/ui_root.py +++ b/python/spdk/spdkcli/ui_root.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + from .ui_node import UINode, UIBdevs, UILvolStores, UIVhosts from .ui_node_nvmf import UINVMf from .ui_node_iscsi import UIISCSI diff --git a/scripts/perf/nvmf/common.py b/scripts/perf/nvmf/common.py index d6de742e5..994e1d3e5 100644 --- a/scripts/perf/nvmf/common.py +++ b/scripts/perf/nvmf/common.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2018 Intel Corporation. +# All rights reserved. + import os import re import json diff --git a/test/bdev/bdevperf/common.sh b/test/bdev/bdevperf/common.sh index 6a07a29d2..7c12e5e03 100644 --- a/test/bdev/bdevperf/common.sh +++ b/test/bdev/bdevperf/common.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation. +# All rights reserved. + bdevperf=$rootdir/build/examples/bdevperf function create_job() { diff --git a/test/event/scheduler/scheduler_plugin.py b/test/event/scheduler/scheduler_plugin.py index 608cab286..e29a9303a 100644 --- a/test/event/scheduler/scheduler_plugin.py +++ b/test/event/scheduler/scheduler_plugin.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + from spdk.rpc.client import print_json diff --git a/test/interrupt/interrupt_common.sh b/test/interrupt/interrupt_common.sh index b6402d8ac..351c6a262 100644 --- a/test/interrupt/interrupt_common.sh +++ b/test/interrupt/interrupt_common.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + testdir=$(readlink -f $(dirname $0)) rootdir=$(readlink -f $testdir/../..) source $rootdir/test/common/autotest_common.sh diff --git a/test/ocf/integrity/flush.sh b/test/ocf/integrity/flush.sh index 7bd29329c..07d49f59e 100755 --- a/test/ocf/integrity/flush.sh +++ b/test/ocf/integrity/flush.sh @@ -1,4 +1,7 @@ #!/usr/bin/env bash +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}")) rootdir=$(readlink -f $curdir/../../..) diff --git a/test/rpc/rpc_plugin.py b/test/rpc/rpc_plugin.py index 85d9bdef6..917929700 100644 --- a/test/rpc/rpc_plugin.py +++ b/test/rpc/rpc_plugin.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation. +# All rights reserved. + from spdk.rpc.client import print_json diff --git a/test/scheduler/cgroups.sh b/test/scheduler/cgroups.sh index 72be0f32b..ea6ef6f02 100644 --- a/test/scheduler/cgroups.sh +++ b/test/scheduler/cgroups.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2021 Intel Corporation. +# All rights reserved. + check_cgroup() { # Try to work with both, cgroup-v1 and cgroup-v2. Verify which version is # in use by looking up interfaces common for either of the versions. diff --git a/test/scheduler/isolate_cores.sh b/test/scheduler/isolate_cores.sh index d32cac0fb..2a9d18db7 100644 --- a/test/scheduler/isolate_cores.sh +++ b/test/scheduler/isolate_cores.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation. +# All rights reserved. + # Select cores for the test xtrace_disable diff --git a/test/scheduler/rdmsr.pl b/test/scheduler/rdmsr.pl index b4628116a..15808ecba 100755 --- a/test/scheduler/rdmsr.pl +++ b/test/scheduler/rdmsr.pl @@ -1,4 +1,8 @@ #!/usr/bin/env perl +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2020 Intel Corporation. +# All rights reserved. + use strict; use warnings; diff --git a/test/sma/plugins/plugin1/__init__.py b/test/sma/plugins/plugin1/__init__.py index fbd657778..8968ce9e1 100644 --- a/test/sma/plugins/plugin1/__init__.py +++ b/test/sma/plugins/plugin1/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.sma import DeviceManager from spdk.sma import CryptoEngine, get_crypto_engine from spdk.sma.proto import sma_pb2 diff --git a/test/sma/plugins/plugin2/__init__.py b/test/sma/plugins/plugin2/__init__.py index 83c6b52d3..34ca33e3d 100644 --- a/test/sma/plugins/plugin2/__init__.py +++ b/test/sma/plugins/plugin2/__init__.py @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + from spdk.sma import DeviceManager from spdk.sma import CryptoEngine, get_crypto_engine from spdk.sma.proto import sma_pb2 diff --git a/test/vfio_user/nvme/common.sh b/test/vfio_user/nvme/common.sh index 219b79ae4..3fd566dab 100644 --- a/test/vfio_user/nvme/common.sh +++ b/test/vfio_user/nvme/common.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + function clean_vfio_user() { trap - ERR print_backtrace diff --git a/test/vfio_user/virtio/common.sh b/test/vfio_user/virtio/common.sh index 6086df659..aed46907d 100644 --- a/test/vfio_user/virtio/common.sh +++ b/test/vfio_user/virtio/common.sh @@ -1,3 +1,7 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright (C) 2022 Intel Corporation. +# All rights reserved. + function vfu_tgt_run() { local vhost_name=$1 local vfio_user_dir vfu_pid_file rpc_py