diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-08-08 17:43:42 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-08-08 17:43:42 +0200 |
commit | bfd12948927b84b3ce990403969c1d10081c1fed (patch) | |
tree | 538e0547d743e633eba85151acd8283215276206 /udevtest.c | |
parent | 63cc8f049100c9b76ca4e37fc5c8976b6e92a207 (diff) |
add flag for reading of precompiled rules
Rules can be precompiled and stored on disk for initramfs, to avoid
parsing the rules with every event again and again. Also the OWNER and
GROUP names are already resolved to numerical values in the compiled
rules. This flag is used for the upcoming move of the rules parsing
into udevd:
If the real root is mounted udevd is started and parses the rules
only once. The event processes will inherit the already parsed rules
from the daemon, so we want to ignore any precompiled rules and
use the real rules files and watch the filesystem for changes to
reload the rules automatically.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udevtest.c')
-rw-r--r-- | udevtest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udevtest.c b/udevtest.c index 4890b6837c..6e973e31e6 100644 --- a/udevtest.c +++ b/udevtest.c @@ -92,7 +92,7 @@ int main(int argc, char *argv[], char *envp[]) info("looking at device '%s' from subsystem '%s'", devpath, subsystem); /* initialize the naming deamon */ - udev_rules_init(&rules, 0); + udev_rules_init(&rules, 0, 0); /* fill in values and test_run flag*/ udev_init_device(&udev, devpath, subsystem, "add"); |