From 3a9e095776ce95ce08a03781624d796967b52a2f Mon Sep 17 00:00:00 2001 From: yutong Date: Sat, 13 Jun 2026 16:41:38 +0800 Subject: [PATCH] Add comments to UnMount in pkg/ddc/alluxio/operations/base.go. Signed-off-by: yutong --- pkg/ddc/alluxio/operations/base.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/ddc/alluxio/operations/base.go b/pkg/ddc/alluxio/operations/base.go index ab24f708fac..93d4a180975 100644 --- a/pkg/ddc/alluxio/operations/base.go +++ b/pkg/ddc/alluxio/operations/base.go @@ -270,6 +270,14 @@ func (a AlluxioFileUtils) Mount(alluxioPath string, return } +// UnMount unmounts an Alluxio path from the Alluxio filesystem. +// It executes the `alluxio fs unmount` command in the Alluxio pod container. +// +// Parameters: +// - alluxioPath: the Alluxio path to unmount. +// +// Returns: +// - err: non-nil if the unmount command fails or if executing the command returns an error. func (a AlluxioFileUtils) UnMount(alluxioPath string) (err error) { var ( command = []string{"alluxio", "fs", "unmount"}