| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package regfile |
| 10 |
|
| 11 |
import ( |
| 12 |
fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown" |
| 13 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 14 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 15 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 16 |
reflect "reflect" |
| 17 |
sync "sync" |
| 18 |
) |
| 19 |
|
| 20 |
const ( |
| 21 |
|
| 22 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 23 |
|
| 24 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 25 |
) |
| 26 |
|
| 27 |
type RegFileEntry struct { |
| 28 |
state protoimpl.MessageState |
| 29 |
sizeCache protoimpl.SizeCache |
| 30 |
unknownFields protoimpl.UnknownFields |
| 31 |
|
| 32 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 33 |
Flags *uint32 `protobuf:"varint,2,req,name=flags" json:"flags,omitempty"` |
| 34 |
Pos *uint64 `protobuf:"varint,3,req,name=pos" json:"pos,omitempty"` |
| 35 |
Fown *fown.FownEntry `protobuf:"bytes,5,req,name=fown" json:"fown,omitempty"` |
| 36 |
Name *string `protobuf:"bytes,6,req,name=name" json:"name,omitempty"` |
| 37 |
MntId *int32 `protobuf:"zigzag32,7,opt,name=mnt_id,json=mntId,def=-1" json:"mnt_id,omitempty"` |
| 38 |
Size *uint64 `protobuf:"varint,8,opt,name=size" json:"size,omitempty"` |
| 39 |
Ext *bool `protobuf:"varint,9,opt,name=ext" json:"ext,omitempty"` |
| 40 |
Mode *uint32 `protobuf:"varint,10,opt,name=mode" json:"mode,omitempty"` |
| 41 |
|
| 42 |
BuildId []uint32 `protobuf:"varint,11,rep,name=build_id,json=buildId" json:"build_id,omitempty"` |
| 43 |
|
| 44 |
Checksum *uint32 `protobuf:"varint,12,opt,name=checksum" json:"checksum,omitempty"` |
| 45 |
|
| 46 |
|
| 47 |
ChecksumConfig *uint32 `protobuf:"varint,13,opt,name=checksum_config,json=checksumConfig" json:"checksum_config,omitempty"` |
| 48 |
|
| 49 |
|
| 50 |
ChecksumParameter *uint32 `protobuf:"varint,14,opt,name=checksum_parameter,json=checksumParameter" json:"checksum_parameter,omitempty"` |
| 51 |
} |
| 52 |
|
| 53 |
|
| 54 |
const ( |
| 55 |
Default_RegFileEntry_MntId = int32(-1) |
| 56 |
) |
| 57 |
|
| 58 |
func (x *RegFileEntry) Reset() { |
| 59 |
*x = RegFileEntry{} |
| 60 |
if protoimpl.UnsafeEnabled { |
| 61 |
mi := &file_regfile_proto_msgTypes[0] |
| 62 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 63 |
ms.StoreMessageInfo(mi) |
| 64 |
} |
| 65 |
} |
| 66 |
|
| 67 |
func (x *RegFileEntry) String() string { |
| 68 |
return protoimpl.X.MessageStringOf(x) |
| 69 |
} |
| 70 |
|
| 71 |
func (*RegFileEntry) ProtoMessage() {} |
| 72 |
|
| 73 |
func (x *RegFileEntry) ProtoReflect() protoreflect.Message { |
| 74 |
mi := &file_regfile_proto_msgTypes[0] |
| 75 |
if protoimpl.UnsafeEnabled && x != nil { |
| 76 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 77 |
if ms.LoadMessageInfo() == nil { |
| 78 |
ms.StoreMessageInfo(mi) |
| 79 |
} |
| 80 |
return ms |
| 81 |
} |
| 82 |
return mi.MessageOf(x) |
| 83 |
} |
| 84 |
|
| 85 |
|
| 86 |
func (*RegFileEntry) Descriptor() ([]byte, []int) { |
| 87 |
return file_regfile_proto_rawDescGZIP(), []int{0} |
| 88 |
} |
| 89 |
|
| 90 |
func (x *RegFileEntry) GetId() uint32 { |
| 91 |
if x != nil && x.Id != nil { |
| 92 |
return *x.Id |
| 93 |
} |
| 94 |
return 0 |
| 95 |
} |
| 96 |
|
| 97 |
func (x *RegFileEntry) GetFlags() uint32 { |
| 98 |
if x != nil && x.Flags != nil { |
| 99 |
return *x.Flags |
| 100 |
} |
| 101 |
return 0 |
| 102 |
} |
| 103 |
|
| 104 |
func (x *RegFileEntry) GetPos() uint64 { |
| 105 |
if x != nil && x.Pos != nil { |
| 106 |
return *x.Pos |
| 107 |
} |
| 108 |
return 0 |
| 109 |
} |
| 110 |
|
| 111 |
func (x *RegFileEntry) GetFown() *fown.FownEntry { |
| 112 |
if x != nil { |
| 113 |
return x.Fown |
| 114 |
} |
| 115 |
return nil |
| 116 |
} |
| 117 |
|
| 118 |
func (x *RegFileEntry) GetName() string { |
| 119 |
if x != nil && x.Name != nil { |
| 120 |
return *x.Name |
| 121 |
} |
| 122 |
return "" |
| 123 |
} |
| 124 |
|
| 125 |
func (x *RegFileEntry) GetMntId() int32 { |
| 126 |
if x != nil && x.MntId != nil { |
| 127 |
return *x.MntId |
| 128 |
} |
| 129 |
return Default_RegFileEntry_MntId |
| 130 |
} |
| 131 |
|
| 132 |
func (x *RegFileEntry) GetSize() uint64 { |
| 133 |
if x != nil && x.Size != nil { |
| 134 |
return *x.Size |
| 135 |
} |
| 136 |
return 0 |
| 137 |
} |
| 138 |
|
| 139 |
func (x *RegFileEntry) GetExt() bool { |
| 140 |
if x != nil && x.Ext != nil { |
| 141 |
return *x.Ext |
| 142 |
} |
| 143 |
return false |
| 144 |
} |
| 145 |
|
| 146 |
func (x *RegFileEntry) GetMode() uint32 { |
| 147 |
if x != nil && x.Mode != nil { |
| 148 |
return *x.Mode |
| 149 |
} |
| 150 |
return 0 |
| 151 |
} |
| 152 |
|
| 153 |
func (x *RegFileEntry) GetBuildId() []uint32 { |
| 154 |
if x != nil { |
| 155 |
return x.BuildId |
| 156 |
} |
| 157 |
return nil |
| 158 |
} |
| 159 |
|
| 160 |
func (x *RegFileEntry) GetChecksum() uint32 { |
| 161 |
if x != nil && x.Checksum != nil { |
| 162 |
return *x.Checksum |
| 163 |
} |
| 164 |
return 0 |
| 165 |
} |
| 166 |
|
| 167 |
func (x *RegFileEntry) GetChecksumConfig() uint32 { |
| 168 |
if x != nil && x.ChecksumConfig != nil { |
| 169 |
return *x.ChecksumConfig |
| 170 |
} |
| 171 |
return 0 |
| 172 |
} |
| 173 |
|
| 174 |
func (x *RegFileEntry) GetChecksumParameter() uint32 { |
| 175 |
if x != nil && x.ChecksumParameter != nil { |
| 176 |
return *x.ChecksumParameter |
| 177 |
} |
| 178 |
return 0 |
| 179 |
} |
| 180 |
|
| 181 |
var File_regfile_proto protoreflect.FileDescriptor |
| 182 |
|
| 183 |
var file_regfile_proto_rawDesc = []byte{ |
| 184 |
0x0a, 0x0d, 0x72, 0x65, 0x67, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, |
| 185 |
0x0a, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77, |
| 186 |
0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x02, 0x0a, 0x0e, 0x72, 0x65, 0x67, 0x5f, |
| 187 |
0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, |
| 188 |
0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x05, 0x66, 0x6c, |
| 189 |
0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x10, 0xd2, 0x3f, 0x0d, 0x1a, 0x0b, |
| 190 |
0x72, 0x66, 0x69, 0x6c, 0x65, 0x2e, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x66, 0x6c, 0x61, |
| 191 |
0x67, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x6f, 0x73, 0x18, 0x03, 0x20, 0x02, 0x28, 0x04, 0x52, |
| 192 |
0x03, 0x70, 0x6f, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x18, 0x05, 0x20, 0x02, |
| 193 |
0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, |
| 194 |
0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, |
| 195 |
0x02, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x06, 0x6d, 0x6e, 0x74, |
| 196 |
0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x02, 0x2d, 0x31, 0x52, 0x05, 0x6d, |
| 197 |
0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, |
| 198 |
0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x78, 0x74, 0x18, |
| 199 |
0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x65, 0x78, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f, |
| 200 |
0x64, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x19, |
| 201 |
0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0d, |
| 202 |
0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x68, 0x65, |
| 203 |
0x63, 0x6b, 0x73, 0x75, 0x6d, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x68, 0x65, |
| 204 |
0x63, 0x6b, 0x73, 0x75, 0x6d, 0x12, 0x27, 0x0a, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, |
| 205 |
0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, |
| 206 |
0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2d, |
| 207 |
0x0a, 0x12, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x75, 0x6d, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, |
| 208 |
0x65, 0x74, 0x65, 0x72, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x63, 0x68, 0x65, 0x63, |
| 209 |
0x6b, 0x73, 0x75, 0x6d, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, |
| 210 |
} |
| 211 |
|
| 212 |
var ( |
| 213 |
file_regfile_proto_rawDescOnce sync.Once |
| 214 |
file_regfile_proto_rawDescData = file_regfile_proto_rawDesc |
| 215 |
) |
| 216 |
|
| 217 |
func file_regfile_proto_rawDescGZIP() []byte { |
| 218 |
file_regfile_proto_rawDescOnce.Do(func() { |
| 219 |
file_regfile_proto_rawDescData = protoimpl.X.CompressGZIP(file_regfile_proto_rawDescData) |
| 220 |
}) |
| 221 |
return file_regfile_proto_rawDescData |
| 222 |
} |
| 223 |
|
| 224 |
var file_regfile_proto_msgTypes = make([]protoimpl.MessageInfo, 1) |
| 225 |
var file_regfile_proto_goTypes = []interface{}{ |
| 226 |
(*RegFileEntry)(nil), |
| 227 |
(*fown.FownEntry)(nil), |
| 228 |
} |
| 229 |
var file_regfile_proto_depIdxs = []int32{ |
| 230 |
1, |
| 231 |
1, |
| 232 |
1, |
| 233 |
1, |
| 234 |
1, |
| 235 |
0, |
| 236 |
} |
| 237 |
|
| 238 |
func init() { file_regfile_proto_init() } |
| 239 |
func file_regfile_proto_init() { |
| 240 |
if File_regfile_proto != nil { |
| 241 |
return |
| 242 |
} |
| 243 |
if !protoimpl.UnsafeEnabled { |
| 244 |
file_regfile_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 245 |
switch v := v.(*RegFileEntry); i { |
| 246 |
case 0: |
| 247 |
return &v.state |
| 248 |
case 1: |
| 249 |
return &v.sizeCache |
| 250 |
case 2: |
| 251 |
return &v.unknownFields |
| 252 |
default: |
| 253 |
return nil |
| 254 |
} |
| 255 |
} |
| 256 |
} |
| 257 |
type x struct{} |
| 258 |
out := protoimpl.TypeBuilder{ |
| 259 |
File: protoimpl.DescBuilder{ |
| 260 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 261 |
RawDescriptor: file_regfile_proto_rawDesc, |
| 262 |
NumEnums: 0, |
| 263 |
NumMessages: 1, |
| 264 |
NumExtensions: 0, |
| 265 |
NumServices: 0, |
| 266 |
}, |
| 267 |
GoTypes: file_regfile_proto_goTypes, |
| 268 |
DependencyIndexes: file_regfile_proto_depIdxs, |
| 269 |
MessageInfos: file_regfile_proto_msgTypes, |
| 270 |
}.Build() |
| 271 |
File_regfile_proto = out.File |
| 272 |
file_regfile_proto_rawDesc = nil |
| 273 |
file_regfile_proto_goTypes = nil |
| 274 |
file_regfile_proto_depIdxs = nil |
| 275 |
} |