k3s/pkg
Kubernetes Submit Queue f34a24e98e
Merge pull request #52401 from andyzhangx/azuredisk-getdevfunc
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

fix warning messages due to GetMountRefs func not implemented in windows

**What this PR does / why we need it**:
This PR completes the windows implementation of GetMountRefs in mount.go. In linux, the GetMountRefs implementaion is: read `/proc/mounts` and find all mount points, while in Windows, there is no such `/proc/mounts` place which shows all mounting points. 
There is another way in windows, **we could walk through(by `getAllParentLinks` func) the mount path(symbolic link) and get all symlinks until we got the final device, which is actually a drive**.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #54670
This PR fixed the warnning issue mentioned in https://github.com/kubernetes/kubernetes/pull/51252

**Special notes for your reviewer**:
Some values in the code would be like follwoing:
```
GetMountRefs: mountPath ("\\var\\lib\\kubelet\\pods/4c74b128-92ca-11e7-b86b-000d3a36d70c/volumes/kubernetes.io~azure-disk/pvc-1cc91c70-92ca-11e7-b86b-000d3a36d70c")
getAllParentLinks: refs (["" "" "c:\\var\\lib\\kubelet\\plugins\\kubernetes.io\\azure-disk\\mounts\\b1246717734" "G:\\"])
basemountPath c:\var\lib\kubelet\plugins\kubernetes.io\azure-disk\mounts
got volumeID b1246717734
```

**Release note**:

```
fix warning messages due to GetMountRefs func not implemented in windows
```
2017-10-27 20:28:36 -07:00
..
api Merge pull request #51240 from andyzhangx/windows-abs-path 2017-10-26 18:39:49 -07:00
apimachinery/tests update BUILD files 2017-10-15 18:18:13 -07:00
apis Merge pull request #53946 from ghostcloud-cn/initializer 2017-10-25 21:20:25 -07:00
auth Merge pull request #51416 from justinsb/fix_nodeidentitifer_godocs 2017-10-17 08:44:13 -07:00
bootstrap/api update BUILD files 2017-10-15 18:18:13 -07:00
capabilities update BUILD files 2017-10-15 18:18:13 -07:00
client Run hack/update-bazel.sh 2017-10-19 23:44:34 +02:00
cloudprovider Don't log error in getInstanceFromProjectInZoneByName 2017-10-27 14:07:41 -07:00
controller Merge pull request #54320 from derekwaynecarr/quota-update 2017-10-27 15:42:24 -07:00
credentialprovider update BUILD files 2017-10-15 18:18:13 -07:00
features update BUILD files 2017-10-15 18:18:13 -07:00
fieldpath update BUILD files 2017-10-15 18:18:13 -07:00
generated Remove all traces of federation 2017-10-26 13:37:37 -07:00
hyperkube update BUILD files 2017-10-15 18:18:13 -07:00
kubeapiserver Merge pull request #54320 from derekwaynecarr/quota-update 2017-10-27 15:42:24 -07:00
kubectl Merge pull request #53816 from marun/remove-federation 2017-10-26 17:07:28 -07:00
kubelet use core client with explicit version globally 2017-10-27 15:48:32 +08:00
kubemark Move --enable-cusom-metrics to KubeletFlags and mark it deprecated 2017-10-18 10:28:07 -07:00
master Remove all traces of federation 2017-10-26 13:37:37 -07:00
printers Remove all traces of federation 2017-10-26 13:37:37 -07:00
probe update BUILD files 2017-10-15 18:18:13 -07:00
proxy Merge pull request #54700 from pecameron/iptables-log 2017-10-27 14:38:32 -07:00
quota Update core quota framework 2017-10-27 11:07:01 -04:00
registry Merge pull request #53722 from deads2k/rbac-01-allow-star 2017-10-18 14:02:05 -07:00
routes update BUILD files 2017-10-15 18:18:13 -07:00
security PodSecurityPolicy: avoid unnecessary securitycontext mutation 2017-10-16 02:22:10 -04:00
securitycontext SecurityContext: Add accessors/mutators for effective container security context 2017-10-16 02:22:10 -04:00
serviceaccount update BUILD files 2017-10-15 18:18:13 -07:00
ssh update BUILD files 2017-10-15 18:18:13 -07:00
util Merge pull request #52401 from andyzhangx/azuredisk-getdevfunc 2017-10-27 20:28:36 -07:00
version update BUILD files 2017-10-15 18:18:13 -07:00
volume Merge pull request #54696 from jsafrane/fix-rbd-exec 2017-10-27 14:38:28 -07:00
watch update BUILD files 2017-10-15 18:18:13 -07:00
.import-restrictions Add import-boss directives 2017-10-13 07:06:22 -04:00
BUILD clean up pkg/apis/meta/v1/time.go 2017-10-16 16:36:44 +08:00
OWNERS