diff options
author | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2017-10-18 16:02:59 +0200 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2017-10-23 12:00:11 +0000 |
commit | 51950bf832af3e0287b1e1be29e89d9b877170b4 (patch) | |
tree | c5cd83947eeaf92307f0fdc51772e2fde69561f2 | |
parent | 9ad5b51851823d3cad0e139ac8655a37200c5fe6 (diff) | |
download | device-mapper-tizen_4.0.tar.gz device-mapper-tizen_4.0.tar.bz2 device-mapper-tizen_4.0.zip |
Enable udev synchronisationtizen_4.0.IoT.p2_releasesubmit/tizen_4.0/20171101.113857accepted/tizen/4.0/unified/20171102.140249tizen_4.0_tvtizen_4.0accepted/tizen_4.0_unified
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
-rw-r--r-- | packaging/device-mapper.spec | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packaging/device-mapper.spec b/packaging/device-mapper.spec index 1946fb8..81bf1de 100644 --- a/packaging/device-mapper.spec +++ b/packaging/device-mapper.spec @@ -14,6 +14,7 @@ Group: Base/Device Management Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvm2_version}.tgz Source1001: device-mapper.manifest Requires: libdevmapper = %{device_mapper_version}-%{release} +BuildRequires: pkgconfig(libsystemd) %description This package contains the supporting userspace utility, dmsetup, @@ -54,7 +55,8 @@ 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 device-mapper |