| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
package fsnotify |
| 10 |
|
| 11 |
import ( |
| 12 |
fh "github.com/checkpoint-restore/go-criu/v7/crit/images/fh" |
| 13 |
fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown" |
| 14 |
_ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts" |
| 15 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 16 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 17 |
reflect "reflect" |
| 18 |
sync "sync" |
| 19 |
) |
| 20 |
|
| 21 |
const ( |
| 22 |
|
| 23 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 24 |
|
| 25 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 26 |
) |
| 27 |
|
| 28 |
type MarkType int32 |
| 29 |
|
| 30 |
const ( |
| 31 |
MarkType_INODE MarkType = 1 |
| 32 |
MarkType_MOUNT MarkType = 2 |
| 33 |
) |
| 34 |
|
| 35 |
|
| 36 |
var ( |
| 37 |
MarkType_name = map[int32]string{ |
| 38 |
1: "INODE", |
| 39 |
2: "MOUNT", |
| 40 |
} |
| 41 |
MarkType_value = map[string]int32{ |
| 42 |
"INODE": 1, |
| 43 |
"MOUNT": 2, |
| 44 |
} |
| 45 |
) |
| 46 |
|
| 47 |
func (x MarkType) Enum() *MarkType { |
| 48 |
p := new(MarkType) |
| 49 |
*p = x |
| 50 |
return p |
| 51 |
} |
| 52 |
|
| 53 |
func (x MarkType) String() string { |
| 54 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 55 |
} |
| 56 |
|
| 57 |
func (MarkType) Descriptor() protoreflect.EnumDescriptor { |
| 58 |
return file_fsnotify_proto_enumTypes[0].Descriptor() |
| 59 |
} |
| 60 |
|
| 61 |
func (MarkType) Type() protoreflect.EnumType { |
| 62 |
return &file_fsnotify_proto_enumTypes[0] |
| 63 |
} |
| 64 |
|
| 65 |
func (x MarkType) Number() protoreflect.EnumNumber { |
| 66 |
return protoreflect.EnumNumber(x) |
| 67 |
} |
| 68 |
|
| 69 |
|
| 70 |
func (x *MarkType) UnmarshalJSON(b []byte) error { |
| 71 |
num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) |
| 72 |
if err != nil { |
| 73 |
return err |
| 74 |
} |
| 75 |
*x = MarkType(num) |
| 76 |
return nil |
| 77 |
} |
| 78 |
|
| 79 |
|
| 80 |
func (MarkType) EnumDescriptor() ([]byte, []int) { |
| 81 |
return file_fsnotify_proto_rawDescGZIP(), []int{0} |
| 82 |
} |
| 83 |
|
| 84 |
type InotifyWdEntry struct { |
| 85 |
state protoimpl.MessageState |
| 86 |
sizeCache protoimpl.SizeCache |
| 87 |
unknownFields protoimpl.UnknownFields |
| 88 |
|
| 89 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 90 |
IIno *uint64 `protobuf:"varint,2,req,name=i_ino,json=iIno" json:"i_ino,omitempty"` |
| 91 |
Mask *uint32 `protobuf:"varint,3,req,name=mask" json:"mask,omitempty"` |
| 92 |
IgnoredMask *uint32 `protobuf:"varint,4,req,name=ignored_mask,json=ignoredMask" json:"ignored_mask,omitempty"` |
| 93 |
SDev *uint32 `protobuf:"varint,5,req,name=s_dev,json=sDev" json:"s_dev,omitempty"` |
| 94 |
Wd *uint32 `protobuf:"varint,6,req,name=wd" json:"wd,omitempty"` |
| 95 |
FHandle *fh.FhEntry `protobuf:"bytes,7,req,name=f_handle,json=fHandle" json:"f_handle,omitempty"` |
| 96 |
} |
| 97 |
|
| 98 |
func (x *InotifyWdEntry) Reset() { |
| 99 |
*x = InotifyWdEntry{} |
| 100 |
if protoimpl.UnsafeEnabled { |
| 101 |
mi := &file_fsnotify_proto_msgTypes[0] |
| 102 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 103 |
ms.StoreMessageInfo(mi) |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
func (x *InotifyWdEntry) String() string { |
| 108 |
return protoimpl.X.MessageStringOf(x) |
| 109 |
} |
| 110 |
|
| 111 |
func (*InotifyWdEntry) ProtoMessage() {} |
| 112 |
|
| 113 |
func (x *InotifyWdEntry) ProtoReflect() protoreflect.Message { |
| 114 |
mi := &file_fsnotify_proto_msgTypes[0] |
| 115 |
if protoimpl.UnsafeEnabled && x != nil { |
| 116 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 117 |
if ms.LoadMessageInfo() == nil { |
| 118 |
ms.StoreMessageInfo(mi) |
| 119 |
} |
| 120 |
return ms |
| 121 |
} |
| 122 |
return mi.MessageOf(x) |
| 123 |
} |
| 124 |
|
| 125 |
|
| 126 |
func (*InotifyWdEntry) Descriptor() ([]byte, []int) { |
| 127 |
return file_fsnotify_proto_rawDescGZIP(), []int{0} |
| 128 |
} |
| 129 |
|
| 130 |
func (x *InotifyWdEntry) GetId() uint32 { |
| 131 |
if x != nil && x.Id != nil { |
| 132 |
return *x.Id |
| 133 |
} |
| 134 |
return 0 |
| 135 |
} |
| 136 |
|
| 137 |
func (x *InotifyWdEntry) GetIIno() uint64 { |
| 138 |
if x != nil && x.IIno != nil { |
| 139 |
return *x.IIno |
| 140 |
} |
| 141 |
return 0 |
| 142 |
} |
| 143 |
|
| 144 |
func (x *InotifyWdEntry) GetMask() uint32 { |
| 145 |
if x != nil && x.Mask != nil { |
| 146 |
return *x.Mask |
| 147 |
} |
| 148 |
return 0 |
| 149 |
} |
| 150 |
|
| 151 |
func (x *InotifyWdEntry) GetIgnoredMask() uint32 { |
| 152 |
if x != nil && x.IgnoredMask != nil { |
| 153 |
return *x.IgnoredMask |
| 154 |
} |
| 155 |
return 0 |
| 156 |
} |
| 157 |
|
| 158 |
func (x *InotifyWdEntry) GetSDev() uint32 { |
| 159 |
if x != nil && x.SDev != nil { |
| 160 |
return *x.SDev |
| 161 |
} |
| 162 |
return 0 |
| 163 |
} |
| 164 |
|
| 165 |
func (x *InotifyWdEntry) GetWd() uint32 { |
| 166 |
if x != nil && x.Wd != nil { |
| 167 |
return *x.Wd |
| 168 |
} |
| 169 |
return 0 |
| 170 |
} |
| 171 |
|
| 172 |
func (x *InotifyWdEntry) GetFHandle() *fh.FhEntry { |
| 173 |
if x != nil { |
| 174 |
return x.FHandle |
| 175 |
} |
| 176 |
return nil |
| 177 |
} |
| 178 |
|
| 179 |
type InotifyFileEntry struct { |
| 180 |
state protoimpl.MessageState |
| 181 |
sizeCache protoimpl.SizeCache |
| 182 |
unknownFields protoimpl.UnknownFields |
| 183 |
|
| 184 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 185 |
Flags *uint32 `protobuf:"varint,2,req,name=flags" json:"flags,omitempty"` |
| 186 |
Fown *fown.FownEntry `protobuf:"bytes,4,req,name=fown" json:"fown,omitempty"` |
| 187 |
Wd []*InotifyWdEntry `protobuf:"bytes,5,rep,name=wd" json:"wd,omitempty"` |
| 188 |
} |
| 189 |
|
| 190 |
func (x *InotifyFileEntry) Reset() { |
| 191 |
*x = InotifyFileEntry{} |
| 192 |
if protoimpl.UnsafeEnabled { |
| 193 |
mi := &file_fsnotify_proto_msgTypes[1] |
| 194 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 195 |
ms.StoreMessageInfo(mi) |
| 196 |
} |
| 197 |
} |
| 198 |
|
| 199 |
func (x *InotifyFileEntry) String() string { |
| 200 |
return protoimpl.X.MessageStringOf(x) |
| 201 |
} |
| 202 |
|
| 203 |
func (*InotifyFileEntry) ProtoMessage() {} |
| 204 |
|
| 205 |
func (x *InotifyFileEntry) ProtoReflect() protoreflect.Message { |
| 206 |
mi := &file_fsnotify_proto_msgTypes[1] |
| 207 |
if protoimpl.UnsafeEnabled && x != nil { |
| 208 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 209 |
if ms.LoadMessageInfo() == nil { |
| 210 |
ms.StoreMessageInfo(mi) |
| 211 |
} |
| 212 |
return ms |
| 213 |
} |
| 214 |
return mi.MessageOf(x) |
| 215 |
} |
| 216 |
|
| 217 |
|
| 218 |
func (*InotifyFileEntry) Descriptor() ([]byte, []int) { |
| 219 |
return file_fsnotify_proto_rawDescGZIP(), []int{1} |
| 220 |
} |
| 221 |
|
| 222 |
func (x *InotifyFileEntry) GetId() uint32 { |
| 223 |
if x != nil && x.Id != nil { |
| 224 |
return *x.Id |
| 225 |
} |
| 226 |
return 0 |
| 227 |
} |
| 228 |
|
| 229 |
func (x *InotifyFileEntry) GetFlags() uint32 { |
| 230 |
if x != nil && x.Flags != nil { |
| 231 |
return *x.Flags |
| 232 |
} |
| 233 |
return 0 |
| 234 |
} |
| 235 |
|
| 236 |
func (x *InotifyFileEntry) GetFown() *fown.FownEntry { |
| 237 |
if x != nil { |
| 238 |
return x.Fown |
| 239 |
} |
| 240 |
return nil |
| 241 |
} |
| 242 |
|
| 243 |
func (x *InotifyFileEntry) GetWd() []*InotifyWdEntry { |
| 244 |
if x != nil { |
| 245 |
return x.Wd |
| 246 |
} |
| 247 |
return nil |
| 248 |
} |
| 249 |
|
| 250 |
type FanotifyInodeMarkEntry struct { |
| 251 |
state protoimpl.MessageState |
| 252 |
sizeCache protoimpl.SizeCache |
| 253 |
unknownFields protoimpl.UnknownFields |
| 254 |
|
| 255 |
IIno *uint64 `protobuf:"varint,1,req,name=i_ino,json=iIno" json:"i_ino,omitempty"` |
| 256 |
FHandle *fh.FhEntry `protobuf:"bytes,2,req,name=f_handle,json=fHandle" json:"f_handle,omitempty"` |
| 257 |
} |
| 258 |
|
| 259 |
func (x *FanotifyInodeMarkEntry) Reset() { |
| 260 |
*x = FanotifyInodeMarkEntry{} |
| 261 |
if protoimpl.UnsafeEnabled { |
| 262 |
mi := &file_fsnotify_proto_msgTypes[2] |
| 263 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 264 |
ms.StoreMessageInfo(mi) |
| 265 |
} |
| 266 |
} |
| 267 |
|
| 268 |
func (x *FanotifyInodeMarkEntry) String() string { |
| 269 |
return protoimpl.X.MessageStringOf(x) |
| 270 |
} |
| 271 |
|
| 272 |
func (*FanotifyInodeMarkEntry) ProtoMessage() {} |
| 273 |
|
| 274 |
func (x *FanotifyInodeMarkEntry) ProtoReflect() protoreflect.Message { |
| 275 |
mi := &file_fsnotify_proto_msgTypes[2] |
| 276 |
if protoimpl.UnsafeEnabled && x != nil { |
| 277 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 278 |
if ms.LoadMessageInfo() == nil { |
| 279 |
ms.StoreMessageInfo(mi) |
| 280 |
} |
| 281 |
return ms |
| 282 |
} |
| 283 |
return mi.MessageOf(x) |
| 284 |
} |
| 285 |
|
| 286 |
|
| 287 |
func (*FanotifyInodeMarkEntry) Descriptor() ([]byte, []int) { |
| 288 |
return file_fsnotify_proto_rawDescGZIP(), []int{2} |
| 289 |
} |
| 290 |
|
| 291 |
func (x *FanotifyInodeMarkEntry) GetIIno() uint64 { |
| 292 |
if x != nil && x.IIno != nil { |
| 293 |
return *x.IIno |
| 294 |
} |
| 295 |
return 0 |
| 296 |
} |
| 297 |
|
| 298 |
func (x *FanotifyInodeMarkEntry) GetFHandle() *fh.FhEntry { |
| 299 |
if x != nil { |
| 300 |
return x.FHandle |
| 301 |
} |
| 302 |
return nil |
| 303 |
} |
| 304 |
|
| 305 |
type FanotifyMountMarkEntry struct { |
| 306 |
state protoimpl.MessageState |
| 307 |
sizeCache protoimpl.SizeCache |
| 308 |
unknownFields protoimpl.UnknownFields |
| 309 |
|
| 310 |
MntId *uint32 `protobuf:"varint,1,req,name=mnt_id,json=mntId" json:"mnt_id,omitempty"` |
| 311 |
Path *string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"` |
| 312 |
} |
| 313 |
|
| 314 |
func (x *FanotifyMountMarkEntry) Reset() { |
| 315 |
*x = FanotifyMountMarkEntry{} |
| 316 |
if protoimpl.UnsafeEnabled { |
| 317 |
mi := &file_fsnotify_proto_msgTypes[3] |
| 318 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 319 |
ms.StoreMessageInfo(mi) |
| 320 |
} |
| 321 |
} |
| 322 |
|
| 323 |
func (x *FanotifyMountMarkEntry) String() string { |
| 324 |
return protoimpl.X.MessageStringOf(x) |
| 325 |
} |
| 326 |
|
| 327 |
func (*FanotifyMountMarkEntry) ProtoMessage() {} |
| 328 |
|
| 329 |
func (x *FanotifyMountMarkEntry) ProtoReflect() protoreflect.Message { |
| 330 |
mi := &file_fsnotify_proto_msgTypes[3] |
| 331 |
if protoimpl.UnsafeEnabled && x != nil { |
| 332 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 333 |
if ms.LoadMessageInfo() == nil { |
| 334 |
ms.StoreMessageInfo(mi) |
| 335 |
} |
| 336 |
return ms |
| 337 |
} |
| 338 |
return mi.MessageOf(x) |
| 339 |
} |
| 340 |
|
| 341 |
|
| 342 |
func (*FanotifyMountMarkEntry) Descriptor() ([]byte, []int) { |
| 343 |
return file_fsnotify_proto_rawDescGZIP(), []int{3} |
| 344 |
} |
| 345 |
|
| 346 |
func (x *FanotifyMountMarkEntry) GetMntId() uint32 { |
| 347 |
if x != nil && x.MntId != nil { |
| 348 |
return *x.MntId |
| 349 |
} |
| 350 |
return 0 |
| 351 |
} |
| 352 |
|
| 353 |
func (x *FanotifyMountMarkEntry) GetPath() string { |
| 354 |
if x != nil && x.Path != nil { |
| 355 |
return *x.Path |
| 356 |
} |
| 357 |
return "" |
| 358 |
} |
| 359 |
|
| 360 |
type FanotifyMarkEntry struct { |
| 361 |
state protoimpl.MessageState |
| 362 |
sizeCache protoimpl.SizeCache |
| 363 |
unknownFields protoimpl.UnknownFields |
| 364 |
|
| 365 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 366 |
Type *MarkType `protobuf:"varint,2,req,name=type,enum=MarkType" json:"type,omitempty"` |
| 367 |
Mflags *uint32 `protobuf:"varint,3,req,name=mflags" json:"mflags,omitempty"` |
| 368 |
Mask *uint32 `protobuf:"varint,4,req,name=mask" json:"mask,omitempty"` |
| 369 |
IgnoredMask *uint32 `protobuf:"varint,5,req,name=ignored_mask,json=ignoredMask" json:"ignored_mask,omitempty"` |
| 370 |
SDev *uint32 `protobuf:"varint,6,req,name=s_dev,json=sDev" json:"s_dev,omitempty"` |
| 371 |
Ie *FanotifyInodeMarkEntry `protobuf:"bytes,7,opt,name=ie" json:"ie,omitempty"` |
| 372 |
Me *FanotifyMountMarkEntry `protobuf:"bytes,8,opt,name=me" json:"me,omitempty"` |
| 373 |
} |
| 374 |
|
| 375 |
func (x *FanotifyMarkEntry) Reset() { |
| 376 |
*x = FanotifyMarkEntry{} |
| 377 |
if protoimpl.UnsafeEnabled { |
| 378 |
mi := &file_fsnotify_proto_msgTypes[4] |
| 379 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 380 |
ms.StoreMessageInfo(mi) |
| 381 |
} |
| 382 |
} |
| 383 |
|
| 384 |
func (x *FanotifyMarkEntry) String() string { |
| 385 |
return protoimpl.X.MessageStringOf(x) |
| 386 |
} |
| 387 |
|
| 388 |
func (*FanotifyMarkEntry) ProtoMessage() {} |
| 389 |
|
| 390 |
func (x *FanotifyMarkEntry) ProtoReflect() protoreflect.Message { |
| 391 |
mi := &file_fsnotify_proto_msgTypes[4] |
| 392 |
if protoimpl.UnsafeEnabled && x != nil { |
| 393 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 394 |
if ms.LoadMessageInfo() == nil { |
| 395 |
ms.StoreMessageInfo(mi) |
| 396 |
} |
| 397 |
return ms |
| 398 |
} |
| 399 |
return mi.MessageOf(x) |
| 400 |
} |
| 401 |
|
| 402 |
|
| 403 |
func (*FanotifyMarkEntry) Descriptor() ([]byte, []int) { |
| 404 |
return file_fsnotify_proto_rawDescGZIP(), []int{4} |
| 405 |
} |
| 406 |
|
| 407 |
func (x *FanotifyMarkEntry) GetId() uint32 { |
| 408 |
if x != nil && x.Id != nil { |
| 409 |
return *x.Id |
| 410 |
} |
| 411 |
return 0 |
| 412 |
} |
| 413 |
|
| 414 |
func (x *FanotifyMarkEntry) GetType() MarkType { |
| 415 |
if x != nil && x.Type != nil { |
| 416 |
return *x.Type |
| 417 |
} |
| 418 |
return MarkType_INODE |
| 419 |
} |
| 420 |
|
| 421 |
func (x *FanotifyMarkEntry) GetMflags() uint32 { |
| 422 |
if x != nil && x.Mflags != nil { |
| 423 |
return *x.Mflags |
| 424 |
} |
| 425 |
return 0 |
| 426 |
} |
| 427 |
|
| 428 |
func (x *FanotifyMarkEntry) GetMask() uint32 { |
| 429 |
if x != nil && x.Mask != nil { |
| 430 |
return *x.Mask |
| 431 |
} |
| 432 |
return 0 |
| 433 |
} |
| 434 |
|
| 435 |
func (x *FanotifyMarkEntry) GetIgnoredMask() uint32 { |
| 436 |
if x != nil && x.IgnoredMask != nil { |
| 437 |
return *x.IgnoredMask |
| 438 |
} |
| 439 |
return 0 |
| 440 |
} |
| 441 |
|
| 442 |
func (x *FanotifyMarkEntry) GetSDev() uint32 { |
| 443 |
if x != nil && x.SDev != nil { |
| 444 |
return *x.SDev |
| 445 |
} |
| 446 |
return 0 |
| 447 |
} |
| 448 |
|
| 449 |
func (x *FanotifyMarkEntry) GetIe() *FanotifyInodeMarkEntry { |
| 450 |
if x != nil { |
| 451 |
return x.Ie |
| 452 |
} |
| 453 |
return nil |
| 454 |
} |
| 455 |
|
| 456 |
func (x *FanotifyMarkEntry) GetMe() *FanotifyMountMarkEntry { |
| 457 |
if x != nil { |
| 458 |
return x.Me |
| 459 |
} |
| 460 |
return nil |
| 461 |
} |
| 462 |
|
| 463 |
type FanotifyFileEntry struct { |
| 464 |
state protoimpl.MessageState |
| 465 |
sizeCache protoimpl.SizeCache |
| 466 |
unknownFields protoimpl.UnknownFields |
| 467 |
|
| 468 |
Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"` |
| 469 |
Flags *uint32 `protobuf:"varint,2,req,name=flags" json:"flags,omitempty"` |
| 470 |
Fown *fown.FownEntry `protobuf:"bytes,3,req,name=fown" json:"fown,omitempty"` |
| 471 |
Faflags *uint32 `protobuf:"varint,4,req,name=faflags" json:"faflags,omitempty"` |
| 472 |
Evflags *uint32 `protobuf:"varint,5,req,name=evflags" json:"evflags,omitempty"` |
| 473 |
Mark []*FanotifyMarkEntry `protobuf:"bytes,6,rep,name=mark" json:"mark,omitempty"` |
| 474 |
} |
| 475 |
|
| 476 |
func (x *FanotifyFileEntry) Reset() { |
| 477 |
*x = FanotifyFileEntry{} |
| 478 |
if protoimpl.UnsafeEnabled { |
| 479 |
mi := &file_fsnotify_proto_msgTypes[5] |
| 480 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 481 |
ms.StoreMessageInfo(mi) |
| 482 |
} |
| 483 |
} |
| 484 |
|
| 485 |
func (x *FanotifyFileEntry) String() string { |
| 486 |
return protoimpl.X.MessageStringOf(x) |
| 487 |
} |
| 488 |
|
| 489 |
func (*FanotifyFileEntry) ProtoMessage() {} |
| 490 |
|
| 491 |
func (x *FanotifyFileEntry) ProtoReflect() protoreflect.Message { |
| 492 |
mi := &file_fsnotify_proto_msgTypes[5] |
| 493 |
if protoimpl.UnsafeEnabled && x != nil { |
| 494 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 495 |
if ms.LoadMessageInfo() == nil { |
| 496 |
ms.StoreMessageInfo(mi) |
| 497 |
} |
| 498 |
return ms |
| 499 |
} |
| 500 |
return mi.MessageOf(x) |
| 501 |
} |
| 502 |
|
| 503 |
|
| 504 |
func (*FanotifyFileEntry) Descriptor() ([]byte, []int) { |
| 505 |
return file_fsnotify_proto_rawDescGZIP(), []int{5} |
| 506 |
} |
| 507 |
|
| 508 |
func (x *FanotifyFileEntry) GetId() uint32 { |
| 509 |
if x != nil && x.Id != nil { |
| 510 |
return *x.Id |
| 511 |
} |
| 512 |
return 0 |
| 513 |
} |
| 514 |
|
| 515 |
func (x *FanotifyFileEntry) GetFlags() uint32 { |
| 516 |
if x != nil && x.Flags != nil { |
| 517 |
return *x.Flags |
| 518 |
} |
| 519 |
return 0 |
| 520 |
} |
| 521 |
|
| 522 |
func (x *FanotifyFileEntry) GetFown() *fown.FownEntry { |
| 523 |
if x != nil { |
| 524 |
return x.Fown |
| 525 |
} |
| 526 |
return nil |
| 527 |
} |
| 528 |
|
| 529 |
func (x *FanotifyFileEntry) GetFaflags() uint32 { |
| 530 |
if x != nil && x.Faflags != nil { |
| 531 |
return *x.Faflags |
| 532 |
} |
| 533 |
return 0 |
| 534 |
} |
| 535 |
|
| 536 |
func (x *FanotifyFileEntry) GetEvflags() uint32 { |
| 537 |
if x != nil && x.Evflags != nil { |
| 538 |
return *x.Evflags |
| 539 |
} |
| 540 |
return 0 |
| 541 |
} |
| 542 |
|
| 543 |
func (x *FanotifyFileEntry) GetMark() []*FanotifyMarkEntry { |
| 544 |
if x != nil { |
| 545 |
return x.Mark |
| 546 |
} |
| 547 |
return nil |
| 548 |
} |
| 549 |
|
| 550 |
var File_fsnotify_proto protoreflect.FileDescriptor |
| 551 |
|
| 552 |
var file_fsnotify_proto_rawDesc = []byte{ |
| 553 |
0x0a, 0x0e, 0x66, 0x73, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 554 |
0x1a, 0x0a, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x08, 0x66, 0x68, |
| 555 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77, 0x6e, 0x2e, 0x70, 0x72, 0x6f, |
| 556 |
0x74, 0x6f, 0x22, 0xce, 0x01, 0x0a, 0x10, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x77, |
| 557 |
0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, |
| 558 |
0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x5f, 0x69, 0x6e, 0x6f, |
| 559 |
0x18, 0x02, 0x20, 0x02, 0x28, 0x04, 0x52, 0x04, 0x69, 0x49, 0x6e, 0x6f, 0x12, 0x19, 0x0a, 0x04, |
| 560 |
0x6d, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, |
| 561 |
0x01, 0x52, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x0a, 0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, |
| 562 |
0x65, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, |
| 563 |
0x3f, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x4d, 0x61, 0x73, |
| 564 |
0x6b, 0x12, 0x1a, 0x0a, 0x05, 0x73, 0x5f, 0x64, 0x65, 0x76, 0x18, 0x05, 0x20, 0x02, 0x28, 0x0d, |
| 565 |
0x42, 0x05, 0xd2, 0x3f, 0x02, 0x20, 0x01, 0x52, 0x04, 0x73, 0x44, 0x65, 0x76, 0x12, 0x0e, 0x0a, |
| 566 |
0x02, 0x77, 0x64, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x77, 0x64, 0x12, 0x24, 0x0a, |
| 567 |
0x08, 0x66, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x02, 0x28, 0x0b, 0x32, |
| 568 |
0x09, 0x2e, 0x66, 0x68, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x66, 0x48, 0x61, 0x6e, |
| 569 |
0x64, 0x6c, 0x65, 0x22, 0x85, 0x01, 0x0a, 0x12, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, |
| 570 |
0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, |
| 571 |
0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x05, 0x66, 0x6c, |
| 572 |
0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, |
| 573 |
0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x18, |
| 574 |
0x04, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77, 0x6e, 0x5f, 0x65, 0x6e, 0x74, |
| 575 |
0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x21, 0x0a, 0x02, 0x77, 0x64, 0x18, 0x05, |
| 576 |
0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x77, |
| 577 |
0x64, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x02, 0x77, 0x64, 0x22, 0x56, 0x0a, 0x19, 0x66, |
| 578 |
0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x69, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6d, 0x61, |
| 579 |
0x72, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x13, 0x0a, 0x05, 0x69, 0x5f, 0x69, 0x6e, |
| 580 |
0x6f, 0x18, 0x01, 0x20, 0x02, 0x28, 0x04, 0x52, 0x04, 0x69, 0x49, 0x6e, 0x6f, 0x12, 0x24, 0x0a, |
| 581 |
0x08, 0x66, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0b, 0x32, |
| 582 |
0x09, 0x2e, 0x66, 0x68, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x66, 0x48, 0x61, 0x6e, |
| 583 |
0x64, 0x6c, 0x65, 0x22, 0x46, 0x0a, 0x19, 0x66, 0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, |
| 584 |
0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, |
| 585 |
0x12, 0x15, 0x0a, 0x06, 0x6d, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, |
| 586 |
0x52, 0x05, 0x6d, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, |
| 587 |
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x9d, 0x02, 0x0a, 0x13, |
| 588 |
0x66, 0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x65, 0x6e, |
| 589 |
0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 590 |
0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x02, 0x28, |
| 591 |
0x0e, 0x32, 0x0a, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, |
| 592 |
0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x06, 0x6d, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x03, 0x20, |
| 593 |
0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x06, 0x6d, 0x66, 0x6c, 0x61, |
| 594 |
0x67, 0x73, 0x12, 0x19, 0x0a, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x02, 0x28, 0x0d, |
| 595 |
0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x04, 0x6d, 0x61, 0x73, 0x6b, 0x12, 0x28, 0x0a, |
| 596 |
0x0c, 0x69, 0x67, 0x6e, 0x6f, 0x72, 0x65, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, |
| 597 |
0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x0b, 0x69, 0x67, 0x6e, 0x6f, |
| 598 |
0x72, 0x65, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x1a, 0x0a, 0x05, 0x73, 0x5f, 0x64, 0x65, 0x76, |
| 599 |
0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x20, 0x01, 0x52, 0x04, 0x73, |
| 600 |
0x44, 0x65, 0x76, 0x12, 0x2a, 0x0a, 0x02, 0x69, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, |
| 601 |
0x1a, 0x2e, 0x66, 0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x69, 0x6e, 0x6f, 0x64, 0x65, |
| 602 |
0x5f, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x02, 0x69, 0x65, 0x12, |
| 603 |
0x2a, 0x0a, 0x02, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x66, 0x61, |
| 604 |
0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x61, 0x72, |
| 605 |
0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x02, 0x6d, 0x65, 0x22, 0xcf, 0x01, 0x0a, 0x13, |
| 606 |
0x66, 0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x65, 0x6e, |
| 607 |
0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, |
| 608 |
0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x02, |
| 609 |
0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, |
| 610 |
0x12, 0x1f, 0x0a, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, |
| 611 |
0x2e, 0x66, 0x6f, 0x77, 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, |
| 612 |
0x6e, 0x12, 0x1f, 0x0a, 0x07, 0x66, 0x61, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x04, 0x20, 0x02, |
| 613 |
0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x07, 0x66, 0x61, 0x66, 0x6c, 0x61, |
| 614 |
0x67, 0x73, 0x12, 0x1f, 0x0a, 0x07, 0x65, 0x76, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, |
| 615 |
0x02, 0x28, 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x07, 0x65, 0x76, 0x66, 0x6c, |
| 616 |
0x61, 0x67, 0x73, 0x12, 0x28, 0x0a, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x18, 0x06, 0x20, 0x03, 0x28, |
| 617 |
0x0b, 0x32, 0x14, 0x2e, 0x66, 0x61, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x6d, 0x61, 0x72, |
| 618 |
0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x61, 0x72, 0x6b, 0x2a, 0x21, 0x0a, |
| 619 |
0x09, 0x6d, 0x61, 0x72, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, |
| 620 |
0x4f, 0x44, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4d, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x02, |
| 621 |
} |
| 622 |
|
| 623 |
var ( |
| 624 |
file_fsnotify_proto_rawDescOnce sync.Once |
| 625 |
file_fsnotify_proto_rawDescData = file_fsnotify_proto_rawDesc |
| 626 |
) |
| 627 |
|
| 628 |
func file_fsnotify_proto_rawDescGZIP() []byte { |
| 629 |
file_fsnotify_proto_rawDescOnce.Do(func() { |
| 630 |
file_fsnotify_proto_rawDescData = protoimpl.X.CompressGZIP(file_fsnotify_proto_rawDescData) |
| 631 |
}) |
| 632 |
return file_fsnotify_proto_rawDescData |
| 633 |
} |
| 634 |
|
| 635 |
var file_fsnotify_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 636 |
var file_fsnotify_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 637 |
var file_fsnotify_proto_goTypes = []interface{}{ |
| 638 |
(MarkType)(0), |
| 639 |
(*InotifyWdEntry)(nil), |
| 640 |
(*InotifyFileEntry)(nil), |
| 641 |
(*FanotifyInodeMarkEntry)(nil), |
| 642 |
(*FanotifyMountMarkEntry)(nil), |
| 643 |
(*FanotifyMarkEntry)(nil), |
| 644 |
(*FanotifyFileEntry)(nil), |
| 645 |
(*fh.FhEntry)(nil), |
| 646 |
(*fown.FownEntry)(nil), |
| 647 |
} |
| 648 |
var file_fsnotify_proto_depIdxs = []int32{ |
| 649 |
7, |
| 650 |
8, |
| 651 |
1, |
| 652 |
7, |
| 653 |
0, |
| 654 |
3, |
| 655 |
4, |
| 656 |
8, |
| 657 |
5, |
| 658 |
9, |
| 659 |
9, |
| 660 |
9, |
| 661 |
9, |
| 662 |
0, |
| 663 |
} |
| 664 |
|
| 665 |
func init() { file_fsnotify_proto_init() } |
| 666 |
func file_fsnotify_proto_init() { |
| 667 |
if File_fsnotify_proto != nil { |
| 668 |
return |
| 669 |
} |
| 670 |
if !protoimpl.UnsafeEnabled { |
| 671 |
file_fsnotify_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 672 |
switch v := v.(*InotifyWdEntry); i { |
| 673 |
case 0: |
| 674 |
return &v.state |
| 675 |
case 1: |
| 676 |
return &v.sizeCache |
| 677 |
case 2: |
| 678 |
return &v.unknownFields |
| 679 |
default: |
| 680 |
return nil |
| 681 |
} |
| 682 |
} |
| 683 |
file_fsnotify_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 684 |
switch v := v.(*InotifyFileEntry); i { |
| 685 |
case 0: |
| 686 |
return &v.state |
| 687 |
case 1: |
| 688 |
return &v.sizeCache |
| 689 |
case 2: |
| 690 |
return &v.unknownFields |
| 691 |
default: |
| 692 |
return nil |
| 693 |
} |
| 694 |
} |
| 695 |
file_fsnotify_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 696 |
switch v := v.(*FanotifyInodeMarkEntry); i { |
| 697 |
case 0: |
| 698 |
return &v.state |
| 699 |
case 1: |
| 700 |
return &v.sizeCache |
| 701 |
case 2: |
| 702 |
return &v.unknownFields |
| 703 |
default: |
| 704 |
return nil |
| 705 |
} |
| 706 |
} |
| 707 |
file_fsnotify_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 708 |
switch v := v.(*FanotifyMountMarkEntry); i { |
| 709 |
case 0: |
| 710 |
return &v.state |
| 711 |
case 1: |
| 712 |
return &v.sizeCache |
| 713 |
case 2: |
| 714 |
return &v.unknownFields |
| 715 |
default: |
| 716 |
return nil |
| 717 |
} |
| 718 |
} |
| 719 |
file_fsnotify_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 720 |
switch v := v.(*FanotifyMarkEntry); i { |
| 721 |
case 0: |
| 722 |
return &v.state |
| 723 |
case 1: |
| 724 |
return &v.sizeCache |
| 725 |
case 2: |
| 726 |
return &v.unknownFields |
| 727 |
default: |
| 728 |
return nil |
| 729 |
} |
| 730 |
} |
| 731 |
file_fsnotify_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 732 |
switch v := v.(*FanotifyFileEntry); i { |
| 733 |
case 0: |
| 734 |
return &v.state |
| 735 |
case 1: |
| 736 |
return &v.sizeCache |
| 737 |
case 2: |
| 738 |
return &v.unknownFields |
| 739 |
default: |
| 740 |
return nil |
| 741 |
} |
| 742 |
} |
| 743 |
} |
| 744 |
type x struct{} |
| 745 |
out := protoimpl.TypeBuilder{ |
| 746 |
File: protoimpl.DescBuilder{ |
| 747 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 748 |
RawDescriptor: file_fsnotify_proto_rawDesc, |
| 749 |
NumEnums: 1, |
| 750 |
NumMessages: 6, |
| 751 |
NumExtensions: 0, |
| 752 |
NumServices: 0, |
| 753 |
}, |
| 754 |
GoTypes: file_fsnotify_proto_goTypes, |
| 755 |
DependencyIndexes: file_fsnotify_proto_depIdxs, |
| 756 |
EnumInfos: file_fsnotify_proto_enumTypes, |
| 757 |
MessageInfos: file_fsnotify_proto_msgTypes, |
| 758 |
}.Build() |
| 759 |
File_fsnotify_proto = out.File |
| 760 |
file_fsnotify_proto_rawDesc = nil |
| 761 |
file_fsnotify_proto_goTypes = nil |
| 762 |
file_fsnotify_proto_depIdxs = nil |
| 763 |
} |