mirror of
https://github.com/apache/nuttx.git
synced 2026-08-24 23:18:21 +00:00
fs: Add data structure for Partition Information
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
845b1e8043
commit
5883abbe77
1 changed files with 18 additions and 0 deletions
|
|
@ -224,6 +224,24 @@ struct geometry
|
|||
blksize_t geo_sectorsize; /* Size of one sector */
|
||||
};
|
||||
|
||||
struct partition_info_s
|
||||
{
|
||||
uint32_t magic; /* File system magic, 0 for RAW
|
||||
* (see <sys/statfs.h>) */
|
||||
size_t numsectors; /* Number of sectors in the partition */
|
||||
size_t sectorsize; /* Size in bytes of a single sector */
|
||||
off_t startsector; /* Offset to the first section/block of the
|
||||
* managed sub-region */
|
||||
off_t endsector; /* Offset to the last section/block of the
|
||||
* managed sub-region */
|
||||
|
||||
/* NULL-terminated string representing the name of the parent node of the
|
||||
* partition.
|
||||
*/
|
||||
|
||||
char parent[NAME_MAX + 1];
|
||||
};
|
||||
|
||||
/* This structure is provided by block devices when they register with the
|
||||
* system. It is used by file systems to perform filesystem transfers. It
|
||||
* differs from the normal driver vtable in several ways -- most notably in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue