Skip to content

Commit 08ebbfc

Browse files
committed
tests/cmd/remap-rootfs: fix mips builds
Similar to #1824, we need to convert the device number to uint64 for mips. Signed-off-by: Henry Chen <[email protected]>
1 parent 7483452 commit 08ebbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/cmd/remap-rootfs/remap-rootfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type inodeID struct {
4949
}
5050

5151
func toInodeID(st *syscall.Stat_t) inodeID {
52-
return inodeID{Dev: st.Dev, Ino: st.Ino}
52+
return inodeID{Dev: uint64(st.Dev), Ino: st.Ino} //nolint:unconvert // Dev is uint32 on e.g. MIPS.
5353
}
5454

5555
func remapRootfs(root string, uidMap, gidMap []specs.LinuxIDMapping) error {

0 commit comments

Comments
 (0)