]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*- |
2 | // vim: ts=8 sw=2 smarttab | |
3 | /* | |
4 | * Ceph - scalable distributed file system | |
5 | * | |
6 | * Copyright (C) 2014 Cloudwatt <libre.licensing@cloudwatt.com> | |
7 | * | |
8 | * Author: Loic Dachary <loic@dachary.org> | |
9 | * | |
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. | |
14 | * | |
15 | */ | |
16 | #ifndef __CEPH_TYPES_H | |
17 | #define __CEPH_TYPES_H | |
18 | ||
19 | #include <include/types.h> | |
20 | ||
21 | #ifndef UINT8_MAX | |
22 | #define UINT8_MAX (255) | |
23 | #endif | |
24 | ||
25 | const shard_id_t shard_id_t::NO_SHARD(-1); | |
26 | ||
27 | ostream &operator<<(ostream &lhs, const shard_id_t &rhs) | |
28 | { | |
29 | return lhs << (unsigned)(uint8_t)rhs.id; | |
30 | } | |
31 | ||
32 | #endif |