-
Notifications
You must be signed in to change notification settings - Fork 241
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
Grab changes form moby/moby/graphdriver for overlay quota #98
Conversation
The goal of this patch set is to satisfy #97 |
looks good (assuming travis will pass) and the integration with CRI-O is smooth :) (and as long as overlay quota works) |
t.Fatalf("Error should not be nil because dirs with id 1 should be deleted: %s", p) | ||
} | ||
if _, err := os.Stat(path.Join(tmp, p, "1-removing")); err == nil { | ||
t.Fatalf("Error should not be nil because dirs with id 1-removing should be deleted: %s", p) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm back and forth. Should 1-removing be '1-removing'? Just to set it off more quickly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support aufs anyways, This code is just copied from Moby
f383f66
to
915c36c
Compare
@runcom a lot of "if's" |
well, it's still marked WIP :) I'll take a better look once it looks ready for you for sure :) |
pkg/idtools/idtools_windows.go
Outdated
@@ -5,14 +5,21 @@ package idtools | |||
import ( | |||
"os" | |||
|
|||
"github.com/containers/storage/pkg/system" | |||
"github.com/docker/docker/pkg/system" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOPE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
The first patch in the series also removes a couple of packages from the |
16afb3f
to
16b2e77
Compare
10275f6
to
9a7e4cb
Compare
0fa5dc5
to
ba0a4bd
Compare
98cedd0
to
ddbbb01
Compare
drivers/overlay/overlay.go
Outdated
if c := d.ctr.Decrement(mergedDir); c <= 0 { | ||
syscall.Unmount(mergedDir, 0) | ||
if retErr != nil { | ||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're switching from checking err
to checking retErr
here, so this line and its matching closing brace shouldn't be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup I screwed this patch up. Will push the correct change from upstream.
006238a
to
493f385
Compare
drivers/aufs/aufs_test.go
Outdated
@@ -31,7 +33,7 @@ func init() { | |||
func testInit(dir string, t testing.TB) graphdriver.Driver { | |||
d, err := Init(dir, nil, nil, nil) | |||
if err != nil { | |||
if errors.Cause(err) == graphdriver.ErrNotSupported { | |||
if err == graphdriver.ErrNotSupported { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should keep unwrapping here, per #73.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
drivers/aufs/aufs.go
Outdated
@@ -567,14 +664,14 @@ func (a *Driver) aufsMount(ro []string, rw, target, mountLabel string) (err erro | |||
// version of aufs. | |||
func useDirperm() bool { | |||
enableDirpermLock.Do(func() { | |||
base, err := ioutil.TempDir("", "storage-aufs-base") | |||
base, err := ioutil.TempDir("", "docker-aufs-base") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we lose a rename here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
drivers/aufs/aufs.go
Outdated
if err != nil { | ||
logrus.Errorf("error checking dirperm1: %v", err) | ||
return | ||
} | ||
defer os.RemoveAll(base) | ||
|
||
union, err := ioutil.TempDir("", "storage-aufs-union") | ||
union, err := ioutil.TempDir("", "docker-aufs-union") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we lose a rename here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
drivers/devmapper/deviceset.go
Outdated
// "reg-" stands for "regular file". | ||
// In the future we might use "dev-" for "device file", etc. | ||
// container-maj,min[-inode] stands for: | ||
// - Managed by container storage | ||
// storage-maj,min[-inode] stands for: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: comment doesn't match the string below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to container
bb053b3
to
051d108
Compare
Okay, I think the current state of things answers all of my comments, so LGTM. |
Ok I will squash the commits and push again. |
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
We don't support plugin drivers in containers/storage at this time. Remove them so we don't have to maintain them. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Need this driver to get overlay quota on xfs support Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This led to lots of packages being updated from moby
I tried not to pull in the snap driver stuff.
Signed-off-by: Daniel J Walsh dwalsh@redhat.com