aboutsummaryrefslogtreecommitdiff
path: root/extmod/fsusermount.c
AgeCommit message (Collapse)Author
2017-01-30extmod: Remove MICROPY_FSUSERMOUNT and related files.Damien George
Replaced by MICROPY_VFS and the VFS sub-system.
2017-01-27extmod/vfs_fat: Rework so it can optionally use OO version of FatFS.Damien George
If MICROPY_VFS_FAT is enabled by a port then the port must switch to using MICROPY_FATFS_OO. Otherwise a port can continue to use the FatFs code without any changes.
2016-10-07extmod/vfs_fat: Use mp_raise_OSError helper function.Damien George
2016-08-26esp8266/modous: Add os.umount method to unmount a filesystem.Radomir Dopieralski
This is an object-oriented approach, where uos is only a proxy for the methods on the vfs object. Some internals had to be exposed (the STATIC keyword removed) for this to work. Fixes #2338.
2016-05-20extmod: When including extmod headers, prefix path with extmod/.Damien George
2016-04-14extmod/fsusermount: In mount/mkfs, deregister VFS object on error.Damien George
Should fix issue #1947.
2016-02-14extmod/fsusermount,vfs_fat: Nanbox cleanness.Paul Sokolovsky
2016-02-14extmod/vfs_fat: Object-oriented encapsulation of FatFs VFS.Paul Sokolovsky
This implements OO interface based on existing fsusermount code and with minimal changes to it, to serve as a proof of concept of OO interface. Examle of usage: bdev = RAMFS(48) uos.VfsFat.mkfs(bdev) vfs = uos.VfsFat(bdev, "/ramdisk") f = vfs.open("foo", "w") f.write("hello!") f.close()
2016-02-13extmod/fsusermount: umount: Add NULL pointer checks.Paul Sokolovsky
2016-02-10extmod/fsusermount: Support mounting of multiple block devices.Damien George
This patch adds support to fsusermount for multiple block devices (instead of just one). The maximum allowed is fixed at compile time by the size of the fs_user_mount array accessed via MP_STATE_PORT, which in turn is set by MICROPY_FATFS_VOLUMES. With this patch, stmhal (which is still tightly coupled to fsusermount) is also modified to support mounting multiple devices And the flash and SD card are now just two block devices that are mounted at start up if they exist (and they have special native code to make them more efficient).
2016-02-10extmod/fsusermount: Change block protocol to support ioctl method.Damien George
The new block protocol is: - readblocks(self, n, buf) - writeblocks(self, n, buf) - ioctl(self, cmd, arg) The new ioctl method handles the old sync and count methods, as well as a new "get sector size" method. The old protocol is still supported, and used if the device doesn't have the ioctl method.
2016-02-10extmod/fsusermount: Implement separate umount() function.Paul Sokolovsky
2016-02-10extmod/fsusermount: Introduce separate mkfs() function.Paul Sokolovsky
Per the previously discussed plan. mount() still stays backward-compatible, and new mkfs() is rought and takes more args than needed. But is a step in a forward direction.
2016-02-06extmod/fsusermount: Common subexpression elimination.Paul Sokolovsky
Don't repeat MP_STATE_PORT(fs_user_mount), use local var.
2015-11-25extmod/fsusermount: Make configurable with MICROPY_FSUSERMOUNT.Paul Sokolovsky
2015-11-25extmod: Move fsusermount.c from stmhal for cross-port reuse.Paul Sokolovsky