Skip to content

[fix](dfs): fix dfs path max #10448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 components/dfs/dfs_v2/include/dfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
#endif

#ifndef DFS_PATH_MAX
#define DFS_PATH_MAX 4096
#define DFS_PATH_MAX DIRENT_NAME_MAX
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

谢谢提交。不过PATH_MAX似乎和dirent name_max的意思应该不一致才是。dirent name_max指的是一个direntry name的最大值,指的是单个的。而PATH_MAX指的是路径的最大值,应该是多级的关系。

这个问题需要对PATH_MAX做整体引用review后才能看到更清晰的情况。

#endif

#ifndef SECTOR_SIZE
Expand Down