mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
![Jack Wang](/assets/img/avatar_default.png)
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>
23 lines
554 B
C
23 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";
|
|
}
|
|
}
|