Arceos-monolithic / Starry

An experimental modular OS written in Rust.
http://rcore-os.cn/arceos/
Apache License 2.0
12 stars 15 forks source link

reimplement lookup logic to avoid fatfs error log #38

Closed luodeb closed 5 months ago

luodeb commented 5 months ago

在Starry启动后文件路径操作时候,屏幕输出错误日志Is a directory

原因:因为无法直接调用find_entry,原实现通过fatfs公开提供的open_file和open_dir间接调用find_entry。 因为并不知道路径目标的类型,原实现试图把路径依次当作文件或目录打开,以得到fatfs定义的对象。

解决方案:用iter方法实现路径查找。