[systemd-devel] udev and dm inotify problems

Oleksii Shevchuk alxchk at gmail.com
Sun Jul 26 01:39:17 PDT 2015


Andrei Borzenkov <arvidjaar at 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.

// wbr
// Oleksii Shevchuk
>> _______________________________________________
>> systemd-devel mailing list
>> systemd-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list