support compilation for armv7
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
This commit is contained in:
parent
1005d1dba9
commit
ae42cc4173
5 changed files with 31 additions and 4 deletions
|
@ -159,7 +159,7 @@ func (s *Store) status(ingestPath string) (Status, error) {
|
|||
|
||||
var startedAt time.Time
|
||||
if st, ok := fi.Sys().(*syscall.Stat_t); ok {
|
||||
startedAt = time.Unix(st.Ctim.Sec, st.Ctim.Nsec)
|
||||
startedAt = time.Unix(int64(st.Ctim.Sec), int64(st.Ctim.Nsec))
|
||||
} else {
|
||||
startedAt = fi.ModTime()
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ github.com/golang/protobuf 8ee79997227bf9b34611aee7946ae64735e6fd93
|
|||
github.com/opencontainers/runc ce450bcc6c135cae93ee2a99d41a308c179ff6dc
|
||||
github.com/opencontainers/runtime-spec v1.0.0-rc3
|
||||
github.com/Sirupsen/logrus v0.11.0
|
||||
github.com/stevvooe/go-btrfs 8539a1d04898663b8eda14982e24b74e7a12388e
|
||||
github.com/stevvooe/go-btrfs ea304655a3ed8f00773db1844f921d12541ee0d1
|
||||
github.com/stretchr/testify v1.1.4
|
||||
github.com/davecgh/go-spew v1.1.0
|
||||
github.com/pmezard/go-difflib v1.0.0
|
||||
|
@ -26,7 +26,7 @@ github.com/nightlyone/lockfile 1d49c987357a327b5b03aa84cbddd582c328615d
|
|||
github.com/opencontainers/go-digest 21dfd564fd89c944783d00d069f33e3e7123c448
|
||||
golang.org/x/sys/unix d75a52659825e75fff6158388dddc6a5b04f9ba5
|
||||
github.com/opencontainers/image-spec a431dbcf6a74fca2e0e040b819a836dbe3fb23ca
|
||||
github.com/stevvooe/continuity 1530f13d23b34e2ccaf33881fefecc7e28e3577b
|
||||
github.com/stevvooe/continuity 577e137350afb00343495f55bb8671fe7e22b0bf
|
||||
golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
||||
github.com/BurntSushi/toml v0.2.0-21-g9906417
|
||||
github.com/grpc-ecosystem/go-grpc-prometheus 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
|
||||
|
|
20
vendor/github.com/stevvooe/continuity/sysx/copy_linux_arm.go
generated
vendored
Normal file
20
vendor/github.com/stevvooe/continuity/sysx/copy_linux_arm.go
generated
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
// mksyscall.pl -l32 copy_linux.go
|
||||
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||
|
||||
package sysx
|
||||
|
||||
import (
|
||||
"syscall"
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||
|
||||
func CopyFileRange(fdin uintptr, offin *int64, fdout uintptr, offout *int64, len int, flags int) (n int, err error) {
|
||||
r0, _, e1 := syscall.Syscall6(SYS_COPY_FILE_RANGE, uintptr(fdin), uintptr(unsafe.Pointer(offin)), uintptr(fdout), uintptr(unsafe.Pointer(offout)), uintptr(len), uintptr(flags))
|
||||
n = int(r0)
|
||||
if e1 != 0 {
|
||||
err = errnoErr(e1)
|
||||
}
|
||||
return
|
||||
}
|
7
vendor/github.com/stevvooe/continuity/sysx/sysnum_linux_arm.go
generated
vendored
Normal file
7
vendor/github.com/stevvooe/continuity/sysx/sysnum_linux_arm.go
generated
vendored
Normal file
|
@ -0,0 +1,7 @@
|
|||
package sysx
|
||||
|
||||
const (
|
||||
// SYS_COPY_FILE_RANGE defined in Kernel 4.5+
|
||||
// Number defined in /usr/include/arm-linux-gnueabihf/asm/unistd.h
|
||||
SYS_COPY_FILE_RANGE = 391
|
||||
)
|
2
vendor/github.com/stevvooe/go-btrfs/btrfs.go
generated
vendored
2
vendor/github.com/stevvooe/go-btrfs/btrfs.go
generated
vendored
|
@ -365,7 +365,7 @@ func openSubvolDir(path string) (*os.File, error) {
|
|||
}
|
||||
|
||||
func isStatfsSubvol(statfs *syscall.Statfs_t) error {
|
||||
if statfs.Type != C.BTRFS_SUPER_MAGIC {
|
||||
if int64(statfs.Type) != int64(C.BTRFS_SUPER_MAGIC) {
|
||||
return errors.Errorf("not a btrfs filesystem")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue