>Not being C coders, this is implemented in perl, hence I am worried of
>the race condition where the file is dumped and removed from the
>holding disk before we get a chance to copy it over.

I'd create another directory in the holding disk area parallel to the
real holding disk, then hard link to the holding disk image.  Use the
hard link to do your copy.  If Amanda removes it's link before you are
done, no big deal.  When both links are gone, the space will be released.

See the "mkdir" and "link" Perl calls.

Watch out for holding disk chunking, if you're using that.  It will
create multiple files and you'll need to deal with all of them (and they
are not listed in the amdump log file).

>Andrew.

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to