Update continuity
Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
parent
8ec5c30d83
commit
a4b2e580f2
@ -29,7 +29,7 @@ github.com/nightlyone/lockfile 1d49c987357a327b5b03aa84cbddd582c328615d
|
|||||||
github.com/opencontainers/go-digest 21dfd564fd89c944783d00d069f33e3e7123c448
|
github.com/opencontainers/go-digest 21dfd564fd89c944783d00d069f33e3e7123c448
|
||||||
golang.org/x/sys f3918c30c5c2cb527c0b071a27c35120a6c0719a
|
golang.org/x/sys f3918c30c5c2cb527c0b071a27c35120a6c0719a
|
||||||
github.com/opencontainers/image-spec v1.0.0-rc6
|
github.com/opencontainers/image-spec v1.0.0-rc6
|
||||||
github.com/containerd/continuity f4ad4294c92f596c9241947c416d1297f9faf3ea
|
github.com/containerd/continuity 86cec1535a968310e7532819f699ff2830ed7463
|
||||||
golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
golang.org/x/sync 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
|
||||||
github.com/BurntSushi/toml v0.2.0-21-g9906417
|
github.com/BurntSushi/toml v0.2.0-21-g9906417
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
|
github.com/grpc-ecosystem/go-grpc-prometheus 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
|
||||||
|
16
vendor/github.com/containerd/continuity/driver.go
generated
vendored
16
vendor/github.com/containerd/continuity/driver.go
generated
vendored
@ -2,7 +2,6 @@ package continuity
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Driver provides all of the system-level functions in a common interface.
|
// Driver provides all of the system-level functions in a common interface.
|
||||||
@ -25,7 +24,7 @@ type Driver interface {
|
|||||||
|
|
||||||
Link(oldname, newname string) error
|
Link(oldname, newname string) error
|
||||||
Lchmod(path string, mode os.FileMode) error
|
Lchmod(path string, mode os.FileMode) error
|
||||||
Lchown(path, uid, gid string) error
|
Lchown(path string, uid, gid int64) error
|
||||||
Symlink(oldname, newname string) error
|
Symlink(oldname, newname string) error
|
||||||
|
|
||||||
// TODO(aaronl): These methods might move outside the main Driver
|
// TODO(aaronl): These methods might move outside the main Driver
|
||||||
@ -127,16 +126,9 @@ func (d *driver) Link(oldname, newname string) error {
|
|||||||
return os.Link(oldname, newname)
|
return os.Link(oldname, newname)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driver) Lchown(name, uidStr, gidStr string) error {
|
func (d *driver) Lchown(name string, uid, gid int64) error {
|
||||||
uid, err := strconv.Atoi(uidStr)
|
// TODO: error out if uid excesses int bit width?
|
||||||
if err != nil {
|
return os.Lchown(name, int(uid), int(gid))
|
||||||
return err
|
|
||||||
}
|
|
||||||
gid, err := strconv.Atoi(gidStr)
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
return os.Lchown(name, uid, gid)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (d *driver) Symlink(oldname, newname string) error {
|
func (d *driver) Symlink(oldname, newname string) error {
|
||||||
|
7
vendor/github.com/containerd/continuity/driver_darwin.go
generated
vendored
7
vendor/github.com/containerd/continuity/driver_darwin.go
generated
vendored
@ -1,7 +0,0 @@
|
|||||||
package continuity
|
|
||||||
|
|
||||||
import "os"
|
|
||||||
|
|
||||||
func (d *driver) DeviceInfo(fi os.FileInfo) (maj uint64, min uint64, err error) {
|
|
||||||
return deviceInfo(fi)
|
|
||||||
}
|
|
52
vendor/github.com/containerd/continuity/proto/manifest.pb.go
generated
vendored
52
vendor/github.com/containerd/continuity/proto/manifest.pb.go
generated
vendored
@ -54,12 +54,10 @@ type Resource struct {
|
|||||||
// path is present, the entry may represent a hardlink, rather than using
|
// path is present, the entry may represent a hardlink, rather than using
|
||||||
// a link target. The path format is operating system specific.
|
// a link target. The path format is operating system specific.
|
||||||
Path []string `protobuf:"bytes,1,rep,name=path" json:"path,omitempty"`
|
Path []string `protobuf:"bytes,1,rep,name=path" json:"path,omitempty"`
|
||||||
// Uid specifies the user id for the resource. A string type is used for
|
// Uid specifies the user id for the resource.
|
||||||
// compatibility across different OS.
|
Uid int64 `protobuf:"varint,2,opt,name=uid" json:"uid,omitempty"`
|
||||||
Uid string `protobuf:"bytes,2,opt,name=uid" json:"uid,omitempty"`
|
// Gid specifies the group id for the resource.
|
||||||
// Gid specifies the group id for the resource. A string type is used for
|
Gid int64 `protobuf:"varint,3,opt,name=gid" json:"gid,omitempty"`
|
||||||
// compatibility across different OS.
|
|
||||||
Gid string `protobuf:"bytes,3,opt,name=gid" json:"gid,omitempty"`
|
|
||||||
// user and group are not currently used but their field numbers have been
|
// user and group are not currently used but their field numbers have been
|
||||||
// reserved for future use. As such, they are marked as deprecated.
|
// reserved for future use. As such, they are marked as deprecated.
|
||||||
User string `protobuf:"bytes,4,opt,name=user" json:"user,omitempty"`
|
User string `protobuf:"bytes,4,opt,name=user" json:"user,omitempty"`
|
||||||
@ -157,25 +155,25 @@ func init() {
|
|||||||
func init() { proto1.RegisterFile("manifest.proto", fileDescriptor0) }
|
func init() { proto1.RegisterFile("manifest.proto", fileDescriptor0) }
|
||||||
|
|
||||||
var fileDescriptor0 = []byte{
|
var fileDescriptor0 = []byte{
|
||||||
// 313 bytes of a gzipped FileDescriptorProto
|
// 317 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x4b, 0xfb, 0x40,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x90, 0x4f, 0x4b, 0xf3, 0x40,
|
||||||
0x10, 0xc5, 0x49, 0x93, 0xf4, 0x9f, 0x4e, 0xdb, 0xbf, 0xb2, 0x48, 0x99, 0x63, 0xcc, 0x29, 0x20,
|
0x10, 0xc6, 0x49, 0x93, 0xf4, 0x4d, 0xa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0x4f, 0x73, 0x4e, 0x74, 0xf9, 0x1d, 0x00, 0x00, 0xff,
|
0xbf, 0xe1, 0xaf, 0x33, 0x3f, 0x72, 0x48, 0xe3, 0x7b, 0xa3, 0x7b, 0x9a, 0xf3, 0x45, 0x97, 0xdf,
|
||||||
0xff, 0x91, 0xfe, 0x64, 0xca, 0x17, 0x02, 0x00, 0x00,
|
0x01, 0x00, 0x00, 0xff, 0xff, 0xef, 0x27, 0x99, 0xf7, 0x17, 0x02, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
10
vendor/github.com/containerd/continuity/proto/manifest.proto
generated
vendored
10
vendor/github.com/containerd/continuity/proto/manifest.proto
generated
vendored
@ -16,13 +16,11 @@ message Resource {
|
|||||||
|
|
||||||
// NOTE(stevvooe): Need to define clear precedence for user/group/uid/gid precedence.
|
// NOTE(stevvooe): Need to define clear precedence for user/group/uid/gid precedence.
|
||||||
|
|
||||||
// Uid specifies the user id for the resource. A string type is used for
|
// Uid specifies the user id for the resource.
|
||||||
// compatibility across different OS.
|
int64 uid = 2;
|
||||||
string uid = 2;
|
|
||||||
|
|
||||||
// Gid specifies the group id for the resource. A string type is used for
|
// Gid specifies the group id for the resource.
|
||||||
// compatibility across different OS.
|
int64 gid = 3;
|
||||||
string gid = 3;
|
|
||||||
|
|
||||||
// user and group are not currently used but their field numbers have been
|
// user and group are not currently used but their field numbers have been
|
||||||
// reserved for future use. As such, they are marked as deprecated.
|
// reserved for future use. As such, they are marked as deprecated.
|
||||||
|
10
vendor/github.com/containerd/continuity/resource.go
generated
vendored
10
vendor/github.com/containerd/continuity/resource.go
generated
vendored
@ -26,8 +26,8 @@ type Resource interface {
|
|||||||
// Mode returns the
|
// Mode returns the
|
||||||
Mode() os.FileMode
|
Mode() os.FileMode
|
||||||
|
|
||||||
UID() string
|
UID() int64
|
||||||
GID() string
|
GID() int64
|
||||||
}
|
}
|
||||||
|
|
||||||
// ByPath provides the canonical sort order for a set of resources. Use with
|
// ByPath provides the canonical sort order for a set of resources. Use with
|
||||||
@ -240,7 +240,7 @@ type Device interface {
|
|||||||
type resource struct {
|
type resource struct {
|
||||||
paths []string
|
paths []string
|
||||||
mode os.FileMode
|
mode os.FileMode
|
||||||
uid, gid string
|
uid, gid int64
|
||||||
xattrs map[string][]byte
|
xattrs map[string][]byte
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -258,11 +258,11 @@ func (r *resource) Mode() os.FileMode {
|
|||||||
return r.mode
|
return r.mode
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *resource) UID() string {
|
func (r *resource) UID() int64 {
|
||||||
return r.uid
|
return r.uid
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *resource) GID() string {
|
func (r *resource) GID() int64 {
|
||||||
return r.gid
|
return r.gid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
vendor/github.com/containerd/continuity/resource_unix.go
generated
vendored
4
vendor/github.com/containerd/continuity/resource_unix.go
generated
vendored
@ -27,8 +27,8 @@ func newBaseResource(p string, fi os.FileInfo) (*resource, error) {
|
|||||||
paths: []string{p},
|
paths: []string{p},
|
||||||
mode: fi.Mode(),
|
mode: fi.Mode(),
|
||||||
|
|
||||||
uid: fmt.Sprint(sys.Uid),
|
uid: int64(sys.Uid),
|
||||||
gid: fmt.Sprint(sys.Gid),
|
gid: int64(sys.Gid),
|
||||||
|
|
||||||
// NOTE(stevvooe): Population of shared xattrs field is deferred to
|
// NOTE(stevvooe): Population of shared xattrs field is deferred to
|
||||||
// the resource types that populate it. Since they are a property of
|
// the resource types that populate it. Since they are a property of
|
||||||
|
3
vendor/github.com/containerd/continuity/sysx/xattr_linux.go
generated
vendored
3
vendor/github.com/containerd/continuity/sysx/xattr_linux.go
generated
vendored
@ -7,6 +7,9 @@ import "syscall"
|
|||||||
// $ GOOS=linux GOARCH=amd64 ./generate.sh xattr
|
// $ GOOS=linux GOARCH=amd64 ./generate.sh xattr
|
||||||
// $ GOOS=linux GOARCH=arm ./generate.sh xattr
|
// $ GOOS=linux GOARCH=arm ./generate.sh xattr
|
||||||
// $ GOOS=linux GOARCH=arm64 ./generate.sh xattr
|
// $ GOOS=linux GOARCH=arm64 ./generate.sh xattr
|
||||||
|
// $ GOOS=linux GOARCH=ppc64 ./generate.sh xattr
|
||||||
|
// $ GOOS=linux GOARCH=ppc64le ./generate.sh xattr
|
||||||
|
// $ GOOS=linux GOARCH=s390x ./generate.sh xattr
|
||||||
|
|
||||||
// Listxattr calls syscall listxattr and reads all content
|
// Listxattr calls syscall listxattr and reads all content
|
||||||
// and returns a string array
|
// and returns a string array
|
||||||
|
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_ppc64.go
generated
vendored
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_ppc64.go
generated
vendored
@ -1,19 +1,111 @@
|
|||||||
|
// mksyscall.pl xattr_linux.go
|
||||||
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
package sysx
|
package sysx
|
||||||
|
|
||||||
import "github.com/pkg/errors"
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func llistxattr(path string, dest []byte) (sz int, err error) {
|
func llistxattr(path string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "llistxattr not implemented on ppc64")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lremovexattr(path string, attr string) (err error) {
|
func lremovexattr(path string, attr string) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lremovexattr not implemented on ppc64")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lsetxattr not implemented on ppc64")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&data[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "lgetxattr not implemented on ppc64")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_ppc64le.go
generated
vendored
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_ppc64le.go
generated
vendored
@ -1,19 +1,111 @@
|
|||||||
|
// mksyscall.pl xattr_linux.go
|
||||||
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
package sysx
|
package sysx
|
||||||
|
|
||||||
import "github.com/pkg/errors"
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func llistxattr(path string, dest []byte) (sz int, err error) {
|
func llistxattr(path string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "llistxattr not implemented on ppc64le")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lremovexattr(path string, attr string) (err error) {
|
func lremovexattr(path string, attr string) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lremovexattr not implemented on ppc64le")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lsetxattr not implemented on ppc64le")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&data[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "lgetxattr not implemented on ppc64le")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_s390x.go
generated
vendored
102
vendor/github.com/containerd/continuity/sysx/xattr_linux_s390x.go
generated
vendored
@ -1,19 +1,111 @@
|
|||||||
|
// mksyscall.pl xattr_linux.go
|
||||||
|
// MACHINE GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
|
||||||
|
|
||||||
package sysx
|
package sysx
|
||||||
|
|
||||||
import "github.com/pkg/errors"
|
import (
|
||||||
|
"syscall"
|
||||||
|
"unsafe"
|
||||||
|
)
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func llistxattr(path string, dest []byte) (sz int, err error) {
|
func llistxattr(path string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "llistxattr not implemented on s390x")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p1 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p1 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall(syscall.SYS_LLISTXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(_p1), uintptr(len(dest)))
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lremovexattr(path string, attr string) (err error) {
|
func lremovexattr(path string, attr string) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lremovexattr not implemented on s390x")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall(syscall.SYS_LREMOVEXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
func lsetxattr(path string, attr string, data []byte, flags int) (err error) {
|
||||||
return errors.Wrap(ErrNotSupported, "lsetxattr not implemented on s390x")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(data) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&data[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
_, _, e1 := syscall.Syscall6(syscall.SYS_LSETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(data)), uintptr(flags), 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
|
||||||
|
|
||||||
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
func lgetxattr(path string, attr string, dest []byte) (sz int, err error) {
|
||||||
return 0, errors.Wrap(ErrNotSupported, "lgetxattr not implemented on s390x")
|
var _p0 *byte
|
||||||
|
_p0, err = syscall.BytePtrFromString(path)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p1 *byte
|
||||||
|
_p1, err = syscall.BytePtrFromString(attr)
|
||||||
|
if err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
var _p2 unsafe.Pointer
|
||||||
|
if len(dest) > 0 {
|
||||||
|
_p2 = unsafe.Pointer(&dest[0])
|
||||||
|
} else {
|
||||||
|
_p2 = unsafe.Pointer(&_zero)
|
||||||
|
}
|
||||||
|
r0, _, e1 := syscall.Syscall6(syscall.SYS_LGETXATTR, uintptr(unsafe.Pointer(_p0)), uintptr(unsafe.Pointer(_p1)), uintptr(_p2), uintptr(len(dest)), 0, 0)
|
||||||
|
use(unsafe.Pointer(_p0))
|
||||||
|
use(unsafe.Pointer(_p1))
|
||||||
|
sz = int(r0)
|
||||||
|
if e1 != 0 {
|
||||||
|
err = errnoErr(e1)
|
||||||
|
}
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user