dma: rewrite file management
commit9afa363f46406be3ba45faebf414b649ecfa02b8
authorSimon Schubert <corecode@dragonflybsd.org>
Mon, 20 Jul 2009 19:53:32 +0000 (20 21:53 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 21 Jul 2009 22:13:15 +0000 (22 00:13 +0200)
treea73dbd06539be104afbdcc584a62a8fd811d6599
parentbfafe548060cd1a3a331f39c058eef43eb86159d
dma: rewrite file management

Close files as early as possible, possibly re-open them later.  This is
so that we avoid filedesc sharing problems completely and that we won't
run out of fdesc in case of a large queue.
libexec/dma/dma.c
libexec/dma/dma.h
libexec/dma/spool.c