git: DragonFly_RELEASE_4_0 hammer - Fix timeout for 'dedup' directive

Antonio Huete Jimenez tuxillo at crater.dragonflybsd.org
Tue Jan 20 10:06:05 PST 2015


commit 60d407530d4556939a28d133143ff39ce216cdf9
Author: Antonio Huete Jimenez <tuxillo at quantumachine.net>
Date:   Thu Jan 8 12:30:05 2015 +0100

    hammer - Fix timeout for 'dedup' directive
    
    - 'hammer dedup' did not stop on timeout set by -t option.
    - As the deduplication itself works by comparing one reference
      base element against a candidate base element, hammer(8) collects
      all the elements to be deduplicated and actually perform the needed
      ioctl() calls to make it happen. This is why the SIGALRM code has to
      be handled from within hammer(8).
    
    Reported by: ftigeot
    DragonFly-bug: <http://bugs.dragonflybsd.org/issues/2759>

Summary of changes:
 sbin/hammer/cmd_dedup.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 63 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/60d407530d4556939a28d133143ff39ce216cdf9


-- 
DragonFly BSD source repository



More information about the Commits mailing list