summaryrefslogtreecommitdiffstats
path: root/common/partitions.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-09-13 15:08:40 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-10-14 14:04:20 +0200
commit1369bfd44f2393893036ee50f81e0104f7fb6416 (patch)
treef5eab85de4e8529904ec012bf4c7668d37d444da /common/partitions.c
parent51dce5facb4d1a6f182ede9654b25c2e83878aee (diff)
downloadbarebox-1369bfd44f2393893036ee50f81e0104f7fb6416.tar.gz
cdev: store dos partition type in struct cdev
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/partitions.c')
-rw-r--r--common/partitions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/partitions.c b/common/partitions.c
index 38032a3..694c6f6 100644
--- a/common/partitions.c
+++ b/common/partitions.c
@@ -63,6 +63,8 @@ static int register_one_partition(struct block_device *blk,
goto out;
}
+ cdev->dos_partition_type = part->dos_partition_type;
+
free(partition_name);
if (!part->name[0])
@@ -84,7 +86,7 @@ static int register_one_partition(struct block_device *blk,
ret = 0;
out:
free(partition_name);
- return 0;
+ return ret;
}
static struct partition_parser *partition_parser_get_by_filetype(uint8_t *buf)