Skip to content
Snippets Groups Projects
Commit 92856b48 authored by Alison Chaiken's avatar Alison Chaiken Committed by Tom Rini
Browse files

disk_partition: introduce macros for description string lengths


Changes since v6: none.

Signed-off-by: default avatarAlison Chaiken <alison@peloton-tech.com>
parent db9b6200
No related branches found
No related tags found
No related merge requests found
...@@ -47,12 +47,15 @@ struct block_drvr { ...@@ -47,12 +47,15 @@ struct block_drvr {
#define DEV_TYPE_CDROM 0x05 /* CD-ROM */ #define DEV_TYPE_CDROM 0x05 /* CD-ROM */
#define DEV_TYPE_OPDISK 0x07 /* optical disk */ #define DEV_TYPE_OPDISK 0x07 /* optical disk */
#define PART_NAME_LEN 32
#define PART_TYPE_LEN 32
typedef struct disk_partition { typedef struct disk_partition {
lbaint_t start; /* # of first block in partition */ lbaint_t start; /* # of first block in partition */
lbaint_t size; /* number of blocks in partition */ lbaint_t size; /* number of blocks in partition */
ulong blksz; /* block size in bytes */ ulong blksz; /* block size in bytes */
uchar name[32]; /* partition name */ uchar name[PART_NAME_LEN]; /* partition name */
uchar type[32]; /* string type description */ uchar type[PART_TYPE_LEN]; /* string type description */
int bootable; /* Active/Bootable flag is set */ int bootable; /* Active/Bootable flag is set */
#if CONFIG_IS_ENABLED(PARTITION_UUIDS) #if CONFIG_IS_ENABLED(PARTITION_UUIDS)
char uuid[UUID_STR_LEN + 1]; /* filesystem UUID as string, if exists */ char uuid[UUID_STR_LEN + 1]; /* filesystem UUID as string, if exists */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment