From: Krzysztof Jackiewicz Date: Wed, 18 Oct 2017 14:02:59 +0000 (+0200) Subject: tizen: Enable udev synchronisation X-Git-Tag: accepted/tizen/unified/20240216.054936~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1119a81549e410cea0a8d18c52db4469d07066e8;p=platform%2Fupstream%2Fdevice-mapper.git tizen: Enable udev synchronisation Formatting a device-mapper device sometimes generates an udev event and sometimes not. It seems to be a race condition between udev rules processing and device-mapper (once the device node is created both are modifying it simultaneously). The option --enable-udev_sync enables synchronisation between device-mapper and udev. After applying this commit the race condition was not observed. Change-Id: I2a24004a65f6bd755fe862543b1b5ae148b7f449 --- diff --git a/packaging/device-mapper.spec b/packaging/device-mapper.spec index c593251..dc8f2c8 100644 --- a/packaging/device-mapper.spec +++ b/packaging/device-mapper.spec @@ -51,7 +51,9 @@ cp %{SOURCE1001} . --with-device-mode=0660 \ --enable-pkgconfig \ --enable-udev_rules \ - --with-udevdir=%{udev_dir} + --with-udevdir=%{udev_dir} \ + --enable-udev_sync + %define _exec_prefix / make CFLAGS="-fPIC" LDFLAGS="-pie" V=1 \ device-mapper