Worksheet for Calculating the Save Data File System Capacity

This calculates the amount of space used by save data and expanded save data.

CTR Card Save Data

This calculates the amount of data (number of blocks) that can actually be saved in save data.

Input Parameters
Protection Type No automatic redundancy (any save data that is being written will be corrupted if the Game Card is removed )
Automatic redundancy (any save data that is being written will be protected against corruption even if the Game Card is removed )
Recordable Media CTR Card Backup Memory (128KB)
CTR Card Backup Memory (512 KB)
Max Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system)
Max Number of Files (1-?) (Total number of files that can be created throughout the entire file system)

Amount of Data that can be Saved
Save Data Block Size bytes
Number of Save Data Blocks blocks
Save Data Capacity bytes / KB (block size × number of blocks)

Expanded Save Data

This calculates the amount of data (number of blocks) used for expanded save data.

This calculates the number of blocks consumed in expanded save data. Depending on the SD Card format, the actual memory footprint on the SD Card may be greater than the values shown here. Note that nn::fs::ResultNotEnoughSpace may be returned even if an SD Card has as much free space as the sizes given here.

Metadata

This calculates the size (number of blocks) used when expanded save data is created.

Input Parameters
Icon size bytes
Max Number of Directories (0-?) (Total number of directories that can be created throughout the entire file system)
Max Number of Files (1-?) (Total number of files that can be created throughout the entire file system)
Space Used
Block Size for Expanded Save Data 4096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

File

This calculates the size (number of blocks) that could be used when a single file is created in expanded save data. The actual size may be smaller than the size (number of blocks) shown here.

Input Parameters
Protection Type No automatic redundancy (any save data that is being written will be corrupted if the SD Card is removed )
Amount of Data that can be Saved KB
Space Used
Block Size for Expanded Save Data 4096 bytes
Number of Blocks Used for Expanded Save Data blocks
Memory Size Used for Expanded Save Data bytes / KB

Revision History

2010/12/16
Added worksheets for expanded save data calculations.
2010/12/11
Initial version.

CONFIDENTIAL