Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/ddc/alluxio/operations/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ func (a AlluxioFileUtils) Mkdir(alluxioPath string) (err error) {
return
}

// Du returns UFS size, cached size, and cache percentage for a path by running `alluxio fs du -s`.
func (a AlluxioFileUtils) Du(alluxioPath string) (ufs int64, cached int64, cachedPercentage string, err error) {
var (
command = []string{"alluxio", "fs", "du", "-s", alluxioPath}
Expand Down