Motr  M0
lustre.h
Go to the documentation of this file.
1 /* -*- C -*- */
2 /*
3  * Copyright (c) 2011-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_MDSERVICE_UT_LUSTRE_H__
26 #define __MOTR_MDSERVICE_UT_LUSTRE_H__
27 
34  uint64_t f_seq;
35  uint32_t f_oid;
36  uint32_t f_ver;
37 };
38 
40  uint16_t cr_namelen;
41  uint16_t cr_flags;
42  uint16_t cr_valid;
43  uint32_t cr_mode;
44  uint8_t cr_type;
45  uint64_t cr_index;
46  uint64_t cr_time;
47  uint64_t cr_atime;
48  uint64_t cr_ctime;
49  uint64_t cr_mtime;
50  uint32_t cr_nlink;
51  uint32_t cr_rdev;
52  uint64_t cr_version;
53  uint64_t cr_size;
54  uint64_t cr_blocks;
55  uint64_t cr_blksize;
56  uint32_t cr_uid;
57  uint32_t cr_gid;
58  uint32_t cr_sid;
59  uint64_t cr_clnid;
62  char cr_name[0];
63 } __attribute__((packed));
64 
66  RT_MARK = 0,
67  RT_CREATE = 1,
68  RT_MKDIR = 2,
71  RT_MKNOD = 5,
72  RT_UNLINK = 6,
73  RT_RMDIR = 7,
74  RT_RENAME = 8,
75  RT_EXT = 9,
76  RT_OPEN = 10,
77  RT_CLOSE = 11,
78  RT_IOCTL = 12,
79  RT_TRUNC = 13,
80  RT_SETATTR = 14,
81  RT_XATTR = 15,
82  RT_HSM = 16,
83  RT_MTIME = 17,
84  RT_CTIME = 18,
85  RT_ATIME = 19,
87 };
88 
89 #endif
struct m0_md_lustre_fid cr_tfid
Definition: lustre.h:60
uint32_t f_oid
Definition: lustre.h:35
Definition: lustre.h:75
uint64_t cr_ctime
Definition: lustre.h:48
uint64_t f_seq
Definition: lustre.h:34
enum m0_md_lustre_logrec_type __attribute__
Definition: balloc.c:2745
uint32_t cr_sid
Definition: lustre.h:58
uint64_t cr_version
Definition: lustre.h:52
uint64_t cr_clnid
Definition: lustre.h:59
uint32_t cr_nlink
Definition: lustre.h:50
uint64_t cr_mtime
Definition: lustre.h:49
m0_md_lustre_logrec_type
Definition: lustre.h:65
uint64_t cr_atime
Definition: lustre.h:47
uint16_t cr_valid
Definition: lustre.h:42
uint32_t cr_mode
Definition: lustre.h:43
uint8_t cr_type
Definition: lustre.h:44
Definition: lustre.h:66
uint16_t cr_namelen
Definition: lustre.h:40
uint32_t f_ver
Definition: lustre.h:36
uint32_t cr_uid
Definition: lustre.h:56
uint64_t cr_index
Definition: lustre.h:45
uint32_t cr_rdev
Definition: lustre.h:51
uint64_t cr_blocks
Definition: lustre.h:54
struct m0_md_lustre_fid cr_pfid
Definition: lustre.h:61
uint64_t cr_blksize
Definition: lustre.h:55
uint16_t cr_flags
Definition: lustre.h:41
Definition: lustre.h:82
Definition: lustre.h:86
char cr_name[0]
Definition: lustre.h:62
uint32_t cr_gid
Definition: lustre.h:57
uint64_t cr_size
Definition: lustre.h:53
uint64_t cr_time
Definition: lustre.h:46
Definition: lustre.h:76