Browse Source

Merge pull request #43241 from thaJeztah/update_moby_sys_fsnotify

vendor: fsnotify v1.5.1, moby/sys/mountinfo v0.6.0, moby/sys/signal v0.7.0
Akihiro Suda 3 years ago
parent
commit
12a5f54ad3

+ 3 - 3
vendor.mod

@@ -35,7 +35,7 @@ require (
 	github.com/docker/libtrust v0.0.0-20150526203908-9cbd2a1374f4
 	github.com/docker/libtrust v0.0.0-20150526203908-9cbd2a1374f4
 	github.com/docker/swarmkit v1.12.1-0.20210726173615-3629f50980f6
 	github.com/docker/swarmkit v1.12.1-0.20210726173615-3629f50980f6
 	github.com/fluent/fluent-logger-golang v1.9.0
 	github.com/fluent/fluent-logger-golang v1.9.0
-	github.com/fsnotify/fsnotify v1.4.9
+	github.com/fsnotify/fsnotify v1.5.1
 	github.com/godbus/dbus/v5 v5.0.6
 	github.com/godbus/dbus/v5 v5.0.6
 	github.com/gogo/protobuf v1.3.2
 	github.com/gogo/protobuf v1.3.2
 	github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2
 	github.com/golang/gddo v0.0.0-20190904175337-72a348e765d2
@@ -55,8 +55,8 @@ require (
 	github.com/moby/ipvs v1.0.1
 	github.com/moby/ipvs v1.0.1
 	github.com/moby/locker v1.0.1
 	github.com/moby/locker v1.0.1
 	github.com/moby/sys/mount v0.3.0
 	github.com/moby/sys/mount v0.3.0
-	github.com/moby/sys/mountinfo v0.5.0
-	github.com/moby/sys/signal v0.6.0
+	github.com/moby/sys/mountinfo v0.6.0
+	github.com/moby/sys/signal v0.7.0
 	github.com/moby/sys/symlink v0.2.0
 	github.com/moby/sys/symlink v0.2.0
 	github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
 	github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
 	github.com/morikuni/aec v1.0.0
 	github.com/morikuni/aec v1.0.0

+ 7 - 4
vendor.sum

@@ -294,8 +294,9 @@ github.com/form3tech-oss/jwt-go v3.2.2+incompatible/go.mod h1:pbq4aXjuKjdthFRnoD
 github.com/frankban/quicktest v1.11.3 h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY=
 github.com/frankban/quicktest v1.11.3 h1:8sXhOn0uLys67V8EsXLc6eszDs8VXWxL3iRvebPhedY=
 github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k=
 github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k=
 github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
 github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
-github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
 github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
 github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
+github.com/fsnotify/fsnotify v1.5.1 h1:mZcQUHVQUQWoPXXtuf9yuEXKudkV2sx1E06UadKWpgI=
+github.com/fsnotify/fsnotify v1.5.1/go.mod h1:T3375wBYaZdLLcVNkcVbzGHY7f1l/uK5T5Ai1i3InKU=
 github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA=
 github.com/fullsailor/pkcs7 v0.0.0-20190404230743-d7302db945fa/go.mod h1:KnogPXtdwXqoenmZCw6S+25EAm2MkxbG0deNDu4cbSA=
 github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
 github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
 github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
 github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
@@ -508,10 +509,11 @@ github.com/moby/sys/mount v0.3.0 h1:bXZYMmq7DBQPwHRxH/MG+u9+XF90ZOwoXpHTOznMGp0=
 github.com/moby/sys/mount v0.3.0/go.mod h1:U2Z3ur2rXPFrFmy4q6WMwWrBOAQGYtYTRVM8BIvzbwk=
 github.com/moby/sys/mount v0.3.0/go.mod h1:U2Z3ur2rXPFrFmy4q6WMwWrBOAQGYtYTRVM8BIvzbwk=
 github.com/moby/sys/mountinfo v0.4.0/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
 github.com/moby/sys/mountinfo v0.4.0/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
 github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
 github.com/moby/sys/mountinfo v0.4.1/go.mod h1:rEr8tzG/lsIZHBtN/JjGG+LMYx9eXgW2JI+6q0qou+A=
-github.com/moby/sys/mountinfo v0.5.0 h1:2Ks8/r6lopsxWi9m58nlwjaeSzUX9iiL1vj5qB/9ObI=
 github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU=
 github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU=
-github.com/moby/sys/signal v0.6.0 h1:aDpY94H8VlhTGa9sNYUFCFsMZIUh5wm0B6XkIoJj/iY=
-github.com/moby/sys/signal v0.6.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg=
+github.com/moby/sys/mountinfo v0.6.0 h1:gUDhXQx58YNrpHlK4nSL+7y2pxFZkUcXqzFDKWdC0Oo=
+github.com/moby/sys/mountinfo v0.6.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU=
+github.com/moby/sys/signal v0.7.0 h1:25RW3d5TnQEoKvRbEKUGay6DCQ46IxAVTT9CUMgmsSI=
+github.com/moby/sys/signal v0.7.0/go.mod h1:GQ6ObYZfqacOwTtlXvcmh9A26dVRul/hbOZn88Kg8Tg=
 github.com/moby/sys/symlink v0.1.0/go.mod h1:GGDODQmbFOjFsXvfLVn3+ZRxkch54RkSiGqsZeMYowQ=
 github.com/moby/sys/symlink v0.1.0/go.mod h1:GGDODQmbFOjFsXvfLVn3+ZRxkch54RkSiGqsZeMYowQ=
 github.com/moby/sys/symlink v0.2.0 h1:tk1rOM+Ljp0nFmfOIBtlV3rTDlWOwFRhjEeAhZB0nZc=
 github.com/moby/sys/symlink v0.2.0 h1:tk1rOM+Ljp0nFmfOIBtlV3rTDlWOwFRhjEeAhZB0nZc=
 github.com/moby/sys/symlink v0.2.0/go.mod h1:7uZVF2dqJjG/NsClqul95CqKOBRQyYSNnJ6BMgR/gFs=
 github.com/moby/sys/symlink v0.2.0/go.mod h1:7uZVF2dqJjG/NsClqul95CqKOBRQyYSNnJ6BMgR/gFs=
@@ -867,6 +869,7 @@ golang.org/x/sys v0.0.0-20210324051608-47abb6519492/go.mod h1:h1NjWce9XRLGQEsW7w
 golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20210426230700-d19ff857e887/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
 golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
 golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=

+ 2 - 0
vendor/github.com/fsnotify/fsnotify/.mailmap

@@ -0,0 +1,2 @@
+Chris Howey <howeyc@gmail.com> <chris@howey.me>
+Nathan Youngman <git@nathany.com> <4566+nathany@users.noreply.github.com>

+ 0 - 36
vendor/github.com/fsnotify/fsnotify/.travis.yml

@@ -1,36 +0,0 @@
-sudo: false
-language: go
-
-go:
-  - "stable"
-  - "1.11.x"
-  - "1.10.x"
-  - "1.9.x"
-
-matrix:
-  include:
-    - go: "stable"
-      env: GOLINT=true
-  allow_failures:
-    - go: tip
-  fast_finish: true
-
-
-before_install:
-  - if [ ! -z "${GOLINT}" ]; then go get -u golang.org/x/lint/golint; fi
-
-script:
-  - go test --race ./...
-
-after_script:
-  - test -z "$(gofmt -s -l -w . | tee /dev/stderr)"
-  - if [ ! -z  "${GOLINT}" ]; then echo running golint; golint --set_exit_status  ./...; else echo skipping golint; fi
-  - go vet ./...
-
-os:
-  - linux
-  - osx
-  - windows
-
-notifications:
-  email: false

+ 13 - 3
vendor/github.com/fsnotify/fsnotify/AUTHORS

@@ -4,35 +4,44 @@
 
 
 # You can update this list using the following command:
 # You can update this list using the following command:
 #
 #
-#   $ git shortlog -se | awk '{print $2 " " $3 " " $4}'
+#   $ (head -n10 AUTHORS && git shortlog -se | sed -E 's/^\s+[0-9]+\t//') | tee AUTHORS
 
 
 # Please keep the list sorted.
 # Please keep the list sorted.
 
 
 Aaron L <aaron@bettercoder.net>
 Aaron L <aaron@bettercoder.net>
 Adrien Bustany <adrien@bustany.org>
 Adrien Bustany <adrien@bustany.org>
+Alexey Kazakov <alkazako@redhat.com>
 Amit Krishnan <amit.krishnan@oracle.com>
 Amit Krishnan <amit.krishnan@oracle.com>
 Anmol Sethi <me@anmol.io>
 Anmol Sethi <me@anmol.io>
 Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
 Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
+Brian Goff <cpuguy83@gmail.com>
 Bruno Bigras <bigras.bruno@gmail.com>
 Bruno Bigras <bigras.bruno@gmail.com>
 Caleb Spare <cespare@gmail.com>
 Caleb Spare <cespare@gmail.com>
 Case Nelson <case@teammating.com>
 Case Nelson <case@teammating.com>
-Chris Howey <chris@howey.me> <howeyc@gmail.com>
+Chris Howey <howeyc@gmail.com>
 Christoffer Buchholz <christoffer.buchholz@gmail.com>
 Christoffer Buchholz <christoffer.buchholz@gmail.com>
 Daniel Wagner-Hall <dawagner@gmail.com>
 Daniel Wagner-Hall <dawagner@gmail.com>
 Dave Cheney <dave@cheney.net>
 Dave Cheney <dave@cheney.net>
+Eric Lin <linxiulei@gmail.com>
 Evan Phoenix <evan@fallingsnow.net>
 Evan Phoenix <evan@fallingsnow.net>
 Francisco Souza <f@souza.cc>
 Francisco Souza <f@souza.cc>
+Gautam Dey <gautam.dey77@gmail.com>
 Hari haran <hariharan.uno@gmail.com>
 Hari haran <hariharan.uno@gmail.com>
-John C Barstow
+Ichinose Shogo <shogo82148@gmail.com>
+Johannes Ebke <johannes@ebke.org>
+John C Barstow <jbowtie@amathaine.com>
 Kelvin Fo <vmirage@gmail.com>
 Kelvin Fo <vmirage@gmail.com>
 Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
 Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
 Matt Layher <mdlayher@gmail.com>
 Matt Layher <mdlayher@gmail.com>
+Matthias Stone <matthias@bellstone.ca>
 Nathan Youngman <git@nathany.com>
 Nathan Youngman <git@nathany.com>
 Nickolai Zeldovich <nickolai@csail.mit.edu>
 Nickolai Zeldovich <nickolai@csail.mit.edu>
+Oliver Bristow <evilumbrella+github@gmail.com>
 Patrick <patrick@dropbox.com>
 Patrick <patrick@dropbox.com>
 Paul Hammond <paul@paulhammond.org>
 Paul Hammond <paul@paulhammond.org>
 Pawel Knap <pawelknap88@gmail.com>
 Pawel Knap <pawelknap88@gmail.com>
 Pieter Droogendijk <pieter@binky.org.uk>
 Pieter Droogendijk <pieter@binky.org.uk>
+Pratik Shinde <pratikshinde320@gmail.com>
 Pursuit92 <JoshChase@techpursuit.net>
 Pursuit92 <JoshChase@techpursuit.net>
 Riku Voipio <riku.voipio@linaro.org>
 Riku Voipio <riku.voipio@linaro.org>
 Rob Figueiredo <robfig@gmail.com>
 Rob Figueiredo <robfig@gmail.com>
@@ -41,6 +50,7 @@ Slawek Ligus <root@ooz.ie>
 Soge Zhang <zhssoge@gmail.com>
 Soge Zhang <zhssoge@gmail.com>
 Tiffany Jernigan <tiffany.jernigan@intel.com>
 Tiffany Jernigan <tiffany.jernigan@intel.com>
 Tilak Sharma <tilaks@google.com>
 Tilak Sharma <tilaks@google.com>
+Tobias Klauser <tobias.klauser@gmail.com>
 Tom Payne <twpayne@gmail.com>
 Tom Payne <twpayne@gmail.com>
 Travis Cline <travis.cline@gmail.com>
 Travis Cline <travis.cline@gmail.com>
 Tudor Golubenco <tudor.g@gmail.com>
 Tudor Golubenco <tudor.g@gmail.com>

+ 69 - 47
vendor/github.com/fsnotify/fsnotify/CHANGELOG.md

@@ -1,6 +1,28 @@
 # Changelog
 # Changelog
 
 
-## v1.4.7 / 2018-01-09
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [Unreleased]
+
+## [1.5.1] - 2021-08-24
+
+* Revert Add AddRaw to not follow symlinks
+
+## [1.5.0] - 2021-08-20
+
+* Go: Increase minimum required version to Go 1.12 [#381](https://github.com/fsnotify/fsnotify/pull/381)
+* Feature: Add AddRaw method which does not follow symlinks when adding a watch [#289](https://github.com/fsnotify/fsnotify/pull/298)
+* Windows: Follow symlinks by default like on all other systems [#289](https://github.com/fsnotify/fsnotify/pull/289)
+* CI: Use GitHub Actions for CI and cover go 1.12-1.17
+   [#378](https://github.com/fsnotify/fsnotify/pull/378)
+   [#381](https://github.com/fsnotify/fsnotify/pull/381)
+   [#385](https://github.com/fsnotify/fsnotify/pull/385)
+* Go 1.14+: Fix unsafe pointer conversion [#325](https://github.com/fsnotify/fsnotify/pull/325)
+
+## [1.4.7] - 2018-01-09
 
 
 * BSD/macOS: Fix possible deadlock on closing the watcher on kqueue (thanks @nhooyr and @glycerine)
 * BSD/macOS: Fix possible deadlock on closing the watcher on kqueue (thanks @nhooyr and @glycerine)
 * Tests: Fix missing verb on format string (thanks @rchiossi)
 * Tests: Fix missing verb on format string (thanks @rchiossi)
@@ -10,62 +32,62 @@
 * Linux: Properly handle inotify's IN_Q_OVERFLOW event (thanks @zeldovich)
 * Linux: Properly handle inotify's IN_Q_OVERFLOW event (thanks @zeldovich)
 * Docs: replace references to OS X with macOS
 * Docs: replace references to OS X with macOS
 
 
-## v1.4.2 / 2016-10-10
+## [1.4.2] - 2016-10-10
 
 
 * Linux: use InotifyInit1 with IN_CLOEXEC to stop leaking a file descriptor to a child process when using fork/exec [#178](https://github.com/fsnotify/fsnotify/pull/178) (thanks @pattyshack)
 * Linux: use InotifyInit1 with IN_CLOEXEC to stop leaking a file descriptor to a child process when using fork/exec [#178](https://github.com/fsnotify/fsnotify/pull/178) (thanks @pattyshack)
 
 
-## v1.4.1 / 2016-10-04
+## [1.4.1] - 2016-10-04
 
 
 * Fix flaky inotify stress test on Linux [#177](https://github.com/fsnotify/fsnotify/pull/177) (thanks @pattyshack)
 * Fix flaky inotify stress test on Linux [#177](https://github.com/fsnotify/fsnotify/pull/177) (thanks @pattyshack)
 
 
-## v1.4.0 / 2016-10-01
+## [1.4.0] - 2016-10-01
 
 
 * add a String() method to Event.Op [#165](https://github.com/fsnotify/fsnotify/pull/165) (thanks @oozie)
 * add a String() method to Event.Op [#165](https://github.com/fsnotify/fsnotify/pull/165) (thanks @oozie)
 
 
-## v1.3.1 / 2016-06-28
+## [1.3.1] - 2016-06-28
 
 
 * Windows: fix for double backslash when watching the root of a drive [#151](https://github.com/fsnotify/fsnotify/issues/151) (thanks @brunoqc)
 * Windows: fix for double backslash when watching the root of a drive [#151](https://github.com/fsnotify/fsnotify/issues/151) (thanks @brunoqc)
 
 
-## v1.3.0 / 2016-04-19
+## [1.3.0] - 2016-04-19
 
 
 * Support linux/arm64 by [patching](https://go-review.googlesource.com/#/c/21971/) x/sys/unix and switching to to it from syscall (thanks @suihkulokki) [#135](https://github.com/fsnotify/fsnotify/pull/135)
 * Support linux/arm64 by [patching](https://go-review.googlesource.com/#/c/21971/) x/sys/unix and switching to to it from syscall (thanks @suihkulokki) [#135](https://github.com/fsnotify/fsnotify/pull/135)
 
 
-## v1.2.10 / 2016-03-02
+## [1.2.10] - 2016-03-02
 
 
 * Fix golint errors in windows.go [#121](https://github.com/fsnotify/fsnotify/pull/121) (thanks @tiffanyfj)
 * Fix golint errors in windows.go [#121](https://github.com/fsnotify/fsnotify/pull/121) (thanks @tiffanyfj)
 
 
-## v1.2.9 / 2016-01-13
+## [1.2.9] - 2016-01-13
 
 
 kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsnotify/pull/111) (thanks @bep)
 kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsnotify/pull/111) (thanks @bep)
 
 
-## v1.2.8 / 2015-12-17
+## [1.2.8] - 2015-12-17
 
 
 * kqueue: fix race condition in Close [#105](https://github.com/fsnotify/fsnotify/pull/105) (thanks @djui for reporting the issue and @ppknap for writing a failing test)
 * kqueue: fix race condition in Close [#105](https://github.com/fsnotify/fsnotify/pull/105) (thanks @djui for reporting the issue and @ppknap for writing a failing test)
 * inotify: fix race in test
 * inotify: fix race in test
 * enable race detection for continuous integration (Linux, Mac, Windows)
 * enable race detection for continuous integration (Linux, Mac, Windows)
 
 
-## v1.2.5 / 2015-10-17
+## [1.2.5] - 2015-10-17
 
 
 * inotify: use epoll_create1 for arm64 support (requires Linux 2.6.27 or later) [#100](https://github.com/fsnotify/fsnotify/pull/100) (thanks @suihkulokki)
 * inotify: use epoll_create1 for arm64 support (requires Linux 2.6.27 or later) [#100](https://github.com/fsnotify/fsnotify/pull/100) (thanks @suihkulokki)
 * inotify: fix path leaks [#73](https://github.com/fsnotify/fsnotify/pull/73) (thanks @chamaken)
 * inotify: fix path leaks [#73](https://github.com/fsnotify/fsnotify/pull/73) (thanks @chamaken)
 * kqueue: watch for rename events on subdirectories [#83](https://github.com/fsnotify/fsnotify/pull/83) (thanks @guotie)
 * kqueue: watch for rename events on subdirectories [#83](https://github.com/fsnotify/fsnotify/pull/83) (thanks @guotie)
 * kqueue: avoid infinite loops from symlinks cycles [#101](https://github.com/fsnotify/fsnotify/pull/101) (thanks @illicitonion)
 * kqueue: avoid infinite loops from symlinks cycles [#101](https://github.com/fsnotify/fsnotify/pull/101) (thanks @illicitonion)
 
 
-## v1.2.1 / 2015-10-14
+## [1.2.1] - 2015-10-14
 
 
 * kqueue: don't watch named pipes [#98](https://github.com/fsnotify/fsnotify/pull/98) (thanks @evanphx)
 * kqueue: don't watch named pipes [#98](https://github.com/fsnotify/fsnotify/pull/98) (thanks @evanphx)
 
 
-## v1.2.0 / 2015-02-08
+## [1.2.0] - 2015-02-08
 
 
 * inotify: use epoll to wake up readEvents [#66](https://github.com/fsnotify/fsnotify/pull/66) (thanks @PieterD)
 * inotify: use epoll to wake up readEvents [#66](https://github.com/fsnotify/fsnotify/pull/66) (thanks @PieterD)
 * inotify: closing watcher should now always shut down goroutine [#63](https://github.com/fsnotify/fsnotify/pull/63) (thanks @PieterD)
 * inotify: closing watcher should now always shut down goroutine [#63](https://github.com/fsnotify/fsnotify/pull/63) (thanks @PieterD)
 * kqueue: close kqueue after removing watches, fixes [#59](https://github.com/fsnotify/fsnotify/issues/59)
 * kqueue: close kqueue after removing watches, fixes [#59](https://github.com/fsnotify/fsnotify/issues/59)
 
 
-## v1.1.1 / 2015-02-05
+## [1.1.1] - 2015-02-05
 
 
 * inotify: Retry read on EINTR [#61](https://github.com/fsnotify/fsnotify/issues/61) (thanks @PieterD)
 * inotify: Retry read on EINTR [#61](https://github.com/fsnotify/fsnotify/issues/61) (thanks @PieterD)
 
 
-## v1.1.0 / 2014-12-12
+## [1.1.0] - 2014-12-12
 
 
 * kqueue: rework internals [#43](https://github.com/fsnotify/fsnotify/pull/43)
 * kqueue: rework internals [#43](https://github.com/fsnotify/fsnotify/pull/43)
     * add low-level functions
     * add low-level functions
@@ -77,22 +99,22 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn
 * kqueue: fix regression in  rework causing subdirectories to be watched [#48](https://github.com/fsnotify/fsnotify/issues/48)
 * kqueue: fix regression in  rework causing subdirectories to be watched [#48](https://github.com/fsnotify/fsnotify/issues/48)
 * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51)
 * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51)
 
 
-## v1.0.4 / 2014-09-07
+## [1.0.4] - 2014-09-07
 
 
 * kqueue: add dragonfly to the build tags.
 * kqueue: add dragonfly to the build tags.
 * Rename source code files, rearrange code so exported APIs are at the top.
 * Rename source code files, rearrange code so exported APIs are at the top.
 * Add done channel to example code. [#37](https://github.com/fsnotify/fsnotify/pull/37) (thanks @chenyukang)
 * Add done channel to example code. [#37](https://github.com/fsnotify/fsnotify/pull/37) (thanks @chenyukang)
 
 
-## v1.0.3 / 2014-08-19
+## [1.0.3] - 2014-08-19
 
 
 * [Fix] Windows MOVED_TO now translates to Create like on BSD and Linux. [#36](https://github.com/fsnotify/fsnotify/issues/36)
 * [Fix] Windows MOVED_TO now translates to Create like on BSD and Linux. [#36](https://github.com/fsnotify/fsnotify/issues/36)
 
 
-## v1.0.2 / 2014-08-17
+## [1.0.2] - 2014-08-17
 
 
 * [Fix] Missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso)
 * [Fix] Missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso)
 * [Fix] Make ./path and path equivalent. (thanks @zhsso)
 * [Fix] Make ./path and path equivalent. (thanks @zhsso)
 
 
-## v1.0.0 / 2014-08-15
+## [1.0.0] - 2014-08-15
 
 
 * [API] Remove AddWatch on Windows, use Add.
 * [API] Remove AddWatch on Windows, use Add.
 * Improve documentation for exported identifiers. [#30](https://github.com/fsnotify/fsnotify/issues/30)
 * Improve documentation for exported identifiers. [#30](https://github.com/fsnotify/fsnotify/issues/30)
@@ -146,51 +168,51 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn
     * no tests for the current implementation
     * no tests for the current implementation
     * not fully implemented on Windows [#93](https://github.com/howeyc/fsnotify/issues/93#issuecomment-39285195)
     * not fully implemented on Windows [#93](https://github.com/howeyc/fsnotify/issues/93#issuecomment-39285195)
 
 
-## v0.9.3 / 2014-12-31
+## [0.9.3] - 2014-12-31
 
 
 * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51)
 * kqueue: cleanup internal watch before sending remove event [#51](https://github.com/fsnotify/fsnotify/issues/51)
 
 
-## v0.9.2 / 2014-08-17
+## [0.9.2] - 2014-08-17
 
 
 * [Backport] Fix missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso)
 * [Backport] Fix missing create events on macOS. [#14](https://github.com/fsnotify/fsnotify/issues/14) (thanks @zhsso)
 
 
-## v0.9.1 / 2014-06-12
+## [0.9.1] - 2014-06-12
 
 
 * Fix data race on kevent buffer (thanks @tilaks) [#98](https://github.com/howeyc/fsnotify/pull/98)
 * Fix data race on kevent buffer (thanks @tilaks) [#98](https://github.com/howeyc/fsnotify/pull/98)
 
 
-## v0.9.0 / 2014-01-17
+## [0.9.0] - 2014-01-17
 
 
 * IsAttrib() for events that only concern a file's metadata [#79][] (thanks @abustany)
 * IsAttrib() for events that only concern a file's metadata [#79][] (thanks @abustany)
 * [Fix] kqueue: fix deadlock [#77][] (thanks @cespare)
 * [Fix] kqueue: fix deadlock [#77][] (thanks @cespare)
 * [NOTICE] Development has moved to `code.google.com/p/go.exp/fsnotify` in preparation for inclusion in the Go standard library.
 * [NOTICE] Development has moved to `code.google.com/p/go.exp/fsnotify` in preparation for inclusion in the Go standard library.
 
 
-## v0.8.12 / 2013-11-13
+## [0.8.12] - 2013-11-13
 
 
 * [API] Remove FD_SET and friends from Linux adapter
 * [API] Remove FD_SET and friends from Linux adapter
 
 
-## v0.8.11 / 2013-11-02
+## [0.8.11] - 2013-11-02
 
 
 * [Doc] Add Changelog [#72][] (thanks @nathany)
 * [Doc] Add Changelog [#72][] (thanks @nathany)
 * [Doc] Spotlight and double modify events on macOS [#62][] (reported by @paulhammond)
 * [Doc] Spotlight and double modify events on macOS [#62][] (reported by @paulhammond)
 
 
-## v0.8.10 / 2013-10-19
+## [0.8.10] - 2013-10-19
 
 
 * [Fix] kqueue: remove file watches when parent directory is removed [#71][] (reported by @mdwhatcott)
 * [Fix] kqueue: remove file watches when parent directory is removed [#71][] (reported by @mdwhatcott)
 * [Fix] kqueue: race between Close and readEvents [#70][] (reported by @bernerdschaefer)
 * [Fix] kqueue: race between Close and readEvents [#70][] (reported by @bernerdschaefer)
 * [Doc] specify OS-specific limits in README (thanks @debrando)
 * [Doc] specify OS-specific limits in README (thanks @debrando)
 
 
-## v0.8.9 / 2013-09-08
+## [0.8.9] - 2013-09-08
 
 
 * [Doc] Contributing (thanks @nathany)
 * [Doc] Contributing (thanks @nathany)
 * [Doc] update package path in example code [#63][] (thanks @paulhammond)
 * [Doc] update package path in example code [#63][] (thanks @paulhammond)
 * [Doc] GoCI badge in README (Linux only) [#60][]
 * [Doc] GoCI badge in README (Linux only) [#60][]
 * [Doc] Cross-platform testing with Vagrant  [#59][] (thanks @nathany)
 * [Doc] Cross-platform testing with Vagrant  [#59][] (thanks @nathany)
 
 
-## v0.8.8 / 2013-06-17
+## [0.8.8] - 2013-06-17
 
 
 * [Fix] Windows: handle `ERROR_MORE_DATA` on Windows [#49][] (thanks @jbowtie)
 * [Fix] Windows: handle `ERROR_MORE_DATA` on Windows [#49][] (thanks @jbowtie)
 
 
-## v0.8.7 / 2013-06-03
+## [0.8.7] - 2013-06-03
 
 
 * [API] Make syscall flags internal
 * [API] Make syscall flags internal
 * [Fix] inotify: ignore event changes
 * [Fix] inotify: ignore event changes
@@ -198,74 +220,74 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn
 * [Fix] tests on Windows
 * [Fix] tests on Windows
 * lower case error messages
 * lower case error messages
 
 
-## v0.8.6 / 2013-05-23
+## [0.8.6] - 2013-05-23
 
 
 * kqueue: Use EVT_ONLY flag on Darwin
 * kqueue: Use EVT_ONLY flag on Darwin
 * [Doc] Update README with full example
 * [Doc] Update README with full example
 
 
-## v0.8.5 / 2013-05-09
+## [0.8.5] - 2013-05-09
 
 
 * [Fix] inotify: allow monitoring of "broken" symlinks (thanks @tsg)
 * [Fix] inotify: allow monitoring of "broken" symlinks (thanks @tsg)
 
 
-## v0.8.4 / 2013-04-07
+## [0.8.4] - 2013-04-07
 
 
 * [Fix] kqueue: watch all file events [#40][] (thanks @ChrisBuchholz)
 * [Fix] kqueue: watch all file events [#40][] (thanks @ChrisBuchholz)
 
 
-## v0.8.3 / 2013-03-13
+## [0.8.3] - 2013-03-13
 
 
 * [Fix] inoitfy/kqueue memory leak [#36][] (reported by @nbkolchin)
 * [Fix] inoitfy/kqueue memory leak [#36][] (reported by @nbkolchin)
 * [Fix] kqueue: use fsnFlags for watching a directory [#33][] (reported by @nbkolchin)
 * [Fix] kqueue: use fsnFlags for watching a directory [#33][] (reported by @nbkolchin)
 
 
-## v0.8.2 / 2013-02-07
+## [0.8.2] - 2013-02-07
 
 
 * [Doc] add Authors
 * [Doc] add Authors
 * [Fix] fix data races for map access [#29][] (thanks @fsouza)
 * [Fix] fix data races for map access [#29][] (thanks @fsouza)
 
 
-## v0.8.1 / 2013-01-09
+## [0.8.1] - 2013-01-09
 
 
 * [Fix] Windows path separators
 * [Fix] Windows path separators
 * [Doc] BSD License
 * [Doc] BSD License
 
 
-## v0.8.0 / 2012-11-09
+## [0.8.0] - 2012-11-09
 
 
 * kqueue: directory watching improvements (thanks @vmirage)
 * kqueue: directory watching improvements (thanks @vmirage)
 * inotify: add `IN_MOVED_TO` [#25][] (requested by @cpisto)
 * inotify: add `IN_MOVED_TO` [#25][] (requested by @cpisto)
 * [Fix] kqueue: deleting watched directory [#24][] (reported by @jakerr)
 * [Fix] kqueue: deleting watched directory [#24][] (reported by @jakerr)
 
 
-## v0.7.4 / 2012-10-09
+## [0.7.4] - 2012-10-09
 
 
 * [Fix] inotify: fixes from https://codereview.appspot.com/5418045/ (ugorji)
 * [Fix] inotify: fixes from https://codereview.appspot.com/5418045/ (ugorji)
 * [Fix] kqueue: preserve watch flags when watching for delete [#21][] (reported by @robfig)
 * [Fix] kqueue: preserve watch flags when watching for delete [#21][] (reported by @robfig)
 * [Fix] kqueue: watch the directory even if it isn't a new watch (thanks @robfig)
 * [Fix] kqueue: watch the directory even if it isn't a new watch (thanks @robfig)
 * [Fix] kqueue: modify after recreation of file
 * [Fix] kqueue: modify after recreation of file
 
 
-## v0.7.3 / 2012-09-27
+## [0.7.3] - 2012-09-27
 
 
 * [Fix] kqueue: watch with an existing folder inside the watched folder (thanks @vmirage)
 * [Fix] kqueue: watch with an existing folder inside the watched folder (thanks @vmirage)
 * [Fix] kqueue: no longer get duplicate CREATE events
 * [Fix] kqueue: no longer get duplicate CREATE events
 
 
-## v0.7.2 / 2012-09-01
+## [0.7.2] - 2012-09-01
 
 
 * kqueue: events for created directories
 * kqueue: events for created directories
 
 
-## v0.7.1 / 2012-07-14
+## [0.7.1] - 2012-07-14
 
 
 * [Fix] for renaming files
 * [Fix] for renaming files
 
 
-## v0.7.0 / 2012-07-02
+## [0.7.0] - 2012-07-02
 
 
 * [Feature] FSNotify flags
 * [Feature] FSNotify flags
 * [Fix] inotify: Added file name back to event path
 * [Fix] inotify: Added file name back to event path
 
 
-## v0.6.0 / 2012-06-06
+## [0.6.0] - 2012-06-06
 
 
 * kqueue: watch files after directory created (thanks @tmc)
 * kqueue: watch files after directory created (thanks @tmc)
 
 
-## v0.5.1 / 2012-05-22
+## [0.5.1] - 2012-05-22
 
 
 * [Fix] inotify: remove all watches before Close()
 * [Fix] inotify: remove all watches before Close()
 
 
-## v0.5.0 / 2012-05-03
+## [0.5.0] - 2012-05-03
 
 
 * [API] kqueue: return errors during watch instead of sending over channel
 * [API] kqueue: return errors during watch instead of sending over channel
 * kqueue: match symlink behavior on Linux
 * kqueue: match symlink behavior on Linux
@@ -273,22 +295,22 @@ kqueue: Fix logic for CREATE after REMOVE [#111](https://github.com/fsnotify/fsn
 * [Fix] kqueue: handle EINTR (reported by @robfig)
 * [Fix] kqueue: handle EINTR (reported by @robfig)
 * [Doc] Godoc example [#1][] (thanks @davecheney)
 * [Doc] Godoc example [#1][] (thanks @davecheney)
 
 
-## v0.4.0 / 2012-03-30
+## [0.4.0] - 2012-03-30
 
 
 * Go 1 released: build with go tool
 * Go 1 released: build with go tool
 * [Feature] Windows support using winfsnotify
 * [Feature] Windows support using winfsnotify
 * Windows does not have attribute change notifications
 * Windows does not have attribute change notifications
 * Roll attribute notifications into IsModify
 * Roll attribute notifications into IsModify
 
 
-## v0.3.0 / 2012-02-19
+## [0.3.0] - 2012-02-19
 
 
 * kqueue: add files when watch directory
 * kqueue: add files when watch directory
 
 
-## v0.2.0 / 2011-12-30
+## [0.2.0] - 2011-12-30
 
 
 * update to latest Go weekly code
 * update to latest Go weekly code
 
 
-## v0.1.0 / 2011-10-19
+## [0.1.0] - 2011-10-19
 
 
 * kqueue: add watch on file creation to match inotify
 * kqueue: add watch on file creation to match inotify
 * kqueue: create file event
 * kqueue: create file event

+ 3 - 3
vendor/github.com/fsnotify/fsnotify/README.md

@@ -12,9 +12,9 @@ Cross platform: Windows, Linux, BSD and macOS.
 
 
 | Adapter               | OS                               | Status                                                                                                                          |
 | Adapter               | OS                               | Status                                                                                                                          |
 | --------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
 | --------------------- | -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- |
-| inotify               | Linux 2.6.27 or later, Android\* | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
-| kqueue                | BSD, macOS, iOS\*                | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
-| ReadDirectoryChangesW | Windows                          | Supported [![Build Status](https://travis-ci.org/fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/fsnotify/fsnotify) |
+| inotify               | Linux 2.6.27 or later, Android\* | Supported |
+| kqueue                | BSD, macOS, iOS\*                | Supported |
+| ReadDirectoryChangesW | Windows                          | Supported |
 | FSEvents              | macOS                            | [Planned](https://github.com/fsnotify/fsnotify/issues/11)                                                                       |
 | FSEvents              | macOS                            | [Planned](https://github.com/fsnotify/fsnotify/issues/11)                                                                       |
 | FEN                   | Solaris 11                       | [In Progress](https://github.com/fsnotify/fsnotify/issues/12)                                                                   |
 | FEN                   | Solaris 11                       | [In Progress](https://github.com/fsnotify/fsnotify/issues/12)                                                                   |
 | fanotify              | Linux 2.6.37+                    | [Planned](https://github.com/fsnotify/fsnotify/issues/114)                                                                      |
 | fanotify              | Linux 2.6.37+                    | [Planned](https://github.com/fsnotify/fsnotify/issues/114)                                                                      |

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/fen.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build solaris
 // +build solaris
 // +build solaris
 
 
 package fsnotify
 package fsnotify

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/fsnotify.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build !plan9
 // +build !plan9
 // +build !plan9
 
 
 // Package fsnotify provides a platform-independent interface for file system notifications.
 // Package fsnotify provides a platform-independent interface for file system notifications.

+ 2 - 1
vendor/github.com/fsnotify/fsnotify/inotify.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build linux
 // +build linux
 // +build linux
 
 
 package fsnotify
 package fsnotify
@@ -272,7 +273,7 @@ func (w *Watcher) readEvents() {
 
 
 			if nameLen > 0 {
 			if nameLen > 0 {
 				// Point "bytes" at the first byte of the filename
 				// Point "bytes" at the first byte of the filename
-				bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&buf[offset+unix.SizeofInotifyEvent]))
+				bytes := (*[unix.PathMax]byte)(unsafe.Pointer(&buf[offset+unix.SizeofInotifyEvent]))[:nameLen:nameLen]
 				// The filename is padded with NULL bytes. TrimRight() gets rid of those.
 				// The filename is padded with NULL bytes. TrimRight() gets rid of those.
 				name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000")
 				name += "/" + strings.TrimRight(string(bytes[0:nameLen]), "\000")
 			}
 			}

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/inotify_poller.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build linux
 // +build linux
 // +build linux
 
 
 package fsnotify
 package fsnotify

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/kqueue.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build freebsd || openbsd || netbsd || dragonfly || darwin
 // +build freebsd openbsd netbsd dragonfly darwin
 // +build freebsd openbsd netbsd dragonfly darwin
 
 
 package fsnotify
 package fsnotify

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/open_mode_bsd.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build freebsd || openbsd || netbsd || dragonfly
 // +build freebsd openbsd netbsd dragonfly
 // +build freebsd openbsd netbsd dragonfly
 
 
 package fsnotify
 package fsnotify

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/open_mode_darwin.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build darwin
 // +build darwin
 // +build darwin
 
 
 package fsnotify
 package fsnotify

+ 1 - 0
vendor/github.com/fsnotify/fsnotify/windows.go

@@ -2,6 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 // license that can be found in the LICENSE file.
 
 
+//go:build windows
 // +build windows
 // +build windows
 
 
 package fsnotify
 package fsnotify

+ 51 - 7
vendor/github.com/moby/sys/mountinfo/mounted_linux.go

@@ -7,6 +7,34 @@ import (
 	"golang.org/x/sys/unix"
 	"golang.org/x/sys/unix"
 )
 )
 
 
+// MountedFast is a method of detecting a mount point without reading
+// mountinfo from procfs. A caller can only trust the result if no error
+// and sure == true are returned. Otherwise, other methods (e.g. parsing
+// /proc/mounts) have to be used. If unsure, use Mounted instead (which
+// uses MountedFast, but falls back to parsing mountinfo if needed).
+//
+// If a non-existent path is specified, an appropriate error is returned.
+// In case the caller is not interested in this particular error, it should
+// be handled separately using e.g. errors.Is(err, os.ErrNotExist).
+//
+// This function is only available on Linux. When available (since kernel
+// v5.6), openat2(2) syscall is used to reliably detect all mounts. Otherwise,
+// the implementation falls back to using stat(2), which can reliably detect
+// normal (but not bind) mounts.
+func MountedFast(path string) (mounted, sure bool, err error) {
+	// Root is always mounted.
+	if path == string(os.PathSeparator) {
+		return true, true, nil
+	}
+
+	path, err = normalizePath(path)
+	if err != nil {
+		return false, false, err
+	}
+	mounted, sure, err = mountedFast(path)
+	return
+}
+
 // mountedByOpenat2 is a method of detecting a mount that works for all kinds
 // mountedByOpenat2 is a method of detecting a mount that works for all kinds
 // of mounts (incl. bind mounts), but requires a recent (v5.6+) linux kernel.
 // of mounts (incl. bind mounts), but requires a recent (v5.6+) linux kernel.
 func mountedByOpenat2(path string) (bool, error) {
 func mountedByOpenat2(path string) (bool, error) {
@@ -34,24 +62,40 @@ func mountedByOpenat2(path string) (bool, error) {
 	return false, &os.PathError{Op: "openat2", Path: path, Err: err}
 	return false, &os.PathError{Op: "openat2", Path: path, Err: err}
 }
 }
 
 
-func mounted(path string) (bool, error) {
-	path, err := normalizePath(path)
-	if err != nil {
-		return false, err
+// mountedFast is similar to MountedFast, except it expects a normalized path.
+func mountedFast(path string) (mounted, sure bool, err error) {
+	// Root is always mounted.
+	if path == string(os.PathSeparator) {
+		return true, true, nil
 	}
 	}
+
 	// Try a fast path, using openat2() with RESOLVE_NO_XDEV.
 	// Try a fast path, using openat2() with RESOLVE_NO_XDEV.
-	mounted, err := mountedByOpenat2(path)
+	mounted, err = mountedByOpenat2(path)
 	if err == nil {
 	if err == nil {
-		return mounted, nil
+		return mounted, true, nil
 	}
 	}
+
 	// Another fast path: compare st.st_dev fields.
 	// Another fast path: compare st.st_dev fields.
 	mounted, err = mountedByStat(path)
 	mounted, err = mountedByStat(path)
 	// This does not work for bind mounts, so false negative
 	// This does not work for bind mounts, so false negative
 	// is possible, therefore only trust if return is true.
 	// is possible, therefore only trust if return is true.
 	if mounted && err == nil {
 	if mounted && err == nil {
+		return true, true, nil
+	}
+
+	return
+}
+
+func mounted(path string) (bool, error) {
+	path, err := normalizePath(path)
+	if err != nil {
+		return false, err
+	}
+	mounted, sure, err := mountedFast(path)
+	if sure && err == nil {
 		return mounted, nil
 		return mounted, nil
 	}
 	}
 
 
-	// Fallback to parsing mountinfo
+	// Fallback to parsing mountinfo.
 	return mountedByMountinfo(path)
 	return mountedByMountinfo(path)
 }
 }

+ 3 - 3
vendor/github.com/moby/sys/mountinfo/mountinfo.go

@@ -13,9 +13,9 @@ func GetMounts(f FilterFunc) ([]*Info, error) {
 // Mounted determines if a specified path is a mount point. In case of any
 // Mounted determines if a specified path is a mount point. In case of any
 // error, false (and an error) is returned.
 // error, false (and an error) is returned.
 //
 //
-// The non-existent path returns an error. If a caller is not interested
-// in this particular error, it should handle it separately using e.g.
-// errors.Is(err, os.ErrNotExist).
+// If a non-existent path is specified, an appropriate error is returned.
+// In case the caller is not interested in this particular error, it should
+// be handled separately using e.g. errors.Is(err, os.ErrNotExist).
 func Mounted(path string) (bool, error) {
 func Mounted(path string) (bool, error) {
 	// root is always mounted
 	// root is always mounted
 	if path == string(os.PathSeparator) {
 	if path == string(os.PathSeparator) {

+ 23 - 0
vendor/github.com/moby/sys/signal/signal_windows.go

@@ -31,4 +31,27 @@ var SignalMap = map[string]syscall.Signal{
 	"SEGV": syscall.Signal(windows.SIGSEGV),
 	"SEGV": syscall.Signal(windows.SIGSEGV),
 	"TERM": syscall.Signal(windows.SIGTERM),
 	"TERM": syscall.Signal(windows.SIGTERM),
 	"TRAP": syscall.Signal(windows.SIGTRAP),
 	"TRAP": syscall.Signal(windows.SIGTRAP),
+
+	// additional linux signals supported for LCOW
+	"CHLD":   syscall.Signal(0x11),
+	"CLD":    syscall.Signal(0x11),
+	"CONT":   syscall.Signal(0x12),
+	"IO":     syscall.Signal(0x1d),
+	"IOT":    syscall.Signal(0x6),
+	"POLL":   syscall.Signal(0x1d),
+	"PROF":   syscall.Signal(0x1b),
+	"PWR":    syscall.Signal(0x1e),
+	"STKFLT": syscall.Signal(0x10),
+	"STOP":   syscall.Signal(0x13),
+	"SYS":    syscall.Signal(0x1f),
+	"TSTP":   syscall.Signal(0x14),
+	"TTIN":   syscall.Signal(0x15),
+	"TTOU":   syscall.Signal(0x16),
+	"URG":    syscall.Signal(0x17),
+	"USR1":   syscall.Signal(0xa),
+	"USR2":   syscall.Signal(0xc),
+	"VTALRM": syscall.Signal(0x1a),
+	"WINCH":  syscall.Signal(0x1c),
+	"XCPU":   syscall.Signal(0x18),
+	"XFSZ":   syscall.Signal(0x19),
 }
 }

+ 3 - 3
vendor/modules.txt

@@ -384,7 +384,7 @@ github.com/fernet/fernet-go
 # github.com/fluent/fluent-logger-golang v1.9.0
 # github.com/fluent/fluent-logger-golang v1.9.0
 ## explicit
 ## explicit
 github.com/fluent/fluent-logger-golang/fluent
 github.com/fluent/fluent-logger-golang/fluent
-# github.com/fsnotify/fsnotify v1.4.9
+# github.com/fsnotify/fsnotify v1.5.1
 ## explicit; go 1.13
 ## explicit; go 1.13
 github.com/fsnotify/fsnotify
 github.com/fsnotify/fsnotify
 # github.com/godbus/dbus/v5 v5.0.6
 # github.com/godbus/dbus/v5 v5.0.6
@@ -640,10 +640,10 @@ github.com/moby/locker
 # github.com/moby/sys/mount v0.3.0
 # github.com/moby/sys/mount v0.3.0
 ## explicit; go 1.16
 ## explicit; go 1.16
 github.com/moby/sys/mount
 github.com/moby/sys/mount
-# github.com/moby/sys/mountinfo v0.5.0
+# github.com/moby/sys/mountinfo v0.6.0
 ## explicit; go 1.16
 ## explicit; go 1.16
 github.com/moby/sys/mountinfo
 github.com/moby/sys/mountinfo
-# github.com/moby/sys/signal v0.6.0
+# github.com/moby/sys/signal v0.7.0
 ## explicit; go 1.16
 ## explicit; go 1.16
 github.com/moby/sys/signal
 github.com/moby/sys/signal
 # github.com/moby/sys/symlink v0.2.0
 # github.com/moby/sys/symlink v0.2.0