Skip to content

Commit

Permalink
Use persist.ReadPersistType
Browse files Browse the repository at this point in the history
Signed-off-by: eriknordmark <[email protected]>
  • Loading branch information
eriknordmark committed Jun 24, 2024
1 parent 7c0ba66 commit 04892db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/pillar/diskmetrics/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func getcurrentDom0DiskUsage(log *base.LogObject) uint64 {
}
allUsed := allStat.Used
var subUsed uint64
if vault.ReadPersistType() != types.PersistZFS {
if persist.ReadPersistType() != types.PersistZFS {
for _, dir := range excludeDirs {
used, err := SizeFromDir(log, dir)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/pillar/volumehandlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func updateVolumeSizes(log *base.LogObject, handler VolumeHandler, status *types

// GetAllDataSets returns ImgInfo for each ZFS dataset
func GetAllDataSets(log *base.LogObject, volumeManager VolumeMgr) ([]types.ImgInfo, error) {
if vault.ReadPersistType() != types.PersistZFS {
if persist.ReadPersistType() != types.PersistZFS {
return nil, nil
}
common := commonVolumeHandler{volumeManager: volumeManager, log: log}
Expand Down

0 comments on commit 04892db

Please sign in to comment.