Skip to content

[Bug] DFSv1 mount rw flags #9270

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

Closed
GuEe-GUI opened this issue Aug 1, 2024 · 0 comments
Closed

[Bug] DFSv1 mount rw flags #9270

GuEe-GUI opened this issue Aug 1, 2024 · 0 comments

Comments

@GuEe-GUI
Copy link
Contributor

GuEe-GUI commented Aug 1, 2024

RT-Thread Version

all

Hardware Type/Architectures

all

Develop Toolchain

Other

Describe the bug

此处打开设备代码需要考虑设备只读情况,驱动开发者有权利在 open 阶段拒绝访问:

if (dev_id != NULL)
{
if (rt_device_open(fs->dev_id,
RT_DEVICE_OFLAG_RDWR) != RT_EOK)
{
/* The underlying device has error, clear the entry. */
dfs_lock();
rt_memset(fs, 0, sizeof(struct dfs_filesystem));
goto err1;
}
}
/* call mount of this filesystem */
if ((*ops)->mount(fs, rwflag, data) < 0)

Other additional context

No response

@GuEe-GUI GuEe-GUI changed the title [Bug] DFS mount rw flags [Bug] DFSv1 mount rw flags Aug 1, 2024
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Oct 30, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Oct 30, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Oct 30, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Nov 8, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Nov 20, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
GuEe-GUI added a commit to GuEe-GUI/rt-thread that referenced this issue Nov 20, 2024
1. Not support link.
2. Fixup the DFS open flag with readonly.

Link: RT-Thread#9270

Signed-off-by: GuEe-GUI <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant