summaryrefslogtreecommitdiffstats
path: root/include/driver.h
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2022-02-07 10:49:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2022-02-08 09:09:59 +0100
commit62295dfdb43eb421b7c8b119994df12b4e4879ef (patch)
tree017a33055811bc27bd1284f32cb45690d429034f /include/driver.h
parent240bf4f87471f4d15e97731fbe120f92ddd4ad16 (diff)
downloadbarebox-62295dfdb43eb421b7c8b119994df12b4e4879ef.tar.gz
barebox-62295dfdb43eb421b7c8b119994df12b4e4879ef.tar.xz
cdev: add diskuuid support
This allows identifying disks by UUID. For disks with GPT the disk GUID is used. For DOS partition tables the NT signature ist used, similar to how the partuuid is generated. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de> Link: https://lore.barebox.org/20220124100458.2924679-3-m.olbrich@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Link: https://lore.barebox.org/20220207094953.949868-2-s.hauer@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/driver.h')
-rw-r--r--include/driver.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/driver.h b/include/driver.h
index 62a1782847..3ef8bfb8a3 100644
--- a/include/driver.h
+++ b/include/driver.h
@@ -488,6 +488,7 @@ struct cdev *lcdev_by_name(const char *filename);
struct cdev *cdev_readlink(struct cdev *cdev);
struct cdev *cdev_by_device_node(struct device_node *node);
struct cdev *cdev_by_partuuid(const char *partuuid);
+struct cdev *cdev_by_diskuuid(const char *partuuid);
struct cdev *cdev_open(const char *name, unsigned long flags);
struct cdev *cdev_create_loop(const char *path, ulong flags, loff_t offset);
void cdev_remove_loop(struct cdev *cdev);