//go:build linux package rsync import "syscall" // CoW snapshots/reflinks can retain replaced extents. Do not credit old blocks // on these filesystems, even when a file has only one directory hardlink. func mayReclaimBlocks(path string) bool { var st syscall.Statfs_t if syscall.Statfs(path, &st) != nil { return false } switch uint64(st.Type) { case 0x2fc12fc1, 0x9123683e, 0x58465342: // ZFS, Btrfs, XFS return false } return true }