Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 430926 Details for
Bug 579856
app-emulation/docker-1.10.3 [btrfs] - daemon/graphdriver/btrfs/btrfs.go:164: args.name undefined (type C.struct_btrfs_ioctl_vol_args_v2 has no field or method name)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
docker-a038cccf88998814249a7a40b71a33a680e3f02f.patch
docker-a038cccf88998814249a7a40b71a33a680e3f02f.patch (text/plain), 1.15 KB, created by
Greg Turner
on 2016-04-17 11:37:41 UTC
(
hide
)
Description:
docker-a038cccf88998814249a7a40b71a33a680e3f02f.patch
Filename:
MIME Type:
Creator:
Greg Turner
Created:
2016-04-17 11:37:41 UTC
Size:
1.15 KB
patch
obsolete
>diff -urpN docker-1.10.3.orig/src/github.com/docker/docker/daemon/graphdriver/btrfs/btrfs.go docker-1.10.3/src/github.com/docker/docker/daemon/graphdriver/btrfs/btrfs.go >--- docker-1.10.3.orig/src/github.com/docker/docker/daemon/graphdriver/btrfs/btrfs.go 2016-03-09 12:13:24.000000000 -0800 >+++ docker-1.10.3/src/github.com/docker/docker/daemon/graphdriver/btrfs/btrfs.go 2016-04-17 04:34:27.188376720 -0700 >@@ -7,6 +7,10 @@ package btrfs > #include <dirent.h> > #include <btrfs/ioctl.h> > #include <btrfs/ctree.h> >+ >+static void set_name_btrfs_ioctl_vol_args_v2(struct btrfs_ioctl_vol_args_v2* btrfs_struct, const char* value) { >+ snprintf(btrfs_struct->name, BTRFS_SUBVOL_NAME_MAX, "%s", value); >+} > */ > import "C" > >@@ -160,9 +164,10 @@ func subvolSnapshot(src, dest, name stri > > var args C.struct_btrfs_ioctl_vol_args_v2 > args.fd = C.__s64(getDirFd(srcDir)) >- for i, c := range []byte(name) { >- args.name[i] = C.char(c) >- } >+ >+ var cs = C.CString(name) >+ C.set_name_btrfs_ioctl_vol_args_v2(&args, cs) >+ C.free(unsafe.Pointer(cs)) > > _, _, errno := syscall.Syscall(syscall.SYS_IOCTL, getDirFd(destDir), C.BTRFS_IOC_SNAP_CREATE_V2, > uintptr(unsafe.Pointer(&args)))
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 579856
:
430340
|
430926
|
430928