В Sun, 26 Jul 2015 11:39:17 +0300 Oleksii Shevchuk <alx...@gmail.com> пишет:
> Andrei Borzenkov <arvidj...@gmail.com> writes: > > > > > Could you verify with e.g. inotifywatch whether inotify event was > > generated by kernel? > > > > It turns out, that for some reason I have several dm devices: > > # ls -l /dev/mapper/ > crw-rw---- 1 root dialout 10, 236 ??? 25 09:52 control > brw------- 1 root root 254, 12 ??? 25 09:52 _dev_dm_5 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 Media-Doc -> ../dm-3 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 Media-Music -> ../dm-1 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 Media-Tmp -> ../dm-2 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-home -> ../dm-5 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-kernel -> ../dm-7 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-portage -> ../dm-4 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-prefix -> ../dm-8 > brw------- 1 root root 254, 0 ??? 25 09:52 OS-root > lrwxrwxrwx 1 root root 8 ??? 25 09:52 OS-Software -> ../dm-10 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-var -> ../dm-9 > lrwxrwxrwx 1 root root 7 ??? 25 09:52 OS-VM -> ../dm-6 > brw------- 1 root root 254, 11 ??? 26 11:36 swap <<---- SWAP is here > > Also I have separate device - /dev/dm-11, with same major/minor. > > inotifywait get CLOSE_WRITE events only when the same device file is used. So that it the problem. Does it happen if you use cryptsetup directly? _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel