Merge remote-tracking branch 'spi/for-5.9' into spi-linus
[linux-2.6-microblaze.git] / drivers / block / rnbd / rnbd-common.c
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * RDMA Network Block Driver
4  *
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"
10
11 const char *rnbd_access_mode_str(enum rnbd_access_mode mode)
12 {
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";
22         }
23 }