Skip to content
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

vfs: drop unused abs_path parameter #18672

Merged
merged 1 commit into from
Sep 30, 2022
Merged

Conversation

benpicco
Copy link
Contributor

Contribution description

Both open() and opendir() also get the absolute path in VFS.
This is used by no filesystem and worse, only present for those two functions.

So even if a filesystem would rely on the absolute path, it could not mkdir, unlink or rename files.

Remove it as it only adds clutter and confusion.

Testing procedure

CI should be enough, this parameter was unused by every implementation.

Issues/PRs references

@github-actions github-actions bot added Area: pkg Area: External package ports Area: sys Area: System Area: tests Area: tests and testing framework labels Sep 29, 2022
@benpicco benpicco added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Sep 29, 2022
@riot-ci
Copy link

riot-ci commented Sep 29, 2022

Murdock results

✔️ PASSED

85dd564 vfs: drop unused abs_path parameter

This only reflects a subset of all builds from https://ci-prod.riot-os.org. Please refer to https://ci.riot-os.org for a complete build for now.

Copy link
Member

@chrysn chrysn left a comment

Choose a reason for hiding this comment

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

Looks good to me (did not test, CI suffices here).

I think these are remnants of what could have become a current-working-directory or an openat-style system, but it was neither done consistently nor taken up, so let's drop it.

(I would support something openat-style, but what is removed here is IMO not a good base for that.)

@benpicco benpicco merged commit 1935b62 into RIOT-OS:master Sep 30, 2022
@benpicco benpicco deleted the vfs-abs_path branch September 30, 2022 14:43
@maribu maribu added this to the Release 2022.10 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports Area: sys Area: System Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants