WIP FPC-III support
[linux/fpc-iii.git] / drivers / block / rnbd / rnbd-common.c
blob596c3f732403ef73b152916c12e1731d2b5764e9
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * RDMA Network Block Driver
5 * Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved.
6 * Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved.
7 * Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved.
8 */
9 #include "rnbd-proto.h"
11 const char *rnbd_access_mode_str(enum rnbd_access_mode mode)
13 switch (mode) {
14 case RNBD_ACCESS_RO:
15 return "ro";
16 case RNBD_ACCESS_RW:
17 return "rw";
18 case RNBD_ACCESS_MIGRATION:
19 return "migration";
20 default:
21 return "unknown";