High rate of filesystem corruption with T8SG

More
19 Dec 2018 07:14 #72085 by vlad_vy
This usually happens after turning off the power.

What will happen if in time of writing model or transmitter config any higher level interrupt (mixer, protocol) will start play music (read sound file from USB drive)???

Probably we need to disable interrupts while writing configuration files.

Please Log in or Create an account to join the conversation.

More
19 Dec 2018 08:07 #72086 by Fernandez
Replied by Fernandez on topic High rate of filesystem corruption with T8SG
And if properly disconnect USB in windows, or USB disconnect from Devo does it happen?

Please Log in or Create an account to join the conversation.

More
19 Dec 2018 13:40 #72087 by csujun
A common way to do so is writing a new file with the name like model1.txt~ then disable interrupt to remove old one and rename the new one to moel1.txt. the period to disable interrupt will be minimized.

Please Log in or Create an account to join the conversation.

More
21 Dec 2018 20:31 #72095 by FDR
This filesystem can't create new files...

Please Log in or Create an account to join the conversation.

More
23 Dec 2018 15:47 #72103 by csujun
We can add a flag says "SuspendPowerOff", increase it by 1 when you want to suspend the power off. and decrease it when we are okay to power off. In the main event loop, check this flag as well as the power switch.

Please Log in or Create an account to join the conversation.

Time to create page: 0.033 seconds
Powered by Kunena Forum