Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create pkg/system and move stuff there from archive #4278

Merged
merged 1 commit into from Mar 5, 2014

Conversation

alexlarsson
Copy link
Contributor

This is a package for generic system calls etc that for some reason
is not yet supported by "syscall", or where it is different enough
for the different ports to need portability wrappers.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson alexl@redhat.com (github: alexlarsson)

One reason for this other than pure cleanup is that the overlayfs backend also needs a bunch of these calls.

@vieux
Copy link
Contributor

vieux commented Feb 21, 2014

@crosbymichael will this conflict with your branch ?

import "syscall"

func getLastAccess(stat *syscall.Stat_t) syscall.Timespec {
return stat.Atimespec
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will probably not compile on darwin and BSD. You might want to return an empty Timespec or even better return am error when it is not supported

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like 47c36f2?

kzys added a commit to kzys/docker that referenced this pull request Feb 28, 2014
@alexlarsson
Copy link
Contributor Author

@vieux Doesn't seem to conflict with add-libcontainer, in fact i chose the name "system" because that is what was used for similar things in that branch.

@creack Well, the code is just moved from one file to another. If it needs changes for BSD that can be fixed separately.

@crosbymichael
Copy link
Contributor

Yep, it does not conflict .

@crosbymichael
Copy link
Contributor

Running make cross i get the following errors

---> Making bundle: cross (in bundles/0.8.1-dev/cross)
Created symlinks: /go/src/github.com/dotcloud/docker/bundles/0.8.1-dev/cross/linux/amd64/docker-0.8.1-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.8.1-dev/cross/linux/386/docker-0.8.1-dev
Created binary: /go/src/github.com/dotcloud/docker/bundles/0.8.1-dev/cross/linux/arm/docker-0.8.1-dev
# github.com/dotcloud/docker/pkg/system
pkg/system/utimes_unsupported.go:8: undefined: ErrNotImplemented
pkg/system/utimes_unsupported.go:12: undefined: ErrNotImplemented
pkg/system/xattrs_unsupported.go:5: imported and not used: "syscall"
pkg/system/xattrs_unsupported.go:8: undefined: ErrNotImplemented
pkg/system/xattrs_unsupported.go:12: undefined: ErrNotImplemented

@unclejack
Copy link
Contributor

ping @alexlarsson

This is a package for generic system calls etc that for some reason
is not yet supported by "syscall", or where it is different enough
for the different ports to need portability wrappers.

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <alexl@redhat.com> (github: alexlarsson)
@alexlarsson
Copy link
Contributor Author

New version passes make cross

@unclejack
Copy link
Contributor

LGTM

ping @creack @crosbymichael @vieux

@crosbymichael
Copy link
Contributor

LGTM

crosbymichael added a commit that referenced this pull request Mar 5, 2014
Create pkg/system and move stuff there from archive
@crosbymichael crosbymichael merged commit 858d035 into moby:master Mar 5, 2014
@alexlarsson alexlarsson deleted the system branch March 5, 2014 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants