rpc: fix python style

A bunch of python files in rpc and scripts directories were missing two
blank lines after the opening comments. python3-pycodestyle-2.5.0-2.el8
was unhappy with this

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Iee7f2bd4f0ddd96b2be89949a3aa324b2f9ea43a
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16003
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Mike Gerdts 2022-12-17 11:28:29 -06:00 committed by Tomasz Zawadzki
parent 5dcb6e2426
commit 555ca7adc0
16 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def spdk_kill_instance(client, sig_name):
"""Send a signal to the SPDK process.

View File

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# Copyright (C) 2019 Intel Corporation.
# All rights reserved.
def blobfs_detect(client, bdev_name):
"""Detect whether a blobfs exists on bdev.

View File

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def iscsi_set_options(
client,
auth_file=None,

View File

@ -2,6 +2,7 @@
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def log_set_flag(client, flag):
"""Set log flag.

View File

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# Copyright (C) 2017 Intel Corporation.
# All rights reserved.
def nbd_start_disk(client, bdev_name, nbd_device):
params = {
'bdev_name': bdev_name

View File

@ -2,6 +2,7 @@
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
def notify_get_types(client):
return client.call("notify_get_types")

View File

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# 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

@ -2,6 +2,7 @@
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
def framework_get_subsystems(client):
return client.call('framework_get_subsystems')

View File

@ -2,6 +2,7 @@
# Copyright (C) 2018 Intel Corporation.
# All rights reserved.
def trace_enable_tpoint_group(client, name):
"""Enable trace on a specific tpoint group.

View File

@ -2,6 +2,7 @@
# Copyright (C) 2022 Intel Corporation.
# All rights reserved.
def vfu_tgt_set_base_path(client, path):
"""Set socket base path.

View File

@ -4,6 +4,7 @@
# All rights reserved.
#
from argparse import ArgumentParser
from dataclasses import dataclass, field
from itertools import islice