prusa3d / Prusa-Link-Web

Prusa Web interface resources
GNU General Public License v3.0
114 stars 50 forks source link

Deleting files through PrusaLink corrupted USB #483

Open lutorm opened 3 months ago

lutorm commented 3 months ago

While a print was ongoing, I was cleaning up old files on the USB through PrusaLink. I repeatedly selected files, clicked the trash can, and confirmed the dialog. After doing this maybe 7 times, all files except two disappeared from the file list. At the same time, the printer stopped the ongoing print saying that it could not read the USB. Upon inserting the USB drive into a computer, it said it could not be read and needed to be reformatted. It appears there is something perhaps related to a file system race condition either related to deleting files with an ongoing print or to rapidly selecting several files and deleting them.

Corrupting the USB and breaking the ongoing print is pretty bad, obviously.

The printer is an XL running the 5.1.2 firmware.