From: Kern Sibbald Date: Thu, 22 Dec 2005 21:37:01 +0000 (+0000) Subject: - Simplify code in askdir.c that waits for creating an appendable X-Git-Tag: Release-1.38.3~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29e8789379670219387cb20aa70403ff6198c1f4;p=bacula%2Frescue - Simplify code in askdir.c that waits for creating an appendable volume so that it can handle multiple returns from the wait code. - Modify the wait code to permit multiple returns. - Return a zero when autochanger drives is called and it is not an autochanger. - Make rewind_dev() a method taking a DCR as an argument. This permits closing and reopening the drive if the rewind fails as happens if the drive was loaded while the file descriptor was open. This refreshes the file descriptor. - Remove the ST_OPENED flag and always rely on fd < 0 for knowing if the device is open or not. This should eliminate Arnos problem. - Return error if reserve cannot find at least one suitable device. - Make wait_for_sysop() return correct state information. - Fix Win32 state file problem. write was not using compat code. This should fix bug #500. ---