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
33
struct
m0_md_lustre_fid
{
34
uint64_t
f_seq
;
35
uint32_t
f_oid
;
36
uint32_t
f_ver
;
37
};
38
39
struct
m0_md_lustre_logrec
{
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
;
60
struct
m0_md_lustre_fid
cr_tfid
;
61
struct
m0_md_lustre_fid
cr_pfid
;
62
char
cr_name
[0];
63
}
__attribute__
((packed));
64
65
enum
m0_md_lustre_logrec_type
{
66
RT_MARK
= 0,
67
RT_CREATE
= 1,
68
RT_MKDIR
= 2,
69
RT_HARDLINK
= 3,
70
RT_SOFTLINK
= 4,
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,
86
RT_LAST
87
};
88
89
#endif
m0_md_lustre_logrec::cr_tfid
struct m0_md_lustre_fid cr_tfid
Definition:
lustre.h:60
RT_SETATTR
Definition:
lustre.h:80
m0_md_lustre_fid::f_oid
uint32_t f_oid
Definition:
lustre.h:35
RT_EXT
Definition:
lustre.h:75
m0_md_lustre_logrec::cr_ctime
uint64_t cr_ctime
Definition:
lustre.h:48
m0_md_lustre_fid::f_seq
uint64_t f_seq
Definition:
lustre.h:34
__attribute__
enum m0_md_lustre_logrec_type __attribute__
Definition:
balloc.c:2745
RT_MKDIR
Definition:
lustre.h:68
m0_md_lustre_logrec::cr_sid
uint32_t cr_sid
Definition:
lustre.h:58
m0_md_lustre_logrec::cr_version
uint64_t cr_version
Definition:
lustre.h:52
RT_CLOSE
Definition:
lustre.h:77
RT_RENAME
Definition:
lustre.h:74
RT_IOCTL
Definition:
lustre.h:78
m0_md_lustre_logrec::cr_clnid
uint64_t cr_clnid
Definition:
lustre.h:59
m0_md_lustre_logrec::cr_nlink
uint32_t cr_nlink
Definition:
lustre.h:50
RT_HARDLINK
Definition:
lustre.h:69
RT_CREATE
Definition:
lustre.h:67
m0_md_lustre_logrec::cr_mtime
uint64_t cr_mtime
Definition:
lustre.h:49
m0_md_lustre_logrec_type
m0_md_lustre_logrec_type
Definition:
lustre.h:65
m0_md_lustre_logrec::cr_atime
uint64_t cr_atime
Definition:
lustre.h:47
m0_md_lustre_logrec::cr_valid
uint16_t cr_valid
Definition:
lustre.h:42
m0_md_lustre_logrec::cr_mode
uint32_t cr_mode
Definition:
lustre.h:43
m0_md_lustre_logrec::cr_type
uint8_t cr_type
Definition:
lustre.h:44
m0_md_lustre_fid
Definition:
lustre.h:33
RT_MARK
Definition:
lustre.h:66
m0_md_lustre_logrec::cr_namelen
uint16_t cr_namelen
Definition:
lustre.h:40
m0_md_lustre_fid::f_ver
uint32_t f_ver
Definition:
lustre.h:36
RT_ATIME
Definition:
lustre.h:85
m0_md_lustre_logrec::cr_uid
uint32_t cr_uid
Definition:
lustre.h:56
m0_md_lustre_logrec::cr_index
uint64_t cr_index
Definition:
lustre.h:45
m0_md_lustre_logrec::cr_rdev
uint32_t cr_rdev
Definition:
lustre.h:51
m0_md_lustre_logrec::cr_blocks
uint64_t cr_blocks
Definition:
lustre.h:54
RT_MKNOD
Definition:
lustre.h:71
m0_md_lustre_logrec::cr_pfid
struct m0_md_lustre_fid cr_pfid
Definition:
lustre.h:61
m0_md_lustre_logrec::cr_blksize
uint64_t cr_blksize
Definition:
lustre.h:55
m0_md_lustre_logrec
Definition:
lustre.h:39
RT_XATTR
Definition:
lustre.h:81
RT_UNLINK
Definition:
lustre.h:72
m0_md_lustre_logrec::cr_flags
uint16_t cr_flags
Definition:
lustre.h:41
RT_HSM
Definition:
lustre.h:82
RT_LAST
Definition:
lustre.h:86
RT_RMDIR
Definition:
lustre.h:73
m0_md_lustre_logrec::cr_name
char cr_name[0]
Definition:
lustre.h:62
m0_md_lustre_logrec::cr_gid
uint32_t cr_gid
Definition:
lustre.h:57
m0_md_lustre_logrec::cr_size
uint64_t cr_size
Definition:
lustre.h:53
m0_md_lustre_logrec::cr_time
uint64_t cr_time
Definition:
lustre.h:46
RT_SOFTLINK
Definition:
lustre.h:70
RT_CTIME
Definition:
lustre.h:84
RT_TRUNC
Definition:
lustre.h:79
RT_MTIME
Definition:
lustre.h:83
RT_OPEN
Definition:
lustre.h:76
mdservice
ut
lustre.h
Generated on Thu Apr 14 2022 14:02:57 for Motr by
1.8.14