1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/vendor
Sebastiaan van Stijn 90431d1857
daemon/graphdriver/windows: use go-winio.GetFileSystemType()
go-winio now defines this function, so we can consume that.

Note that there's a difference between the old implementation and the original
one (added in 1cb9e9b44e). The old implementation
had special handling for win32 error codes, which was removed in the go-winio
implementation in 0966e1ad56

As `go-winio.GetFileSystemType()` calls `filepath.VolumeName(path)` internally,
this patch also removes the `string(home[0])`, which is redundant, and could
potentially panic if an empty string would be passed.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-10-10 16:22:05 +02:00
..
cloud.google.com/go
code.cloudfoundry.org/clock
github.com daemon/graphdriver/windows: use go-winio.GetFileSystemType() 2022-10-10 16:22:05 +02:00
go.etcd.io
go.opencensus.io
go.opentelemetry.io
go.uber.org
golang.org/x vendor: golang.org/x/sys v0.0.0-20221006211917-84dc82d7e875 2022-10-08 21:19:33 +02:00
google.golang.org
gotest.tools/v3 vendor: gotest.tools v3.3.0 2022-09-22 15:45:08 +02:00
modules.txt daemon/graphdriver/windows: use go-winio.GetFileSystemType() 2022-10-10 16:22:05 +02:00