mirror of
https://github.com/containers/podman.git
synced 2025-05-20 08:36:23 +08:00

Fixes: https://github.com/containers/podman/issues/9893 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
17 lines
232 B
Go
17 lines
232 B
Go
// +build !windows
|
|
|
|
package images
|
|
|
|
import (
|
|
"os"
|
|
"syscall"
|
|
)
|
|
|
|
func checkHardLink(fi os.FileInfo) (devino, bool) {
|
|
st := fi.Sys().(*syscall.Stat_t)
|
|
return devino{
|
|
Dev: uint64(st.Dev),
|
|
Ino: uint64(st.Ino),
|
|
}, st.Nlink > 1
|
|
}
|