diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2019-10-14 08:39:18 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-10-15 09:57:24 +0200 |
commit | 8e9548839b13e5d0683e6a6c3ccfeb26e54f2bf9 (patch) | |
tree | 0c4b7eb323666723053db4e0a0d01833b5f23c98 /lib | |
parent | b93cbf9ccd08f1049249688048cf633faed5b69f (diff) | |
download | barebox-8e9548839b13e5d0683e6a6c3ccfeb26e54f2bf9.tar.gz barebox-8e9548839b13e5d0683e6a6c3ccfeb26e54f2bf9.tar.xz |
fs: devfs-core: have device_find_partition search symlinks
The barebox,environment binding documentation notes following for
the device-path property's second string:
> <partname> can be the label for MTD partitions, the number for DOS
> partitions (beginning with 0) or the name for GPT partitions.
This doesn't work currently because the named partitions are realized as
symlinks and those aren't searched by device_find_partition.
Fix this by having symlinks feature an appropriate partname if the cdev
they link at has one and then have device_find_partition search those as
well.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions