GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vendor: moby/sys mountinfo/v0.4.0 by thaJeztah · Pull Request #41458 · moby/moby

Conversation

@thaJeztah

@thaJeztah thaJeztah commented Sep 16, 2020 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

full diff: moby/sys@mountinfo/v0.1.3...mountinfo/v0.4.0

Note that this dependency uses submodules, providing "github.com/moby/sys/mount"
and "github.com/moby/sys/mountinfo". Our vendoring tool (vndr) currently doesn't
support submodules, so we vendor the top-level moby/sys repository (which contains
both) and pick the most recent tag, which could be either mountinfo/vXXX or
mount/vXXX.

github.com/moby/sys/mountinfo v0.4.0

Breaking changes:

  • PidMountInfo is now deprecated and will be removed before v1.0; users should switch to GetMountsFromReader

Fixes and improvements:

  • run filter after all fields are parsed
  • correct handling errors from bufio.Scan
  • documentation formatting fixes

github.com/moby/sys/mountinfo v0.3.1

  • mount: use MNT_* flags from golang.org/x/sys/unix on freebsd
  • various godoc and CI fixes
  • mountinfo: make GetMountinfoFromReader Linux-specific
  • Add support for OpenBSD in addition to FreeBSD
  • mountinfo: use idiomatic naming for fields

github.com/moby/sys/mountinfo v0.2.0

Bug fixes:

  • Fix path unescaping for paths with double quotes

Improvements:

  • Mounted: speed up by adding fast paths using openat2 (Linux-only) and stat
  • Mounted: relax path requirements (allow relative, non-cleaned paths, symlinks)
  • Unescape fstype and source fields
  • Documentation improvements

Testing/CI:

  • Unit tests: exclude darwin
  • CI: run tests under Fedora 32 to test openat2
  • TestGetMounts: fix for Ubuntu build system
  • Makefile: fix ignoring test failures
  • CI: add cross build

github.com/moby/sys/mount v0.1.1

https://github.com/moby/sys/releases/tag/mount%2Fv0.1.1

Improvements:

  • RecursiveUnmount: add a fast path (Auto-restart processes #26)
  • Unmount: improve doc
  • fix CI linter warning on Windows

Testing/CI:

  • Unit tests: exclude darwin
  • Makefile: fix ignoring test failures
  • CI: add cross build

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Sep 16, 2020
@thaJeztah

thaJeztah commented Sep 16, 2020

Copy link
Copy Markdown
Member Author

@kolyshkin @cpuguy83 PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

thaJeztah commented Sep 17, 2020

Copy link
Copy Markdown
Member Author

Ah, forgot to update x/sys;


[2020-09-16T10:25:54.222Z] vendor/github.com/moby/sys/mountinfo/mounted_linux.go:15:16: undefined: unix.Openat2
[2020-09-16T10:25:54.222Z] vendor/github.com/moby/sys/mountinfo/mounted_linux.go:15:50: undefined: unix.OpenHow
[2020-09-16T10:25:54.222Z] vendor/github.com/moby/sys/mountinfo/mounted_linux.go:24:13: undefined: unix.Openat2
[2020-09-16T10:25:54.222Z] vendor/github.com/moby/sys/mountinfo/mounted_linux.go:24:40: undefined: unix.OpenHow
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kolyshkin

kolyshkin commented Sep 17, 2020

Copy link
Copy Markdown
Contributor

Once moby will switch to golang 1.15 (#40353), I hope we can finally drop vndr and use go.mod. I worked on that (switching to go modules) more than a year ago and remember that replace directive and version specification features were not flexible enough -- I think/hope this is solved by now.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch 2 times, most recently from 187a841 to b6b850a Compare September 18, 2020 00:25
@thaJeztah

thaJeztah commented Sep 18, 2020

Copy link
Copy Markdown
Member Author

updated golang.org/x/sys; PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

This comment has been minimized.

Sign in to view
@thaJeztah

thaJeztah commented Sep 18, 2020

Copy link
Copy Markdown
Member Author

I opened moby/sys#31 to fix the change in behavior

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah thaJeztah mentioned this pull request Sep 18, 2020
mount: some refactor and improved GoDoc about Windows support moby/sys#31
Merged
@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch 3 times, most recently from 9240e67 to 93950b9 Compare September 19, 2020 21:18
@thaJeztah
thaJeztah requested a review from cpuguy83 as a code owner September 19, 2020 21:18
@kolyshkin

kolyshkin commented Sep 21, 2020

Copy link
Copy Markdown
Contributor

Looks like EnsureRemoveAll should be unix-specific, and for windows it should be an alias or wrapper of os.RemoveAll.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kolyshkin kolyshkin mentioned this pull request Sep 21, 2020
pkg/system: make EnsureRemoveAll unix-specific #41478
Merged
@kolyshkin

kolyshkin commented Sep 21, 2020

Copy link
Copy Markdown
Contributor

Looks like EnsureRemoveAll should be unix-specific, and for windows it should be an alias or wrapper of os.RemoveAll.

That's what I mean: #41478

WDYT @cpuguy83 @thaJeztah?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cpuguy83

cpuguy83 commented Sep 21, 2020

Copy link
Copy Markdown
Member

Agreed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch from 93950b9 to f5d72b2 Compare September 21, 2020 15:41
@thaJeztah

thaJeztah commented Sep 21, 2020

Copy link
Copy Markdown
Member Author

Rebased; pls check if the remaining "stubs" for Windows look ok, or if we should refactor more to not have those in the windows codepath

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kolyshkin
kolyshkin reviewed Sep 21, 2020
View reviewed changes
Comment thread daemon/start.go Outdated

@kolyshkin kolyshkin Sep 21, 2020

Copy link
Copy Markdown
Contributor

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.

Hmm, now when I look at this line... isn't it supposed to be below container.UnmountVolumes?

cc @cpuguy83

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kolyshkin kolyshkin Sep 21, 2020

Copy link
Copy Markdown
Contributor

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.

This code was added by commit eaa5192, at that time container.UnmountVolumes was already there (below)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@thaJeztah thaJeztah Sep 23, 2020

Copy link
Copy Markdown
Member Author

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.

@cpuguy83 could you have a look?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@cpuguy83 cpuguy83 Oct 6, 2020

Copy link
Copy Markdown
Member

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.

container.Root is /var/lib/docker/containers/<id>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kolyshkin kolyshkin Oct 8, 2020

Copy link
Copy Markdown
Contributor

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.

What about volumes? I haven't checked but I suppose volumes are mounted under the container.Root, so it makes sense to have volumes unmounted first. Or am I missing something?

Surely it's a separate issue; just wondering.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
kolyshkin
kolyshkin reviewed Sep 21, 2020
View reviewed changes
Comment thread pkg/system/rm_unix.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

kolyshkin
kolyshkin reviewed Sep 21, 2020
View reviewed changes
Comment thread testutil/daemon/daemon.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

kolyshkin
kolyshkin reviewed Sep 21, 2020
View reviewed changes
Comment thread volume/local/local.go Resolved

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch 3 times, most recently from cf79fd5 to da9703c Compare September 23, 2020 08:28
@thaJeztah

thaJeztah commented Sep 23, 2020

Copy link
Copy Markdown
Member Author

@cpuguy83 @kolyshkin PTAL <3

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch from da9703c to e082abf Compare October 6, 2020 10:54
@thaJeztah thaJeztah changed the title vendor: bump moby/sys mountinfo/v0.3.1 vendor: moby/sys mountinfo/v0.3.1 Oct 6, 2020
@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch from e082abf to 90e6b44 Compare October 6, 2020 12:11
thaJeztah
thaJeztah commented Oct 6, 2020
View reviewed changes
Comment thread pkg/mount/deprecated.go Outdated

@thaJeztah thaJeztah Oct 6, 2020

Copy link
Copy Markdown
Member Author

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.

Wasn't sure if we wanted to keep this one backward compatible for now; kept it as a separate commit, but can squash it

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kolyshkin kolyshkin Oct 8, 2020

Copy link
Copy Markdown
Contributor

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.

Since mountinfo filters were introduced recently, I don't think they have lots of users so we can just remove those from this wrapper package, and if GetMounts is called with a filter, do panic("use github.com/moby/sys/mountinfo") or something like that.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@kolyshkin kolyshkin Oct 8, 2020

Copy link
Copy Markdown
Contributor

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.

Or maybe it's time to kill the whole package

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@thaJeztah

thaJeztah commented Oct 6, 2020

Copy link
Copy Markdown
Member Author

@kolyshkin @cpuguy83 ptal

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

thaJeztah commented Oct 6, 2020

Copy link
Copy Markdown
Member Author

Test failure is a flaky test, let me kick it

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah thaJeztah mentioned this pull request Oct 7, 2020
convert users to new names in mountinfo moby/sys#42
Closed
5 tasks done
@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch from 2299f83 to f8b4800 Compare October 7, 2020 20:40
kolyshkin
kolyshkin reviewed Oct 8, 2020
View reviewed changes
Comment thread volume/local/local_unix.go Outdated

@kolyshkin kolyshkin Oct 8, 2020

Copy link
Copy Markdown
Contributor

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 thought I kill all those redundant checks already... Anyway, it's a separate issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kolyshkin

kolyshkin commented Oct 8, 2020

Copy link
Copy Markdown
Contributor

So, maybe it's time to kill pkg/mount, rather than provide all those wrappers?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

thaJeztah commented Oct 29, 2020

Copy link
Copy Markdown
Member Author

So, maybe it's time to kill pkg/mount, rather than provide all those wrappers?

Yeah, so my thinking was to keep it for this release (as it's the release in which we deprecate it), then remove for the next (allowing users one release cycle to migrate)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thaJeztah added 3 commits October 29, 2020 23:00
@thaJeztah
Do not call mount.RecursiveUnmount() on Windows
182795c
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
vendor: moby/sys mountinfo/v0.4.0
32d506b
full diff: moby/sys@mountinfo/v0.1.3...mountinfo/v0.4.0

> Note that this dependency uses submodules, providing "github.com/moby/sys/mount"
> and "github.com/moby/sys/mountinfo". Our vendoring tool (vndr) currently doesn't
> support submodules, so we vendor the top-level moby/sys repository (which contains
> both) and pick the most recent tag, which could be either `mountinfo/vXXX` or
> `mount/vXXX`.

github.com/moby/sys/mountinfo v0.4.0
--------------------------------------------------------------------------------

Breaking changes:

- `PidMountInfo` is now deprecated and will be removed before v1.0; users should switch to `GetMountsFromReader`

Fixes and improvements:

- run filter after all fields are parsed
- correct handling errors from bufio.Scan
- documentation formatting fixes

github.com/moby/sys/mountinfo v0.3.1
--------------------------------------------------------------------------------

- mount: use MNT_* flags from golang.org/x/sys/unix on freebsd
- various godoc and CI fixes
- mountinfo: make GetMountinfoFromReader Linux-specific
- Add support for OpenBSD in addition to FreeBSD
- mountinfo: use idiomatic naming for fields

github.com/moby/sys/mountinfo v0.2.0
--------------------------------------------------------------------------------

Bug fixes:

- Fix path unescaping for paths with double quotes

Improvements:

- Mounted: speed up by adding fast paths using openat2 (Linux-only) and stat
- Mounted: relax path requirements (allow relative, non-cleaned paths, symlinks)
- Unescape fstype and source fields
- Documentation improvements

Testing/CI:

- Unit tests: exclude darwin
- CI: run tests under Fedora 32 to test openat2
- TestGetMounts: fix for Ubuntu build system
- Makefile: fix ignoring test failures
- CI: add cross build

github.com/moby/sys/mount v0.1.1
--------------------------------------------------------------------------------

https://github.com/moby/sys/releases/tag/mount%2Fv0.1.1

Improvements:

- RecursiveUnmount: add a fast path (moby#26)
- Unmount: improve doc
- fix CI linter warning on Windows

Testing/CI:

- Unit tests: exclude darwin
- Makefile: fix ignoring test failures
- CI: add cross build

Signed-off-by: Sebastiaan van Stijn <[email protected]>

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
pkg/mount: update deprecated wrappers
e766361
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title vendor: moby/sys mountinfo/v0.3.1 vendor: moby/sys mountinfo/v0.4.0 Oct 29, 2020
@thaJeztah
thaJeztah force-pushed the bump_mountinfo branch from f8b4800 to e766361 Compare October 29, 2020 22:05
@thaJeztah

thaJeztah commented Oct 29, 2020

Copy link
Copy Markdown
Member Author

updated to v0.4.0

@kolyshkin @cpuguy83 @AkihiroSuda PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah thaJeztah added this to the 20.10.0 milestone Oct 29, 2020
@thaJeztah thaJeztah mentioned this pull request Oct 29, 2020
replace pkg/symlink with github.com/moby/sys/symlink #41606
Merged
tiborvass
tiborvass approved these changes Nov 2, 2020
View reviewed changes
kolyshkin
kolyshkin approved these changes Nov 3, 2020
View reviewed changes

@kolyshkin kolyshkin left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
AkihiroSuda
AkihiroSuda approved these changes Nov 3, 2020
View reviewed changes
@AkihiroSuda
AkihiroSuda merged commit 0b93c6e into moby:master Nov 3, 2020
@thaJeztah
thaJeztah deleted the bump_mountinfo branch November 3, 2020 10:15
@TBBle

TBBle commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

It seems this PR broke the Windows unit tests, and in turn revealed that the Windows CI pipeline passes if the unit tests fail, as it somehow still exits with '0'. I'm looking into this now as I wanted to add a new Windows-specific test.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

thaJeztah commented Nov 5, 2020

Copy link
Copy Markdown
Member Author

Arf.. we had a tracking issue for the false reports in #39576, but thought it was fixed; apparently not 😞

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TBBle

TBBle commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

I suspect the fix for #39576 fixed the integration tests, but the unit tests are exiting 1 at one point, but still seeing an exit 0 later, which is what goes to Jenkins.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah thaJeztah mentioned this pull request Nov 5, 2020
pkg/mount: fix compile failure on Windows (move linux-only stubs0 #41637
Closed
@thaJeztah

thaJeztah commented Nov 5, 2020

Copy link
Copy Markdown
Member Author

opened #41637 to move the parts that were undefined on windows

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TBBle TBBle mentioned this pull request Nov 5, 2020
Reinstate Windows CI Pipeline usefulness #41638
Merged
@thaJeztah thaJeztah mentioned this pull request Nov 10, 2020
testutil: remove remaining use of deprecated pkg/mount #41658
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tiborvass tiborvass tiborvass approved these changes
@kolyshkin kolyshkin kolyshkin approved these changes
@AkihiroSuda AkihiroSuda AkihiroSuda approved these changes
@cpuguy83 cpuguy83 Awaiting requested review from cpuguy83

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Milestone

20.10.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

6 participants

@thaJeztah @kolyshkin @cpuguy83 @TBBle @tiborvass @AkihiroSuda
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.