mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 09:34:12 +08:00
219ace6077
These are common private headers with rnbd protocol structures, logging, sysfs and other helper functions, which are used on both client and server sides. Link: https://lore.kernel.org/r/20200511135131.27580-16-danil.kipnis@cloud.ionos.com Signed-off-by: Danil Kipnis <danil.kipnis@cloud.ionos.com> Signed-off-by: Jack Wang <jinpu.wang@cloud.ionos.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Acked-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
24 lines
554 B
C
24 lines
554 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* RDMA Network Block Driver
|
|
*
|
|
* Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved.
|
|
* Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved.
|
|
* Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved.
|
|
*/
|
|
#include "rnbd-proto.h"
|
|
|
|
const char *rnbd_access_mode_str(enum rnbd_access_mode mode)
|
|
{
|
|
switch (mode) {
|
|
case RNBD_ACCESS_RO:
|
|
return "ro";
|
|
case RNBD_ACCESS_RW:
|
|
return "rw";
|
|
case RNBD_ACCESS_MIGRATION:
|
|
return "migration";
|
|
default:
|
|
return "unknown";
|
|
}
|
|
}
|