]> git.sur5r.net Git - bacula/bacula/commit
- Simplify code in askdir.c that waits for creating an appendable
authorKern Sibbald <kern@sibbald.com>
Thu, 22 Dec 2005 21:37:01 +0000 (21:37 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 22 Dec 2005 21:37:01 +0000 (21:37 +0000)
commit264058d49306793a4854cdaa6c4c8fd5d4382b3e
tree1a36381a95a0154f7573dc6805f562052db2ad59
parent63993f2dd1769d0745989f592008e31ef1d08906
- 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.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2703 91ce42f0-d328-0410-95d8-f526ca767f89
13 files changed:
bacula/kes-1.38
bacula/kes-1.39
bacula/src/stored/askdir.c
bacula/src/stored/autochanger.c
bacula/src/stored/btape.c
bacula/src/stored/dev.c
bacula/src/stored/dev.h
bacula/src/stored/device.c
bacula/src/stored/dircmd.c
bacula/src/stored/label.c
bacula/src/stored/mount.c
bacula/src/stored/reserve.c
bacula/src/stored/wait.c