Support Aio bdev 'readonly' option in RPC call. The read-only flag can be dumped from the bdev info. Any writes on a read-only aio bdev will be fail. Signed-off-by: Yuhua <yuhua@smartx.com> Change-Id: I939f72479f8953a3678a8df3083ecce0f96844fb Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14955 Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
20 lines
535 B
C
20 lines
535 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright (c) Intel Corporation.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef SPDK_BDEV_AIO_H
|
|
#define SPDK_BDEV_AIO_H
|
|
|
|
#include "spdk/stdinc.h"
|
|
#include "spdk/bdev.h"
|
|
|
|
typedef void (*delete_aio_bdev_complete)(void *cb_arg, int bdeverrno);
|
|
|
|
int create_aio_bdev(const char *name, const char *filename, uint32_t block_size, bool readonly);
|
|
|
|
int bdev_aio_rescan(const char *name);
|
|
void bdev_aio_delete(const char *name, delete_aio_bdev_complete cb_fn, void *cb_arg);
|
|
|
|
#endif /* SPDK_BDEV_AIO_H */
|