Skip to content

Commit 5bc2c17

Browse files
authored
Add comments to Ready in pkg/ddc/efc/operations/base.go (#5812)
Signed-off-by: lulaiao <2793256357@qq.com>
1 parent 40fe01e commit 5bc2c17

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pkg/ddc/efc/operations/base.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ func (a EFCFileUtils) DeleteDir(dir string) (err error) {
7777
return
7878
}
7979

80+
// Ready checks whether the EFC mount type exists in the current runtime environment.
81+
// It executes a mount command to search for the EFC mount type. If the command
82+
// fails, it logs the error and returns false; otherwise, it returns true.
8083
func (a EFCFileUtils) Ready() (ready bool) {
8184
var (
8285
command = []string{"mount", "|", "grep", common.EFCMountType}

0 commit comments

Comments
 (0)