Motr  M0
ad_private.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2013-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 #pragma once
24 
25 #ifndef __MOTR_STOB_AD_PRIVATE_H__
26 #define __MOTR_STOB_AD_PRIVATE_H__
27 
28 #include "fid/fid.h" /* m0_fid */
29 #include "fid/fid_xc.h" /* m0_fid_xc */
30 #include "be/extmap.h" /* m0_be_emap_seg */
31 #include "be/extmap_xc.h"
32 #include "stob/stob.h" /* m0_stob_id */
33 #include "stob/stob_xc.h" /* m0_stob_id */
34 
35 struct m0_stob_domain;
36 struct m0_stob_ad_domain;
37 
40  /* XXX pointer won't work with be_segment migration */
43 } M0_XCA_RECORD M0_XCA_DOMAIN(be);
44 
46  uint32_t ps_segments;
48 } M0_XCA_SEQUENCE M0_XCA_DOMAIN(be);
49 
54 } M0_XCA_RECORD M0_XCA_DOMAIN(be);
55 
56 M0_INTERNAL struct m0_stob_ad_domain *
57 stob_ad_domain2ad(const struct m0_stob_domain *dom);
58 
61 
62  /* future versions, uncomment and update M0_STOB_AD_0TYPE_REC_FORMAT_VERSION */
63  /*M0_STOB_AD_0TYPE_REC_FORMAT_VERSION_2,*/
64  /*M0_STOB_AD_0TYPE_REC_FORMAT_VERSION_3,*/
65 
68 };
69 
70 /* __MOTR_STOB_AD_PRIVATE_H__ */
71 #endif
72 
73 /*
74  * Local variables:
75  * c-indentation-style: "K&R"
76  * c-basic-offset: 8
77  * tab-width: 8
78  * fill-column: 80
79  * scroll-step: 1
80  * End:
81  */
struct m0_be_emap_seg * ps_old_data
Definition: ad_private.h:47
struct m0_format_footer sa0_footer
Definition: ad_private.h:42
struct m0_fid arp_dom_id
Definition: ad_private.h:51
enum m0_stob_ad_0type_rec_format_version M0_XCA_DOMAIN
struct m0_format_header sa0_header
Definition: ad_private.h:39
m0_stob_ad_0type_rec_format_version
Definition: ad_private.h:59
static struct m0_stob_domain * dom
Definition: storage.c:38
M0_INTERNAL struct m0_stob_ad_domain * stob_ad_domain2ad(const struct m0_stob_domain *dom)
Definition: ad.c:166
struct m0_stob_id arp_stob_id
Definition: ad_private.h:52
struct m0_stob_ad_domain * sa0_ad_domain
Definition: ad_private.h:41
Definition: fid.h:38
uint32_t ps_segments
Definition: ad_private.h:46
struct stob_ad_rec_frag_seg arp_seg
Definition: ad_private.h:53
static struct m0_be_ut_backend be
Definition: service_ut.c:59