1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 * Ceph - scalable distributed file system
6 * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com>
8 * Author: Loic Dachary <loic@dachary.org>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2.1 of the License, or (at your option) any later version.
16 #ifndef __CEPH_TYPES_H
17 #define __CEPH_TYPES_H
19 #include <include/types.h>
22 #define UINT8_MAX (255)
25 const shard_id_t shard_id_t::NO_SHARD(-1);
27 ostream &operator<<(ostream &lhs, const shard_id_t &rhs)
29 return lhs << (unsigned)(uint8_t)rhs.id;