|
@@ -399,6 +399,7 @@ func (w *walker) walkRegular(ctx context.Context, relPath string, info fs.FileIn
|
|
|
f = w.updateFileInfo(f, curFile)
|
|
|
f.NoPermissions = w.IgnorePerms
|
|
|
f.RawBlockSize = blockSize
|
|
|
+ l.Debugln(w, "checking:", f)
|
|
|
|
|
|
if hasCurFile {
|
|
|
if curFile.IsEquivalentOptional(f, protocol.FileInfoComparison{
|
|
@@ -409,7 +410,7 @@ func (w *walker) walkRegular(ctx context.Context, relPath string, info fs.FileIn
|
|
|
IgnoreOwnership: !w.ScanOwnership,
|
|
|
IgnoreXattrs: !w.ScanXattrs,
|
|
|
}) {
|
|
|
- l.Debugln(w, "unchanged:", curFile, info.ModTime().Unix(), info.Mode()&fs.ModePerm)
|
|
|
+ l.Debugln(w, "unchanged:", curFile)
|
|
|
return nil
|
|
|
}
|
|
|
if curFile.ShouldConflict() {
|
|
@@ -420,7 +421,7 @@ func (w *walker) walkRegular(ctx context.Context, relPath string, info fs.FileIn
|
|
|
// conflict.
|
|
|
f.Version = f.Version.DropOthers(w.ShortID)
|
|
|
}
|
|
|
- l.Debugln(w, "rescan:", curFile, info.ModTime().Unix(), info.Mode()&fs.ModePerm)
|
|
|
+ l.Debugln(w, "rescan:", curFile)
|
|
|
}
|
|
|
|
|
|
l.Debugln(w, "to hash:", relPath, f)
|
|
@@ -443,6 +444,7 @@ func (w *walker) walkDir(ctx context.Context, relPath string, info fs.FileInfo,
|
|
|
}
|
|
|
f = w.updateFileInfo(f, curFile)
|
|
|
f.NoPermissions = w.IgnorePerms
|
|
|
+ l.Debugln(w, "checking:", f)
|
|
|
|
|
|
if hasCurFile {
|
|
|
if curFile.IsEquivalentOptional(f, protocol.FileInfoComparison{
|
|
@@ -453,7 +455,7 @@ func (w *walker) walkDir(ctx context.Context, relPath string, info fs.FileInfo,
|
|
|
IgnoreOwnership: !w.ScanOwnership,
|
|
|
IgnoreXattrs: !w.ScanXattrs,
|
|
|
}) {
|
|
|
- l.Debugln(w, "unchanged:", curFile, info.ModTime().Unix(), info.Mode()&fs.ModePerm)
|
|
|
+ l.Debugln(w, "unchanged:", curFile)
|
|
|
return nil
|
|
|
}
|
|
|
if curFile.ShouldConflict() {
|
|
@@ -464,6 +466,7 @@ func (w *walker) walkDir(ctx context.Context, relPath string, info fs.FileInfo,
|
|
|
// conflict.
|
|
|
f.Version = f.Version.DropOthers(w.ShortID)
|
|
|
}
|
|
|
+ l.Debugln(w, "rescan:", curFile)
|
|
|
}
|
|
|
|
|
|
l.Debugln(w, "dir:", relPath, f)
|
|
@@ -493,8 +496,8 @@ func (w *walker) walkSymlink(ctx context.Context, relPath string, info fs.FileIn
|
|
|
}
|
|
|
|
|
|
curFile, hasCurFile := w.CurrentFiler.CurrentFile(relPath)
|
|
|
-
|
|
|
f = w.updateFileInfo(f, curFile)
|
|
|
+ l.Debugln(w, "checking:", f)
|
|
|
|
|
|
if hasCurFile {
|
|
|
if curFile.IsEquivalentOptional(f, protocol.FileInfoComparison{
|
|
@@ -516,9 +519,10 @@ func (w *walker) walkSymlink(ctx context.Context, relPath string, info fs.FileIn
|
|
|
// conflict.
|
|
|
f.Version = f.Version.DropOthers(w.ShortID)
|
|
|
}
|
|
|
+ l.Debugln(w, "rescan:", curFile)
|
|
|
}
|
|
|
|
|
|
- l.Debugln(w, "symlink changedb:", relPath, f)
|
|
|
+ l.Debugln(w, "symlink:", relPath, f)
|
|
|
|
|
|
select {
|
|
|
case finishedChan <- ScanResult{File: f}:
|