Branch: Tag:

2013-09-20

2013-09-20 16:20:16 by Henrik Grubbström (Grubba) <grubba@grubba.org>

FSGC: Added API for adding Filesystem Garbage Collectors.

Fixes some of [bug 6572 (#6572)].

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1112 2012/02/18 01:14:34 mast Exp $"; + constant cvs_version="$Id$";      //! @appears roxen   //!
33:   #endif   inherit "hosts";   inherit "disk_cache"; + inherit "fsgc";   // inherit "language";   inherit "supports";   inherit "module_support";
520:    destruct(argcache);    destruct(cache);   #ifdef THREADS + #if constant(Filesystem.Monitor.basic) +  stop_fsgarb(); + #endif    if (mixed err = catch (stop_handler_threads()))    master()->handle_error (err);   #endif /* THREADS */
6017: Inside #if defined(THREADS)
     #ifdef THREADS    start_handler_threads(); + #if constant(Filesystem.Monitor.basic) +  start_fsgarb(); + #endif   #endif /* THREADS */      #ifdef TEST_EUID_CHANGE