mirror of
https://github.com/containers/podman.git
synced 2025-08-06 19:44:14 +08:00
18 lines
252 B
Go
18 lines
252 B
Go
//go:build !windows
|
|
// +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
|
|
}
|