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
# 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

View File

@ -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.

View File

@ -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

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

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

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 os
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

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):
"""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,
small_buf_pool_size=None, large_buf_pool_size=None):
"""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):
"""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 socket
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',
'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

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):
"""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
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

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

View File

@ -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,

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):
"""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,
clear_method=None, num_md_pages_per_cluster_ratio=None):
"""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):
params = {
'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):
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,
data=None, metadata=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 *

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):
"""Create pmem pool at specified path.
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):
"""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):
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):
"""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):
"""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 *

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

View File

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

View File

@ -1,3 +1,7 @@
# SPDX-License-Identifier: BSD-3-Clause
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
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 DeviceManager
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

View File

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

View File

@ -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

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 contextlib import contextmanager
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 VolumeManager
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 logging

View File

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

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 uuid import UUID
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 ..rpc.client import JSONRPCException
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 .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_nvmf import UINVMf
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 re
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
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

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))
rootdir=$(readlink -f $testdir/../..)
source $rootdir/test/common/autotest_common.sh

View File

@ -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/../../..)

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

View File

@ -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.

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
xtrace_disable

View File

@ -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;

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 CryptoEngine, get_crypto_engine
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 CryptoEngine, get_crypto_engine
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() {
trap - ERR
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() {
local vhost_name=$1
local vfio_user_dir vfu_pid_file rpc_py