File Management: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
The Vita has a multi-layered file management system that is similar (and may be based off of) the [http://www.solarisinternals.com/si/reading/vnode.pdf BSD vnode] structure. Different kernel modules handle each layer.
The Vita has a multi-layered file management system that is similar (and may be based off of) the [https://web.archive.org/web/20161026190602/http://www.solarisinternals.com/si/reading/vnode.pdf BSD vnode] structure. Different kernel modules handle each layer.


== Hardware ==
== Hardware ==

Revision as of 09:45, 1 May 2017

The Vita has a multi-layered file management system that is similar (and may be based off of) the BSD vnode structure. Different kernel modules handle each layer.

Hardware

At the lowest level, we have the device drivers for the various virtual and real devices on the system. For example SceSdif interacts with the SDIO interface for speaking to the eMMC and any other SD interfaces.

Block

Next is the block level. This is device blocks, not file system blocks (which is at a higher level). SceSdstor manages the blocks and also exports block level devices to system applications. Block level encryption and decryption also takes place at this level. All user-facing devices including eMMC, Memory Card, and Game Card are encrypted at the block level. Partitions are also managed at this level. One device can export multiple partitions. Partitions tables are a proprietary format.

File System

The file system is implemented on top of the block drivers. SceExfatfs is used to recognize FAT16, FAT32, and exFAT partitions.

Caching

Next is a layer of caching implemented by SceFios2Kernel.

API

Finally, we have SceIofilemgr which exposes IO APIs such as sceIoOpen for applications to use to access files. Different application may deal with different encrypted format files.