hammer - Fix timeout for 'dedup' directive
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 8 Jan 2015 11:30:05 +0000 (12:30 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Thu, 8 Jan 2015 19:44:16 +0000 (20:44 +0100)
commit3a92efe3ce8f11b83b469609135c5fedaafa6632
tree0b6f964aecee9f504b2b76fb5f21298b4f224791
parent421ff7de8a80309fe4477229924bae71797d50d0
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>
sbin/hammer/cmd_dedup.c