fix get storage capacity on init' (#7689)

This commit is contained in:
wanyaoqi
2020-09-01 01:02:37 +08:00
committed by GitHub
parent d78c549b4a
commit 8020d70bab
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1295,6 +1295,9 @@ func (h *SHostInfo) onGetStorageInfoSucc(hoststorages []jsonutils.JSONObject) {
func (h *SHostInfo) uploadStorageInfo() {
for _, s := range storageman.GetManager().Storages {
if err := s.SetStorageInfo(s.GetId(), s.GetStorageName(), s.GetStorageConf()); err != nil {
h.onFail(err)
}
res, err := s.SyncStorageInfo()
if err != nil {
h.onFail(err)
+1
View File
@@ -262,6 +262,7 @@ func (s *SBaseStorage) bindMountTo(sPath string) error {
return errors.Errorf("bind mount temp path to local image path failed %s", out)
}
}
log.Infof("bind mount %s -> %s", tempPath, sPath)
return nil
}