Dedupe logging for PD SetUpAt and added a slow SetVolumeOwnership warning

This commit is contained in:
David Zhu
2019-10-02 16:21:52 -07:00
parent 0960c74c37
commit 223ef76db5
2 changed files with 14 additions and 17 deletions

View File

@@ -42,6 +42,8 @@ func SetVolumeOwnership(mounter Mounter, fsGroup *int64) error {
return nil
}
klog.Warningf("Setting volume ownership for %s and fsGroup set. If the volume has a lot of files then setting volume ownership could be slow, see https://github.com/kubernetes/kubernetes/issues/69699", mounter.GetPath())
return filepath.Walk(mounter.GetPath(), func(path string, info os.FileInfo, err error) error {
if err != nil {
return err