• Pavel Emelyanov's avatar
    inotify: Sort marks by wd before collecting them · cb576d89
    Pavel Emelyanov authored
    The inotify_add_watch generates wd-s one-by one. We cannot
    request for one, thus we call this syscall till the required
    wd is generated.
    
    Thus, if we want to restore several wd-s for an inotify, we
    have to put them in ascending order. Otherwise we may restore
    watch with higher wd earlier and will thus not be able to
    generate the lower wd in a reasonable time.
    Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
    cb576d89
fsnotify.c 12.8 KB