|
@@ -46,6 +46,7 @@ type FileIntf interface {
|
|
|
ModTime() time.Time
|
|
|
PlatformData() PlatformData
|
|
|
InodeChangeTime() time.Time
|
|
|
+ FileBlocksHash() []byte
|
|
|
}
|
|
|
|
|
|
func (Hello) Magic() uint32 {
|
|
@@ -170,6 +171,10 @@ func (f FileInfo) InodeChangeTime() time.Time {
|
|
|
return time.Unix(0, f.InodeChangeNs)
|
|
|
}
|
|
|
|
|
|
+func (f FileInfo) FileBlocksHash() []byte {
|
|
|
+ return f.BlocksHash
|
|
|
+}
|
|
|
+
|
|
|
// WinsConflict returns true if "f" is the one to choose when it is in
|
|
|
// conflict with "other".
|
|
|
func WinsConflict(f, other FileIntf) bool {
|