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

AP_Filesystem: Don't try and rename between backends #29004

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

IamPete1
Copy link
Member

@IamPete1 IamPete1 commented Jan 4, 2025

Extract from #28977. Currently only the old name is passed to backend_by_path. This function will remove the backed prefix. This means the two file names are no longer comparable. This also disallows trying to rename between two backends.

@IamPete1 IamPete1 requested a review from peterbarker January 4, 2025 18:27
@peterbarker
Copy link
Contributor

The very much looks right. What are the consequences of someone attempting this rename before this patch?

@IamPete1
Copy link
Member Author

IamPete1 commented Jan 5, 2025

The very much looks right. What are the consequences of someone attempting this rename before this patch?

None of the existing @ backends support renaming. So there is no change. It worked on local because there is no change to the path in the backend_by_path function.

@peterbarker peterbarker merged commit 78d9e5a into ArduPilot:master Jan 5, 2025
99 checks passed
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

Successfully merging this pull request may close these issues.

2 participants