cubefs/lcnode/meta.go
zhaochenyang 3507c8d9b4 fix(lcnode): close metawrapper in lcnode
Signed-off-by: zhaochenyang <zhaochenyang@oppo.com>
2023-10-27 14:07:57 +08:00

29 lines
1.3 KiB
Go

// Copyright 2023 The CubeFS Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
// implied. See the License for the specific language governing
// permissions and limitations under the License.
package lcnode
import "github.com/cubefs/cubefs/proto"
type MetaWrapper interface {
ReadDirLimitForSnapShotClean(parentID uint64, from string, limit uint64, verSeq uint64, isDir bool) ([]proto.Dentry, error)
Delete_Ver_ll(parentID uint64, name string, isDir bool, verSeq uint64, fullPath string) (*proto.InodeInfo, error)
Lookup_ll(parentID uint64, name string) (inode uint64, mode uint32, err error)
BatchInodeGet(inodes []uint64) []*proto.InodeInfo
DeleteWithCond_ll(parentID, cond uint64, name string, isDir bool, fullPath string) (inode *proto.InodeInfo, err error)
Evict(inode uint64, fullPath string) error
ReadDirLimit_ll(parentID uint64, from string, limit uint64) ([]proto.Dentry, error)
Close() error
}