From: Kay Sievers Date: Fri, 31 Aug 2007 09:01:35 +0000 (+0200) Subject: increase WAIT_FOR_SYSFS timeout to 10 seconds X-Git-Tag: 174~1828 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39ea7c6c67de69379b603196a0eff6f7ce2e469a;p=systemd increase WAIT_FOR_SYSFS timeout to 10 seconds We see SCSI disks where it takes 6.5 seconds to populate the sysfs attributes. --- diff --git a/udev_rules.c b/udev_rules.c index ef352ca2..dcd09148 100644 --- a/udev_rules.c +++ b/udev_rules.c @@ -1040,7 +1040,7 @@ static int match_rule(struct udevice *udev, struct udev_rule *rule) if (rule->wait_for_sysfs.operation != KEY_OP_UNSET) { int found; - found = (wait_for_sysfs(udev, key_val(rule, &rule->wait_for_sysfs), 3) == 0); + found = (wait_for_sysfs(udev, key_val(rule, &rule->wait_for_sysfs), 10) == 0); if (!found && (rule->wait_for_sysfs.operation != KEY_OP_NOMATCH)) goto nomatch; }