summaryrefslogtreecommitdiff
path: root/src/core/device.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-30 02:35:16 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-05 22:13:47 +0900
commit367a2597c35140fb325e2f94235961257130dfe1 (patch)
treeb11ba366c20188a3c9635166df115fd34cd07e82 /src/core/device.h
parent7870de03c52982290f9b8ae11eb4d89db66f4be3 (diff)
downloadsystemd-367a2597c35140fb325e2f94235961257130dfe1.tar.gz
core/device: store the original path
The unit name may be hashed. Hence, we cannot obtain the original path from the unit name. The path will be used in the later commits.
Diffstat (limited to 'src/core/device.h')
-rw-r--r--src/core/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/device.h b/src/core/device.h
index dfe8a13aff..7584bc70c4 100644
--- a/src/core/device.h
+++ b/src/core/device.h
@@ -21,6 +21,7 @@ struct Device {
Unit meta;
char *sysfs;
+ char *path; /* syspath, device node, alias, or devlink */
/* In order to be able to distinguish dependencies on different device nodes we might end up creating multiple
* devices for the same sysfs path. We chain them up here. */