Merge pull request #5976 from ukontainer/pr-continuity
vendor: update continuity for darwin support
This commit is contained in:
		
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -11,7 +11,7 @@ require ( | ||||
| 	github.com/containerd/cgroups v1.0.1 | ||||
| 	github.com/containerd/console v1.0.2 | ||||
| 	github.com/containerd/containerd/api v0.0.0 | ||||
| 	github.com/containerd/continuity v0.1.0 | ||||
| 	github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801 | ||||
| 	github.com/containerd/fifo v1.0.0 | ||||
| 	github.com/containerd/go-cni v1.0.2 | ||||
| 	github.com/containerd/go-runc v1.0.0 | ||||
|   | ||||
							
								
								
									
										7
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										7
									
								
								go.sum
									
									
									
									
									
								
							| @@ -1,4 +1,5 @@ | ||||
| bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= | ||||
| bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= | ||||
| cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= | ||||
| @@ -110,8 +111,8 @@ github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4q | ||||
| github.com/containerd/console v1.0.2 h1:Pi6D+aZXM+oUw1czuKgH5IJ+y0jhYcwBJfx5/Ghn9dE= | ||||
| github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= | ||||
| github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ= | ||||
| github.com/containerd/continuity v0.1.0 h1:UFRRY5JemiAhPZrr/uE0n8fMTLcZsUvySPr1+D7pgr8= | ||||
| github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= | ||||
| github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801 h1:JKh6jHPjtcqEVLsZ2vSC34Er40Bj/Fdq9ROGPuiQPLg= | ||||
| github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801/go.mod h1:51Oa4sEFsAGujlzNbDPNB0hC1utY7N91xOzW161q5nE= | ||||
| github.com/containerd/fifo v1.0.0 h1:6PirWBr9/L7GDamKr+XM0IeUFXu5mf3M/BPpH9gaLBU= | ||||
| github.com/containerd/fifo v1.0.0/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= | ||||
| github.com/containerd/go-cni v1.0.2 h1:YbJAhpTevL2v6u8JC1NhCYRwf+3Vzxcc5vGnYoJ7VeE= | ||||
| @@ -537,6 +538,7 @@ github.com/tchap/go-patricia v2.2.6+incompatible h1:JvoDL7JSoIP2HDE8AbDH3zC8QBPx | ||||
| github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= | ||||
| github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= | ||||
| github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= | ||||
| github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= | ||||
| github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= | ||||
| github.com/urfave/cli v1.22.1 h1:+mkCCcOFKPnCmVYVcURKps1Xe+3zP90gSYGNfRkjoIY= | ||||
| github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= | ||||
| @@ -722,6 +724,7 @@ golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7w | ||||
| golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
|   | ||||
| @@ -1,4 +1,5 @@ | ||||
| bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= | ||||
| bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= | ||||
| cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= | ||||
| @@ -107,8 +108,8 @@ github.com/containerd/console v1.0.1/go.mod h1:XUsP6YE/mKtz6bxc+I8UiKKTP04qjQL4q | ||||
| github.com/containerd/console v1.0.2 h1:Pi6D+aZXM+oUw1czuKgH5IJ+y0jhYcwBJfx5/Ghn9dE= | ||||
| github.com/containerd/console v1.0.2/go.mod h1:ytZPjGgY2oeTkAONYafi2kSj0aYggsf8acV1PGKCbzQ= | ||||
| github.com/containerd/continuity v0.0.0-20210208174643-50096c924a4e/go.mod h1:EXlVlkqNba9rJe3j7w3Xa924itAMLgZH4UD/Q4PExuQ= | ||||
| github.com/containerd/continuity v0.1.0 h1:UFRRY5JemiAhPZrr/uE0n8fMTLcZsUvySPr1+D7pgr8= | ||||
| github.com/containerd/continuity v0.1.0/go.mod h1:ICJu0PwR54nI0yPEnJ6jcS+J7CZAUXrLh8lPo2knzsM= | ||||
| github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801 h1:JKh6jHPjtcqEVLsZ2vSC34Er40Bj/Fdq9ROGPuiQPLg= | ||||
| github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801/go.mod h1:51Oa4sEFsAGujlzNbDPNB0hC1utY7N91xOzW161q5nE= | ||||
| github.com/containerd/fifo v1.0.0 h1:6PirWBr9/L7GDamKr+XM0IeUFXu5mf3M/BPpH9gaLBU= | ||||
| github.com/containerd/fifo v1.0.0/go.mod h1:ocF/ME1SX5b1AOlWi9r677YJmCPSwwWnQ9O123vzpE4= | ||||
| github.com/containerd/go-cni v1.0.2/go.mod h1:nrNABBHzu0ZwCug9Ije8hL2xBCYh/pjfMb1aZGrrohk= | ||||
| @@ -498,6 +499,7 @@ github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG | ||||
| github.com/tchap/go-patricia v2.2.6+incompatible/go.mod h1:bmLyhP68RS6kStMGxByiQ23RP/odRBOTVjwp2cDyi6I= | ||||
| github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= | ||||
| github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= | ||||
| github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= | ||||
| github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= | ||||
| github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= | ||||
| github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= | ||||
|   | ||||
							
								
								
									
										6
									
								
								vendor/github.com/containerd/continuity/AUTHORS
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/github.com/containerd/continuity/AUTHORS
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -12,8 +12,11 @@ Darren Stahl <darst@microsoft.com> | ||||
| Derek McGowan <derek@mcg.dev> | ||||
| Derek McGowan <derek@mcgstyle.net> | ||||
| Edward Pilatowicz <edward.pilatowicz@oracle.com> | ||||
| Fu Wei <fuweid89@gmail.com> | ||||
| Hajime Tazaki <thehajime@gmail.com> | ||||
| Ian Campbell <ijc@docker.com> | ||||
| Ivan Markin <sw@nogoegst.net> | ||||
| Jacob Blain Christen <jacob@rancher.com> | ||||
| Justin Cormack <justin.cormack@docker.com> | ||||
| Justin Cummins <sul3n3t@gmail.com> | ||||
| Kasper Fabæch Brandt <poizan@poizan.dk> | ||||
| @@ -23,10 +26,11 @@ Michael Crosby <michael@thepasture.io> | ||||
| Michael Wan <zirenwan@gmail.com> | ||||
| Mike Brown <brownwm@us.ibm.com> | ||||
| Niels de Vos <ndevos@redhat.com> | ||||
| Phil Estes <estesp@amazon.com> | ||||
| Phil Estes <estesp@gmail.com> | ||||
| Phil Estes <estesp@linux.vnet.ibm.com> | ||||
| Samuel Karp <me@samuelkarp.com> | ||||
| Sam Whited <sam@samwhited.com> | ||||
| Samuel Karp <me@samuelkarp.com> | ||||
| Sebastiaan van Stijn <github@gone.nl> | ||||
| Shengjing Zhu <zhsj@debian.org> | ||||
| Stephen J Day <stephen.day@docker.com> | ||||
|   | ||||
							
								
								
									
										8
									
								
								vendor/github.com/containerd/continuity/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								vendor/github.com/containerd/continuity/README.md
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,7 +1,7 @@ | ||||
| # continuity | ||||
|  | ||||
| [](https://godoc.org/github.com/containerd/continuity) | ||||
| [](https://travis-ci.org/containerd/continuity) | ||||
| [](https://travis-ci.org/containerd/continuity) | ||||
|  | ||||
| A transport-agnostic, filesystem metadata manifest system | ||||
|  | ||||
| @@ -81,8 +81,8 @@ $ go generate ./proto | ||||
|  | ||||
| continuity is a containerd sub-project, licensed under the [Apache 2.0 license](./LICENSE). | ||||
| As a containerd sub-project, you will find the: | ||||
|  * [Project governance](https://github.com/containerd/project/blob/master/GOVERNANCE.md), | ||||
|  * [Maintainers](https://github.com/containerd/project/blob/master/MAINTAINERS), | ||||
|  * and [Contributing guidelines](https://github.com/containerd/project/blob/master/CONTRIBUTING.md) | ||||
|  * [Project governance](https://github.com/containerd/project/blob/main/GOVERNANCE.md), | ||||
|  * [Maintainers](https://github.com/containerd/project/blob/main/MAINTAINERS), | ||||
|  * and [Contributing guidelines](https://github.com/containerd/project/blob/main/CONTRIBUTING.md) | ||||
|  | ||||
| information in our [`containerd/project`](https://github.com/containerd/project) repository. | ||||
|   | ||||
							
								
								
									
										42
									
								
								vendor/github.com/containerd/continuity/fs/copy_darwin.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								vendor/github.com/containerd/continuity/fs/copy_darwin.go
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,42 @@ | ||||
| // +build darwin | ||||
|  | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
|  | ||||
|    Licensed under the Apache License, Version 2.0 (the "License"); | ||||
|    you may not use this file except in compliance with the License. | ||||
|    You may obtain a copy of the License at | ||||
|  | ||||
|        http://www.apache.org/licenses/LICENSE-2.0 | ||||
|  | ||||
|    Unless required by applicable law or agreed to in writing, software | ||||
|    distributed under the License is distributed on an "AS IS" BASIS, | ||||
|    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
|    See the License for the specific language governing permissions and | ||||
|    limitations under the License. | ||||
| */ | ||||
|  | ||||
| package fs | ||||
|  | ||||
| import ( | ||||
| 	"os" | ||||
| 	"syscall" | ||||
|  | ||||
| 	"github.com/pkg/errors" | ||||
| 	"golang.org/x/sys/unix" | ||||
| ) | ||||
|  | ||||
| func copyDevice(dst string, fi os.FileInfo) error { | ||||
| 	st, ok := fi.Sys().(*syscall.Stat_t) | ||||
| 	if !ok { | ||||
| 		return errors.New("unsupported stat type") | ||||
| 	} | ||||
| 	return unix.Mknod(dst, uint32(fi.Mode()), int(st.Rdev)) | ||||
| } | ||||
|  | ||||
| func utimesNano(name string, atime, mtime syscall.Timespec) error { | ||||
| 	at := unix.NsecToTimespec(atime.Nano()) | ||||
| 	mt := unix.NsecToTimespec(mtime.Nano()) | ||||
| 	utimes := [2]unix.Timespec{at, mt} | ||||
| 	return unix.UtimesNanoAt(unix.AT_FDCWD, name, utimes[0:], unix.AT_SYMLINK_NOFOLLOW) | ||||
| } | ||||
| @@ -1,4 +1,4 @@ | ||||
| // +build darwin openbsd solaris | ||||
| // +build openbsd solaris | ||||
| 
 | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
							
								
								
									
										6
									
								
								vendor/github.com/containerd/continuity/fs/du_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								vendor/github.com/containerd/continuity/fs/du_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -41,10 +41,8 @@ type inode struct { | ||||
|  | ||||
| func newInode(stat *syscall.Stat_t) inode { | ||||
| 	return inode{ | ||||
| 		// Dev is uint32 on darwin/bsd, uint64 on linux/solaris/freebsd | ||||
| 		dev: uint64(stat.Dev), // nolint: unconvert | ||||
| 		// Ino is uint32 on bsd, uint64 on darwin/linux/solaris/freebsd | ||||
| 		ino: uint64(stat.Ino), // nolint: unconvert | ||||
| 		dev: uint64(stat.Dev), //nolint: unconvert // dev is uint32 on darwin/bsd, uint64 on linux/solaris/freebsd | ||||
| 		ino: uint64(stat.Ino), //nolint: unconvert // ino is uint32 on bsd, uint64 on darwin/linux/solaris/freebsd | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
							
								
								
									
										3
									
								
								vendor/github.com/containerd/continuity/fs/hardlink_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/containerd/continuity/fs/hardlink_unix.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -29,6 +29,5 @@ func getLinkInfo(fi os.FileInfo) (uint64, bool) { | ||||
| 		return 0, false | ||||
| 	} | ||||
|  | ||||
| 	// Ino is uint32 on bsd, uint64 on darwin/linux/solaris | ||||
| 	return uint64(s.Ino), !fi.IsDir() && s.Nlink > 1 // nolint: unconvert | ||||
| 	return uint64(s.Ino), !fi.IsDir() && s.Nlink > 1 //nolint: unconvert // ino is uint32 on bsd, uint64 on darwin/linux/solaris | ||||
| } | ||||
|   | ||||
| @@ -1,4 +1,4 @@ | ||||
| // +build darwin freebsd | ||||
| // +build darwin freebsd netbsd | ||||
| 
 | ||||
| /* | ||||
|    Copyright The containerd Authors. | ||||
| @@ -40,5 +40,5 @@ func StatMtime(st *syscall.Stat_t) syscall.Timespec { | ||||
| 
 | ||||
| // StatATimeAsTime returns the access time as a time.Time | ||||
| func StatATimeAsTime(st *syscall.Stat_t) time.Time { | ||||
| 	return time.Unix(int64(st.Atimespec.Sec), int64(st.Atimespec.Nsec)) // nolint: unconvert | ||||
| 	return time.Unix(int64(st.Atimespec.Sec), int64(st.Atimespec.Nsec)) //nolint: unconvert // int64 conversions ensure the line compiles for 32-bit systems as well. | ||||
| } | ||||
							
								
								
									
										3
									
								
								vendor/github.com/containerd/continuity/fs/stat_linuxopenbsd.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								vendor/github.com/containerd/continuity/fs/stat_linuxopenbsd.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -40,6 +40,5 @@ func StatMtime(st *syscall.Stat_t) syscall.Timespec { | ||||
|  | ||||
| // StatATimeAsTime returns st.Atim as a time.Time | ||||
| func StatATimeAsTime(st *syscall.Stat_t) time.Time { | ||||
| 	// The int64 conversions ensure the line compiles for 32-bit systems as well. | ||||
| 	return time.Unix(int64(st.Atim.Sec), int64(st.Atim.Nsec)) // nolint: unconvert | ||||
| 	return time.Unix(int64(st.Atim.Sec), int64(st.Atim.Nsec)) //nolint: unconvert // int64 conversions ensure the line compiles for 32-bit systems as well. | ||||
| } | ||||
|   | ||||
							
								
								
									
										4
									
								
								vendor/github.com/containerd/continuity/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								vendor/github.com/containerd/continuity/go.mod
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -3,7 +3,9 @@ module github.com/containerd/continuity | ||||
| go 1.13 | ||||
|  | ||||
| require ( | ||||
| 	bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 | ||||
| 	// 5883e5a4b512fe2e32f915b1c66a1ddfef81cb3f is the last version to support macOS | ||||
| 	// see https://github.com/bazil/fuse/commit/60eaf8f021ce00e5c52529cdcba1067e13c1c2c2 | ||||
| 	bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512 | ||||
| 	github.com/dustin/go-humanize v1.0.0 | ||||
| 	github.com/golang/protobuf v1.3.5 | ||||
| 	github.com/opencontainers/go-digest v1.0.0 | ||||
|   | ||||
							
								
								
									
										7
									
								
								vendor/github.com/containerd/continuity/go.sum
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										7
									
								
								vendor/github.com/containerd/continuity/go.sum
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -1,5 +1,5 @@ | ||||
| bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898 h1:SC+c6A1qTFstO9qmB86mPV2IpYme/2ZoEQ0hrP+wo+Q= | ||||
| bazil.org/fuse v0.0.0-20160811212531-371fbbdaa898/go.mod h1:Xbm+BRKSBEpa4q4hTSxohYNQpsxXPbPry4JJWOB3LB8= | ||||
| bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512 h1:SRsZGA7aFnCZETmov57jwPrWuTmaZK6+4R4v5FUe1/c= | ||||
| bazil.org/fuse v0.0.0-20200407214033-5883e5a4b512/go.mod h1:FbcW6z/2VytnFDhZfumh8Ss8zxHE6qpMP5sHTRe0EaM= | ||||
| cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= | ||||
| github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= | ||||
| github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= | ||||
| @@ -98,6 +98,8 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+ | ||||
| github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w= | ||||
| github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= | ||||
| github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= | ||||
| github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c h1:u6SKchux2yDvFQnDHS3lPnIRmfVJ5Sxy3ao2SIdysLQ= | ||||
| github.com/tv42/httpunix v0.0.0-20191220191345-2ba4b9c3382c/go.mod h1:hzIxponao9Kjc7aWznkXaL4U4TWaDSs8zcsY4Ka08nM= | ||||
| github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc= | ||||
| github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= | ||||
| github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= | ||||
| @@ -127,6 +129,7 @@ golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5h | ||||
| golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= | ||||
| golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20191210023423-ac6580df4449/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c h1:VwygUrnw9jn88c4u8GD3rZQbqrP/tgas88tPUbBxQrk= | ||||
| golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= | ||||
| golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= | ||||
|   | ||||
							
								
								
									
										10
									
								
								vendor/github.com/containerd/continuity/manifest.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/github.com/containerd/continuity/manifest.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -75,7 +75,7 @@ func MarshalText(w io.Writer, m *Manifest) error { | ||||
| // BuildManifest creates the manifest for the given context | ||||
| func BuildManifest(ctx Context) (*Manifest, error) { | ||||
| 	resourcesByPath := map[string]Resource{} | ||||
| 	hardlinks := newHardlinkManager() | ||||
| 	hardLinks := newHardlinkManager() | ||||
|  | ||||
| 	if err := ctx.Walk(func(p string, fi os.FileInfo, err error) error { | ||||
| 		if err != nil { | ||||
| @@ -97,7 +97,7 @@ func BuildManifest(ctx Context) (*Manifest, error) { | ||||
| 		} | ||||
|  | ||||
| 		// add to the hardlink manager | ||||
| 		if err := hardlinks.Add(fi, resource); err == nil { | ||||
| 		if err := hardLinks.Add(fi, resource); err == nil { | ||||
| 			// Resource has been accepted by hardlink manager so we don't add | ||||
| 			// it to the resourcesByPath until we merge at the end. | ||||
| 			return nil | ||||
| @@ -114,14 +114,12 @@ func BuildManifest(ctx Context) (*Manifest, error) { | ||||
| 	} | ||||
|  | ||||
| 	// merge and post-process the hardlinks. | ||||
| 	// nolint:misspell | ||||
| 	hardlinked, err := hardlinks.Merge() | ||||
| 	hardLinked, err := hardLinks.Merge() | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
|  | ||||
| 	// nolint:misspell | ||||
| 	for _, resource := range hardlinked { | ||||
| 	for _, resource := range hardLinked { | ||||
| 		resourcesByPath[resource.Path()] = resource | ||||
| 	} | ||||
|  | ||||
|   | ||||
							
								
								
									
										18
									
								
								vendor/github.com/containerd/continuity/testutil/loopback/loopback_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										18
									
								
								vendor/github.com/containerd/continuity/testutil/loopback/loopback_linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -19,6 +19,7 @@ | ||||
| package loopback | ||||
|  | ||||
| import ( | ||||
| 	"bytes" | ||||
| 	"io/ioutil" | ||||
| 	"os" | ||||
| 	"os/exec" | ||||
| @@ -46,22 +47,25 @@ func New(size int64) (*Loopback, error) { | ||||
|  | ||||
| 	// create device | ||||
| 	losetup := exec.Command("losetup", "--find", "--show", file.Name()) | ||||
| 	p, err := losetup.Output() | ||||
| 	if err != nil { | ||||
| 	var stdout, stderr bytes.Buffer | ||||
| 	losetup.Stdout = &stdout | ||||
| 	losetup.Stderr = &stderr | ||||
| 	if err := losetup.Run(); err != nil { | ||||
| 		os.Remove(file.Name()) | ||||
| 		return nil, errors.Wrap(err, "loopback setup failed") | ||||
| 		return nil, errors.Wrapf(err, "loopback setup failed (%v): stdout=%q, stderr=%q", | ||||
| 			losetup.Args, stdout.String(), stderr.String()) | ||||
| 	} | ||||
|  | ||||
| 	deviceName := strings.TrimSpace(string(p)) | ||||
| 	deviceName := strings.TrimSpace(stdout.String()) | ||||
| 	logrus.Debugf("Created loop device %s (using %s)", deviceName, file.Name()) | ||||
|  | ||||
| 	cleanup := func() error { | ||||
| 		// detach device | ||||
| 		logrus.Debugf("Removing loop device %s", deviceName) | ||||
| 		losetup := exec.Command("losetup", "--detach", deviceName) | ||||
| 		err := losetup.Run() | ||||
| 		if err != nil { | ||||
| 			return errors.Wrapf(err, "Could not remove loop device %s", deviceName) | ||||
| 		if out, err := losetup.CombinedOutput(); err != nil { | ||||
| 			return errors.Wrapf(err, "Could not remove loop device %s (%v): %q", | ||||
| 				deviceName, losetup.Args, string(out)) | ||||
| 		} | ||||
|  | ||||
| 		// remove file | ||||
|   | ||||
							
								
								
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @@ -94,7 +94,7 @@ github.com/containerd/containerd/api/services/ttrpc/events/v1 | ||||
| github.com/containerd/containerd/api/services/version/v1 | ||||
| github.com/containerd/containerd/api/types | ||||
| github.com/containerd/containerd/api/types/task | ||||
| # github.com/containerd/continuity v0.1.0 | ||||
| # github.com/containerd/continuity v0.1.1-0.20210910181051-2e0898a8e801 | ||||
| ## explicit | ||||
| github.com/containerd/continuity | ||||
| github.com/containerd/continuity/devices | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Akihiro Suda
					Akihiro Suda