mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
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/[email protected] Signed-off-by: Danil Kipnis <[email protected]> Signed-off-by: Jack Wang <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Acked-by: Jens Axboe <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
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";
|
|
}
|
|
}
|