diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-22 19:01:50 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-23 22:31:25 +0200 |
commit | 378f61ebef6d29efce8512402a73df880c7d960c (patch) | |
tree | 41364b99a5d3bdeeb44face1226e68fec4d80233 /src/libudev/libudev-device-internal.h | |
parent | 4761e880aea33d06be9c6f198e4dcf5efb3baa9e (diff) |
libudev-device: fix lazy loading of devlinks, properties and tags
If the underlying device has not read in the properties yet, the generation will be 0, so
make sure we trigger the reading at least once.
Diffstat (limited to 'src/libudev/libudev-device-internal.h')
-rw-r--r-- | src/libudev/libudev-device-internal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libudev/libudev-device-internal.h b/src/libudev/libudev-device-internal.h index 3f93fda545..aa36b8cb12 100644 --- a/src/libudev/libudev-device-internal.h +++ b/src/libudev/libudev-device-internal.h @@ -47,6 +47,9 @@ struct udev_device { uint64_t tags_generation; struct udev_list devlinks; uint64_t devlinks_generation; + bool properties_read:1; + bool tags_read:1; + bool devlinks_read:1; struct udev_list sysattrs; bool sysattrs_read; }; |