Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
zhijian-pro committed Sep 13, 2023
1 parent b2705ad commit 510537d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fs/fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,7 @@ func (fs *FileSystem) doResolve(ctx meta.Context, p string, followLastSymlink bo
fi = AttrToFileInfo(inode, attr)
if (!resolved || followLastSymlink) && fi.IsSymlink() {
if _, ok := visited[inode]; ok {
logger.Errorf("find a loop symlink: %d", inode)
return nil, syscall.ELOOP
} else {
visited[inode] = struct{}{}
Expand Down

0 comments on commit 510537d

Please sign in to comment.