From 4a1a8685c9260597e0c636bba475c4001b5d3192 Mon Sep 17 00:00:00 2001 From: lulaiao <2793256357@qq.com> Date: Tue, 28 Apr 2026 02:32:11 +0800 Subject: [PATCH] Add comments to Ready in pkg/ddc/efc/operations/base.go Signed-off-by: lulaiao <2793256357@qq.com> --- pkg/ddc/efc/operations/base.go | 3 +++ 1 file changed, 3 insertions(+) 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}