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
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…
Add table
Add a link
Reference in a new issue