Add SPDX header to various files

They were missed by the initial set of patches which introduced this
header as a mandatory one across different types of files.

Signed-off-by: Michal Berger <michal.berger@intel.com>
Change-Id: I3f9b37d41298c843e1648e72fe8593768ccd37e0
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15423
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Michal Berger 2022-11-13 03:15:47 +01:00 committed by Tomasz Zawadzki
parent eb53c23236
commit 588dfe314b
63 changed files with 248 additions and 0 deletions

View File

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# All rights reserved.
# #
# Verify what is about to be committed. # Verify what is about to be committed.
# Called by "git commit" with no arguments. The hook should # Called by "git commit" with no arguments. The hook should

View File

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause
# All rights reserved.
# Verify what is about to be pushed. Called by "git # Verify what is about to be pushed. Called by "git
# push" after it has checked the remote status, but before anything has been # 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. # pushed. If this script exits with a non-zero status nothing will be pushed.

View File

@ -1,4 +1,8 @@
#!/usr/bin/python3 #!/usr/bin/python3
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
import shutil import shutil
import subprocess import subprocess

View File

@ -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 from spdk.rpc.client import print_json

View File

@ -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 from spdk.rpc.client import print_json

View File

@ -0,0 +1,3 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2021 Intel Corporation.
# All rights reserved.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
import json import json
import os import os
import sys import sys

View File

@ -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 from spdk.rpc.helpers import deprecated_alias

View File

@ -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): def spdk_kill_instance(client, sig_name):
"""Send a signal to the SPDK process. """Send a signal to the SPDK process.

View File

@ -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, 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): small_buf_pool_size=None, large_buf_pool_size=None):
"""Set parameters for the bdev subsystem. """Set parameters for the bdev subsystem.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2019 Intel Corporation.
# All rights reserved.
def blobfs_detect(client, bdev_name): def blobfs_detect(client, bdev_name):
"""Detect whether a blobfs exists on bdev. """Detect whether a blobfs exists on bdev.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
import json import json
import socket import socket
import time import time

View File

@ -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', args_global = ['server_addr', 'port', 'timeout', 'verbose', 'dry_run', 'conn_retries',
'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client'] 'is_server', 'rpc_plugin', 'called_rpc_name', 'func', 'client']

View File

@ -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 from spdk.rpc.helpers import deprecated_alias

View File

@ -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): def env_dpdk_get_mem_stats(client):
"""Dump the applications memory stats to a file. """Dump the applications memory stats to a file.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2019 Intel Corporation.
# All rights reserved.
import sys import sys
deprecated_aliases = {} deprecated_aliases = {}

View File

@ -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 from spdk.rpc.helpers import deprecated_alias

View File

@ -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 from spdk.rpc.helpers import deprecated_alias

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def iscsi_set_options( def iscsi_set_options(
client, client,
auth_file=None, auth_file=None,

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def log_set_flag(client, flag): def log_set_flag(client, flag):
"""Set log flag. """Set log flag.

View File

@ -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, def bdev_lvol_create_lvstore(client, bdev_name, lvs_name, cluster_sz=None,
clear_method=None, num_md_pages_per_cluster_ratio=None): clear_method=None, num_md_pages_per_cluster_ratio=None):
"""Construct a logical volume store. """Construct a logical volume store.

View File

@ -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): def nbd_start_disk(client, bdev_name, nbd_device):
params = { params = {
'bdev_name': bdev_name 'bdev_name': bdev_name

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
def notify_get_types(client): def notify_get_types(client):
return client.call("notify_get_types") return client.call("notify_get_types")

View File

@ -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, def bdev_nvme_send_cmd(client, name, cmd_type, data_direction, cmdbuf,
data=None, metadata=None, data=None, metadata=None,
data_len=None, metadata_len=None, data_len=None, metadata_len=None,

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
from .cmd_parser import * from .cmd_parser import *

View File

@ -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): def bdev_pmem_create_pool(client, pmem_file, num_blocks, block_size):
"""Create pmem pool at specified path. """Create pmem pool at specified path.
Args: Args:

View File

@ -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): def sock_impl_get_options(client, impl_name=None):
"""Get parameters for the socket layer implementation. """Get parameters for the socket layer implementation.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
def framework_get_subsystems(client): def framework_get_subsystems(client):
return client.call('framework_get_subsystems') return client.call('framework_get_subsystems')

View File

@ -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): def trace_enable_tpoint_group(client, name):
"""Enable trace on a specific tpoint group. """Enable trace on a specific tpoint group.

View File

@ -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): def vfu_tgt_set_base_path(client, path):
"""Set socket base path. """Set socket base path.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
from .cmd_parser import * from .cmd_parser import *

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2019 Intel Corporation.
# All rights reserved.
from .helpers import deprecated_alias from .helpers import deprecated_alias

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import os import os
import sys import sys

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import uuid import uuid

View File

@ -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 DeviceException
from .device import DeviceManager from .device import DeviceManager
from .nvmf_tcp import NvmfTcpDeviceManager from .nvmf_tcp import NvmfTcpDeviceManager

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
from ..proto import sma_pb2 from ..proto import sma_pb2

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import grpc import grpc
import logging import logging
import uuid import uuid

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import logging import logging
import os import os
import shutil import shutil

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import logging import logging
import os import os
import uuid import uuid

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import grpc import grpc
from spdk.rpc.client import JSONRPCException from spdk.rpc.client import JSONRPCException

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
from concurrent import futures from concurrent import futures
from contextlib import contextmanager from contextlib import contextmanager
from multiprocessing import Lock from multiprocessing import Lock

View File

@ -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 VolumeException
from .volume import VolumeManager from .volume import VolumeManager
from .crypto import CryptoEngine from .crypto import CryptoEngine

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import grpc import grpc
import logging import logging

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import grpc import grpc
import logging import logging
import uuid import uuid

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
import grpc import grpc
import ipaddress import ipaddress
import logging import logging

View File

@ -1 +1,5 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
from .ui_root import UIRoot from .ui_root import UIRoot

View File

@ -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 configshell_fb import ConfigNode, ExecutionError
from uuid import UUID from uuid import UUID
from ..rpc.client import JSONRPCException from ..rpc.client import JSONRPCException

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
from configshell_fb import ExecutionError from configshell_fb import ExecutionError
from ..rpc.client import JSONRPCException from ..rpc.client import JSONRPCException
from .ui_node import UINode from .ui_node import UINode

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
from ..rpc.client import JSONRPCException from ..rpc.client import JSONRPCException
from .ui_node import UINode from .ui_node import UINode

View File

@ -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 import UINode, UIBdevs, UILvolStores, UIVhosts
from .ui_node_nvmf import UINVMf from .ui_node_nvmf import UINVMf
from .ui_node_iscsi import UIISCSI from .ui_node_iscsi import UIISCSI

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
import os import os
import re import re
import json import json

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2020 Intel Corporation.
# All rights reserved.
bdevperf=$rootdir/build/examples/bdevperf bdevperf=$rootdir/build/examples/bdevperf
function create_job() { function create_job() {

View File

@ -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 from spdk.rpc.client import print_json

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2021 Intel Corporation.
# All rights reserved.
testdir=$(readlink -f $(dirname $0)) testdir=$(readlink -f $(dirname $0))
rootdir=$(readlink -f $testdir/../..) rootdir=$(readlink -f $testdir/../..)
source $rootdir/test/common/autotest_common.sh source $rootdir/test/common/autotest_common.sh

View File

@ -1,4 +1,7 @@
#!/usr/bin/env bash #!/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]}")) curdir=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
rootdir=$(readlink -f $curdir/../../..) rootdir=$(readlink -f $curdir/../../..)

View File

@ -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 from spdk.rpc.client import print_json

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2021 Intel Corporation.
# All rights reserved.
check_cgroup() { check_cgroup() {
# Try to work with both, cgroup-v1 and cgroup-v2. Verify which version is # 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. # in use by looking up interfaces common for either of the versions.

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2020 Intel Corporation.
# All rights reserved.
# Select cores for the test # Select cores for the test
xtrace_disable xtrace_disable

View File

@ -1,4 +1,8 @@
#!/usr/bin/env perl #!/usr/bin/env perl
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2020 Intel Corporation.
# All rights reserved.
use strict; use strict;
use warnings; use warnings;

View File

@ -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 DeviceManager
from spdk.sma import CryptoEngine, get_crypto_engine from spdk.sma import CryptoEngine, get_crypto_engine
from spdk.sma.proto import sma_pb2 from spdk.sma.proto import sma_pb2

View File

@ -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 DeviceManager
from spdk.sma import CryptoEngine, get_crypto_engine from spdk.sma import CryptoEngine, get_crypto_engine
from spdk.sma.proto import sma_pb2 from spdk.sma.proto import sma_pb2

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
function clean_vfio_user() { function clean_vfio_user() {
trap - ERR trap - ERR
print_backtrace print_backtrace

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
function vfu_tgt_run() { function vfu_tgt_run() {
local vhost_name=$1 local vhost_name=$1
local vfio_user_dir vfu_pid_file rpc_py local vfio_user_dir vfu_pid_file rpc_py