diff --git a/internal/cephfs/nodeserver.go b/internal/cephfs/nodeserver.go index abd71b219..22d78f3f9 100644 --- a/internal/cephfs/nodeserver.go +++ b/internal/cephfs/nodeserver.go @@ -393,6 +393,7 @@ func getBackingSnapshotRoot( return "", status.Errorf(codes.Internal, err.Error()) } + defer dir.Close() // Read the contents of /.snap directory into a string slice.