diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2024-03-12 11:09:08 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-03-13 07:34:33 +0100 |
commit | f6589670eb73eb5719d94e7beae27849535d8987 (patch) | |
tree | d148b69aeb0e642bb017ce7986a47dad5e5c48d7 /fs | |
parent | 1ad4b32702ddc3b801e8cd35441d2a9b3a41bb19 (diff) | |
download | barebox-f6589670eb73eb5719d94e7beae27849535d8987.tar.gz barebox-f6589670eb73eb5719d94e7beae27849535d8987.tar.xz |
of: partition: Also add partitions created by addpart to the boot dtb
A partition added interactively using addpart was added in
of_partition_fixup() before commit aec676b568 ("cdev: record whether
partition is parsed from OF").
Restore that behaviour. To do that a new flag DEVFS_PARTITION_FOR_FIXUP
is created that behaves very similar what DEVFS_PARTITION_FROM_OF did
before. The only difference is that addpart makes use of it (and that
stat uses a different string to describe it).
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.barebox.org/20240312100918.604105-1-u.kleine-koenig@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -92,6 +92,8 @@ void cdev_print(const struct cdev *cdev) printf(" of-partition"); if (cdev->flags & DEVFS_PARTITION_FROM_TABLE) printf(" table-partition"); + if (cdev->flags & DEVFS_PARTITION_FOR_FIXUP) + printf(" fixup"); if (cdev->flags & DEVFS_IS_MCI_MAIN_PART_DEV) printf(" mci-main-partition"); if (cdev->flags & DEVFS_IS_MBR_PARTITIONED) |