-
Notifications
You must be signed in to change notification settings - Fork 3k
Restructure storage filesystem directory #13300
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
Conversation
0ef689c
to
eca9b3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
clean: | ||
./clean.sh | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The line ending has been changed from \n
to \r\n
(Windows) - this is why we see a big diff on GitHub. Please revert it back - it'll make review (and git blame
in the future) easier.
|
||
rm -f main.cpp | ||
rm -f template_all_names.txt | ||
#!/bin/bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
- ['info\.name', 'ent.d_name'] | ||
- ['info\.type', 'ent.d_type'] | ||
- ['^.*info\.size.*$', ''] # dirent sizes not supported | ||
- ['lfs2_format\(&lfs2, &cfg\)', 'MBED_TEST_FILESYSTEM::format(&bd)'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
- ['LFS2_O_WRONLY \| LFS2_O_CREAT', '"wb"'] | ||
- ['LFS2_O_RDONLY', '"rb"'] | ||
- ['LFS2_O_RDWR', '"r+b"'] | ||
- ['lfs2_format\(&lfs2, &cfg\)', 'MBED_TEST_FILESYSTEM::format(&bd)'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
{{ | ||
{test} | ||
}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
res = bd.deinit(); | ||
TEST_ASSERT_EQUAL(0, res); | ||
}} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
int main() {{ | ||
return !Harness::run(specification); | ||
}} | ||
#include "mbed.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line ending
#include "filesystem/FileSystem.h" | ||
#include "fat/FATFileSystem.h" | ||
#include "littlefs/LittleFileSystem.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something I'd like to discuss:
In terms of user experience, including "filesystem/FATFileSystem.h", "filesystem/LittleFileSystem.h" in code seems more sensible than "fat/FATFileSystem.h", "littlefs/LittleFileSystem.h". If we want to achieve that, we can have
storage
├── filesystem
│ ├── fat
│ │ └── include
│ │ └── filesystem # changed from fat
│ │ └── FATFileSystem.h
Of course, this would be a slight change from our initial proposal. What do you think? @rajkan01 @evedon
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It breaks the consistency in the directory structure for little benefit. I don't think it is worth doing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
File permission on storage/filesystem/littlefs/littlefs/tests/template.fmt should be reverted to 644. Apart from line endings issues noted by @LDong-Arm, code change is fine. |
c2d2b6e
to
ef5602f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR cannot be merged due to conflicts. Please rebase to resolve them. |
e0eb4e2
to
699acaa
Compare
699acaa
to
51247d0
Compare
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
@0xc0170 This PR is ready for merge. Could you merge... |
One last check : changing permissions on some scripts within this PR was intentional ? See for instance |
@0xc0170 Revert to the previous permission as this was changed unintentionally on the last PR #13244 and even you have commented #13244 (comment) |
Summary of changes
Preceding PR: #13253 #13244 #13273
Restructured
storage/filesystem
as per the new directory structure proposal:Impact of changes
None.
Migration actions required
None.
Documentation
To Be Updated.
Pull request type
Test results
Manual testing: (Build for K64F target with GCC_ARM toolchain)
Reviewers
@0xc0170 @ARMmbed/mbed-os-core