diff --git a/pkg/ddc/efc/operations/base.go b/pkg/ddc/efc/operations/base.go index 216abf4a59d..877db61dff5 100644 --- a/pkg/ddc/efc/operations/base.go +++ b/pkg/ddc/efc/operations/base.go @@ -77,6 +77,9 @@ func (a EFCFileUtils) DeleteDir(dir string) (err error) { return } +// Ready checks whether the EFC mount type exists in the current runtime environment. +// It executes a mount command to search for the EFC mount type. If the command +// fails, it logs the error and returns false; otherwise, it returns true. func (a EFCFileUtils) Ready() (ready bool) { var ( command = []string{"mount", "|", "grep", common.EFCMountType}