~ubuntu-branches/ubuntu/vivid/mediatomb/vivid

« back to all changes in this revision

Viewing changes to src/autoscan_inotify.cc

  • Committer: Bazaar Package Importer
  • Author(s): Andres Mejia
  • Date: 2008-03-02 13:09:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080302130916-zlljdze3kt7vuq4b
Tags: 0.11.0-1
* New upstream release.
* Include message about which inotify headers will be used when enabling
  inotify runtime support.
* Fixed error with use of INTERFACE in init script. Also removed use of -m
  option.
* Including new config.xml options.
* Added more build dependencies for new upstream release.
* Removed build dependency of libid3-dev, taglib is now preferred.
* mediatomb.xpm and manpage.xml is now included in orig tarball.
* inotify patch is not needed anymore.
* md5 patch has been committed upstream and is no longer needed. Also removed
  README.Debian.
* TwinHelix PNG fix is now used. Removed from TODO.
* Adding dependency of iceweasel for mediatomb package.
* Updated copyright file.
* Updated watch file.
* Updated rules file for proper configure options.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    Copyright (C) 2005 Gena Batyan <bgeradz@mediatomb.cc>,
8
8
                       Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>
9
9
    
10
 
    Copyright (C) 2006-2007 Gena Batyan <bgeradz@mediatomb.cc>,
 
10
    Copyright (C) 2006-2008 Gena Batyan <bgeradz@mediatomb.cc>,
11
11
                            Sergey 'Jin' Bostandzhyan <jin@mediatomb.cc>,
12
12
                            Leonhard Wimmer <leo@mediatomb.cc>
13
13
    
24
24
    version 2 along with MediaTomb; if not, write to the Free Software
25
25
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
26
26
    
27
 
    $Id: autoscan_inotify.cc 102 2007-05-25 22:46:50Z leo $
 
27
    $Id: autoscan_inotify.cc 1698 2008-02-23 20:48:30Z lww $
28
28
*/
29
29
 
30
30
/// \file autoscan_inotify.cc
223
223
                int wd = event->wd;
224
224
                int mask = event->mask;
225
225
                String name(event->name);
226
 
                log_debug("inotify event: %d %d %s\n", wd, mask, name.c_str());
 
226
                log_debug("inotify event: %d %x %s\n", wd, mask, name.c_str());
227
227
                
228
228
                Ref<Wd> wdObj = watches->get(wd);
229
229
                if (wdObj == nil)
316
316
                        log_debug("adding %s\n", path.c_str());
317
317
                        // path, recursive, async, hidden, low priority, cancellable
318
318
                        cm->addFile(fullPath, adir->getRecursive(), true, adir->getHidden(), true, false);
 
319
                        
 
320
                        if (mask & IN_ISDIR)
 
321
                            monitorUnmonitorRecursive(path, false, adir, watchAs->getNormalizedAutoscanPath(), false);
319
322
                    }
320
323
                }
321
324
                if (mask & IN_IGNORED)