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

Spaces in Storage File Path Issue #74

Open
MorganAbrams opened this issue Feb 14, 2022 · 3 comments
Open

Spaces in Storage File Path Issue #74

MorganAbrams opened this issue Feb 14, 2022 · 3 comments

Comments

@MorganAbrams
Copy link

Hi,

When we have a space in the file path in the .conf file like either of these
storage "/home/pi/Data Storage" "Data" "rw"
storage "/home/pi/'Data Storage'" "Data" "rw"

It still connects to the machine and pops up as a flashdrive, but when you go in on windows you aren't able to add any files to the folder.

It gives the following Warning & Error codes:
Warning] Failed to get statvfs for /home/pi/'Data Storage'
Warning] MTP_OPERATION_GET_OBJECT_HANDLES : FOLDER ACCESS ERROR !

As soon as we remove the space and just make it Data_Storage or DataStorage or something it works fine with no issues.

@jfdelnero
Copy link
Member

I tried but i didn't managed to reproduce this issue with the version 1.6.2.

storage "/home/pi/Data Storage" "Data" "rw"
works just fine here on a Raspberry Pi Zero.

Are you sure that the folder access permissions allow to umtprd to access to this folder ?

@MorganAbrams
Copy link
Author

The access permissions allow umtprd to access the folder.

We were testing this on a Compute Module 4. I guess I should of tried this on different versions of the pi. After seeing you say it worked on the Pi Zero, I moved the sd card over to the Pi Zero (after re-adding the space & changing back to GadgetFS) and it worked fine.

Wanted to find out more, so I tried both FunctionFS and GadgetFS on both the Compute Module and Pi Zero. Worked fine with the space for FunctionFS on both. GadgetFS did not like the space and lead to the same Warning I originally posted when on the Compute Module although it did work on the Pi Zero.

@jfdelnero
Copy link
Member

Very odd. I will test the GadgetFS and FunctionFS modes again.

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

2 participants