
Previously hardlinking to an unmodified file or linking to a file which was touched by not detected as modified caused a new file to be created on unpack. This new file and the original source file were not linked since no link record was created in the tar. This change addresses this by adding links for all hardlinks to a file when it is detected as changed. These links will be written after the source file is written and may occur out of order in regard to file name. Signed-off-by: Derek McGowan <derek@mcgstyle.net>
22 lines
376 B
Go
22 lines
376 B
Go
package fs
|
|
|
|
import "os"
|
|
|
|
func detectDirDiff(upper, lower string) *diffDirOptions {
|
|
return nil
|
|
}
|
|
|
|
func compareSysStat(s1, s2 interface{}) (bool, error) {
|
|
// TODO: Use windows specific sys type
|
|
return false, nil
|
|
}
|
|
|
|
func compareCapabilities(p1, p2 string) (bool, error) {
|
|
// TODO: Use windows equivalent
|
|
return true, nil
|
|
}
|
|
|
|
func isLinked(os.FileInfo) bool {
|
|
return false
|
|
}
|