Motr  M0
md_fid.c
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2014-2020 Seagate Technology LLC and/or its Affiliates
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * For any questions about this software or licensing,
18  * please email opensource@seagate.com or cortx-questions@seagate.com.
19  *
20  */
21 
22 
23 #include "lib/errno.h" /* EINVAL */
24 #include "lib/misc.h" /* memcmp, strcmp */
25 #include "lib/string.h" /* sscanf */
26 #include "lib/assert.h" /* M0_PRE */
27 #include "fid/fid_xc.h"
28 #include "fid/fid.h"
29 
39 M0_INTERNAL const struct m0_fid M0_COB_ROOT_FID = {
40  .f_container = 1ULL,
41  .f_key = 1ULL
42 };
43 
44 M0_INTERNAL const char M0_COB_ROOT_NAME[] = "ROOT";
45 
46 M0_INTERNAL const struct m0_fid M0_DOT_MOTR_FID = {
47  .f_container = 1ULL,
48  .f_key = 4ULL
49 };
50 
51 M0_INTERNAL const char M0_DOT_MOTR_NAME[] = ".motr";
52 
53 M0_INTERNAL const struct m0_fid M0_DOT_MOTR_FID_FID = {
54  .f_container = 1ULL,
55  .f_key = 5ULL
56 };
57 
58 M0_INTERNAL const char M0_DOT_MOTR_FID_NAME[] = "fid";
59 
63 M0_INTERNAL const struct m0_fid M0_MDSERVICE_SLASH_FID = {
64  .f_container = 1ULL,
65  .f_key = (1ULL << 16) - 1
66 };
67 
68 M0_INTERNAL const struct m0_fid M0_MDSERVICE_START_FID = {
69  .f_container = 1ULL,
70  .f_key = (1ULL << 16)
71 };
72 
75 /*
76  * Local variables:
77  * c-indentation-style: "K&R"
78  * c-basic-offset: 8
79  * tab-width: 8
80  * fill-column: 80
81  * scroll-step: 1
82  * End:
83  */
M0_INTERNAL const char M0_DOT_MOTR_FID_NAME[]
Definition: md_fid.c:58
M0_INTERNAL const struct m0_fid M0_DOT_MOTR_FID_FID
Definition: md_fid.c:53
M0_INTERNAL const struct m0_fid M0_MDSERVICE_SLASH_FID
Definition: md_fid.c:63
M0_INTERNAL const char M0_DOT_MOTR_NAME[]
Definition: md_fid.c:51
uint64_t f_container
Definition: fid.h:39
M0_INTERNAL const struct m0_fid M0_DOT_MOTR_FID
Definition: md_fid.c:46
Definition: fid.h:38
M0_INTERNAL const struct m0_fid M0_MDSERVICE_START_FID
Definition: md_fid.c:68
M0_INTERNAL const char M0_COB_ROOT_NAME[]
Definition: md_fid.c:44
M0_INTERNAL const struct m0_fid M0_COB_ROOT_FID
Definition: md_fid.c:39