-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Add option to disable the concurrent write protection #1584
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
Add option to disable the concurrent write protection #1584
Conversation
This allows writing to the filesystem from the host computer and CircuitPython by increasing the risk of filesystem corruption.
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.
Unix coverage build is failing with:
build-coverage/extmod/vfs_fat_file.o: In function `file_open':
vfs_fat_file.c:(.text+0x6fd): undefined reference to `filesystem_is_writable_by_python'
collect2: error: ld returned 1 exit status
shared-bindings/storage/__init__.c
Outdated
@@ -48,16 +48,18 @@ | |||
//| directly. | |||
//| | |||
|
|||
//| .. function:: mount(filesystem, mount_path, \*, readonly=False) | |||
//| .. function:: mount(filesystem, mount_path, \*, readonly=False, disable_concurrent_write_protection=False) |
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.
disable_concurrent_write_protection
is listed as a new arg here for mount()
, but it's not implemented. Did you mean to add it as with remount()
, or is this a typo?
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.
Yup, a bug. I thought I had fixed that but probably forgot to save.
Was there a reason for this? The FS is managed by USB_MSC and thus should not be able to get corrupted. update: probably "yes" is the answer: https://forums.adafruit.com/viewtopic.php?p=1020232#p1020232 |
This allows writing to the filesystem from the host computer and
CircuitPython by increasing the risk of filesystem corruption.