Skip to content

Commit

Permalink
fix tracking file after rename: sync rename mode constant on eBPF and…
Browse files Browse the repository at this point in the history
… agent side

The problem was from eBPF we receive rename event as '0' constant (see pkg/ebpf/vfs.c:137), but
on agent side we assume it is constant of value '2'. Change agent side constant to '0' to be aligned
with eBPF raw event.
  • Loading branch information
nloginov authored and paskal committed May 20, 2020
1 parent afe7983 commit f73a666
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
)

const (
renameEvent = 2
renameEvent = 0
dirCreate = 3
fileCreate = 4
delFile = -1
Expand Down

0 comments on commit f73a666

Please sign in to comment.