Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion curvefs/src/client/fuse_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,6 @@ CURVEFS_ERROR FuseClient::FuseOpLink(fuse_req_t req,
CURVEFS_ERROR FuseClient::FuseOpReadLink(fuse_req_t req, fuse_ino_t ino,
std::string *linkStr) {
(void)req;
VLOG(1) << "FuseOpReadLink, ino: " << ino << ", linkStr: " << linkStr;
InodeAttr attr;
CURVEFS_ERROR ret = inodeManager_->GetInodeAttr(ino, &attr);
if (ret != CURVEFS_ERROR::OK) {
Expand All @@ -1304,6 +1303,7 @@ CURVEFS_ERROR FuseClient::FuseOpReadLink(fuse_req_t req, fuse_ino_t ino,
return ret;
}
*linkStr = attr.symlink();
VLOG(1) << "FuseOpReadLink, ino: " << ino << ", linkStr: " << *linkStr;
return CURVEFS_ERROR::OK;
}

Expand Down
10 changes: 7 additions & 3 deletions curvefs/src/client/fuse_s3_client.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ class FuseS3Client : public FuseClient {
FuseS3Client()
: FuseClient(), s3Adaptor_(std::make_shared<S3ClientAdaptorImpl>()) {
auto readFunc = [this](fuse_req_t req, fuse_ino_t ino, size_t size,
off_t off, struct fuse_file_info *fi,
char *buffer, size_t *rSize) {
off_t off, struct fuse_file_info* fi,
char* buffer, size_t* rSize) {
return FuseOpRead(req, ino, size, off, fi, buffer, rSize);
};
auto readLinkFunc = [this](fuse_req_t req, fuse_ino_t ino,
std::string* linkStr) {
return FuseClient::FuseOpReadLink(req, ino, linkStr);
};
warmupManager_ = std::make_shared<warmup::WarmupManagerS3Impl>(
metaClient_, inodeManager_, dentryManager_, fsInfo_, readFunc,
s3Adaptor_, nullptr);
readLinkFunc, nullptr, s3Adaptor_);
}

FuseS3Client(const std::shared_ptr<MdsClient> &mdsClient,
Expand Down
Loading