kaluma-project / kaluma

A tiny JavaScript runtime for RP2040 (Raspberry Pi Pico)
https://kalumajs.org
Apache License 2.0
648 stars 38 forks source link

file system unmount issue #490

Closed communix closed 2 years ago

communix commented 2 years ago

can't access file system if one file system is unmounted.

and block device unmount is not called in the fs.unmount function

  fs.mount('/', bd1, 'lfs', true);
  fs.mount('/flash', bd2, 'lfs', true);
  fs.mount('/sd', bd3, 'lfs', true);
  fs.unmount('/flash');
  files = fs.readdir("/"); // Error in this line