cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

rnbd-common.c (554B)


      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
     11const 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}