carp: Check-in [d8c7c72322]

A python graphical and terminal EncFS front-end

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix another inotify breaking change
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:d8c7c7232272233dd573cb547f4d167e408048dca564f6c1a0d85f562e1270e8
User & Date: milouse 2018-01-02 21:26:36
Context
2018-01-03
08:32
Bump version check-in: 559a910021 user: milouse tags: trunk, v0.7.2
2018-01-02
21:26
Fix another inotify breaking change check-in: d8c7c72322 user: milouse tags: trunk
21:12
Fix inotify now expect str as parameters check-in: efb85a3081 user: milouse tags: trunk
Changes

Changes to carp/stash_manager.py.

477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
    def inotify_loop(self, stash_name, stash_mount_point):
        i = inotify.adapters.InotifyTree(stash_mount_point)

        must_sync = False
        sync_wait = 10

        # And see the corresponding events:
        for event in i.event_gen():
            if sync_wait == 0:
                sync_wait = 10
                if must_sync:
                    must_sync = self.inotify_push_stash(stash_name)
            else:
                sync_wait -= 1








|







477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
    def inotify_loop(self, stash_name, stash_mount_point):
        i = inotify.adapters.InotifyTree(stash_mount_point)

        must_sync = False
        sync_wait = 10

        # And see the corresponding events:
        for event in i.event_gen(terminal_events=('IN_Q_OVERFLOW')):
            if sync_wait == 0:
                sync_wait = 10
                if must_sync:
                    must_sync = self.inotify_push_stash(stash_name)
            else:
                sync_wait -= 1