kes Add -c option to pg_dump so that it initializes tables when
restored.
kes Fix FirstWritten time on Volume to be obtained from SD so that
it is the actual time the volume was first written.
kes Minor Makefile changes.
kes Handle EBUSY during read(). Improve how EBUSY is handled in write().
kes Correct a test in block.c that prevented restore of a DVD from
looking at the last part in the spool directory.
kes Make some error messages clearer mostly by using the word DVD
in the message. Improve infor message in read_record for DVDs.
kes Remove DVD kludges in dircmd.c label/relabel.
kes Move the dvd relabel code from dircmd.c into
write_new_volume_label_to_dvd() adding a relabel argument.
kes Rewrite the truncate_dvd() code to be much simpler and
more logical. First blow away any spool part, then create a
new empty part and write to the DVD.
kes Rewrite the can_write_on_non_blank_dvd() code making it
only ensure that no valid data is on the DVD -- i.e. it
can be overwritten.
kes Put attach_dcr_to_dev in a subroutine.
kes Make attaching/detaching to/from a device use a flag and
only detach if actually attached.
kes Add dvd-simulator.in to scripts directory and add to configure.
kes Fix code in acquire.c that checks fd != 0 to use dev->is_open().
This could be a cause of a number of drive reservation problems.
Note, this code is now in attach_dcr_to_dev().
kes Suppress doing Volume updates if it is a system job. This should
prevent the DVD label blocking.
kes Clear the freespace ok flag in a couple of strategic places.
kes Put removing zero sized spool part file in subroutine and
call from release_device().
kes Add Richard's patch for relabel to dircmd.c, but save and restore
dev Volume name.
kes Rework a lot of subroutines in dev.c to take dcr as an
argument. This is done to eliminate the usage of attached_dcrs
in lseek().
kes Change truncated_dvd to blank_dvd, which seems more suitable.
kes Apply most of Richard Mortimer's truncate patch.
kes Create lseek() method for DEVICE that takes dcr as an
argument. This is to eliminate the use of attached_dcrs in
lseek(). The calls to lseek_dev() must still be changed.
kes Create lseek() method for DEVICE that takes dcr as an
argument. This is to eliminate the use of attached_dcrs in
lseek(). The calls to lseek_dev() must still be changed.
kes Make sure valid argument passed to str_to_utime() where Arno
had a seg fault.
kes Apply Richard Mortimer's patch for bcopy, bextract, and bscan.
I.e. part of two different patches.
kes Modify disk changer to simulate some of the error conditions
of mtx-changer.
kes Make sure the close() call in the SD tools is just before the
getchar() call.
kes Implement dir_get_volume_info() in bls using the patch from
Richard Mortimer but call find_num_dvd_parts().
kes Implement find_num_dvd_parts() that mounts and scans a DVD
and counts the parts.
kes Move the omode code in open_dvd() up so that the cannot
write on blank disk can check can be bypassed for read mode.
Not yet implemented.
kes Make two separate Win32 menu links for starting bconsole and
wx-console in winbacula.nsi
kes Apply DVD part_spooled patch from Richard Mortimer
richm@oldelvet.org.uk
kes Use get_catalog_resource() to open catalog database
to ensure that ACLs are respected and that user is
correctly prompted for database.
kes Integrate multiple console/director patch from
Carsten Paeth calle@calle.in-berlin.de
kes Apply patch supplied in bug #656 to pass priority field
in the run dialog to the Director.
kes Restore DCR after VOL_NAME_ERROR in mount.c. Hopefully
this will fix bug #627 where Bacula eventually gets
confused about what Volume it wants.
kes Add a new close_part() class in the SD to save the device
state around open/close_part/open for DVD writing. This
should fix the num_dvd_parts getting zeroed as reported by
Richard Mortimer.
kes Apply patch from Richard Mortimer that correct edit code
for debug output of st_size.
Robert Nelson [Wed, 6 Sep 2006 17:12:00 +0000 (17:12 +0000)]
Fixed symbol file generation on Microsoft Visual Studio builds.
Change daemon /kill processing to pause .5 second between attempts to post WM_CLOSE message.
Installer changes:
- Add new Install Type page, used to select between Automatic and Custom installs. Automatic installs only prompt for configuration items that can't be reasonably defaulted.
- Added Bacula logo to page headers.
- Added Upgrade support
Configuration and component selection is migrated from pre-1.39 installs.
Configuration of upgraded components is preserved and not prompted for
Configuration of new components is handled according the Automatic / Custom selection.
New components are shown in bold on Component page.
Component selection is defaulted to previously selected components.
- Installation of Server components is disabled on Windows 95, 98 and ME.
- Changed installer to use previous executable to /kill and /remove services being upgraded.
Added URLs for support, info and upgrades to Bacula entry in Add/Remove Programs.
Added Version info to Bacula entry in Add/Remove Programs.
kes When doing a label, pass the VolBytes back to the Director,
which puts it in the catalog.
kes Print an error message if the user attempts to prune an
archived Volume.
kes Need to start using %ld when sscanfing 32 bit values.
kes Update the free
kes Correct the counting of VolCatBytes for DVDs.
kes Add code to mount.c to require that VolCatBytes corresponds to
what is actually found when doing an append.
kes Update freespace only after writing on the DVD.
kes Remove code that blows away the current part in the spool file.
es Apply new dvd-handler patch from Richard Mortimer.
kes Tweak so that debug level 20 shows only DVD commands.
kes Correct spooled_part flag in dev.c close() so that it is cleared
when the spool file is deleted or does not exist.
kes Print part number in read_records when eof hit (restore).
Robert Nelson [Fri, 1 Sep 2006 00:49:21 +0000 (00:49 +0000)]
Update the Microsoft Visual Studio build to match the MinGW32 build.
Fix precedence problem in an ASSERT.
Put DLL_IMP_EXP macros in the right place so they work with both gcc and msvc.
Change make_session_key on WIN32 to use WIN32 APIs to produce a better seed.
Add sed to external dependencies, it is used only during installation.
Remove unused code from winmain.cpp and winservice.cpp for the three daemons.
Fix /kill for file and storage daemons.
Add bfree to the exports for bacula.dll.
Add new tool scsilist.exe which displays the changer, tape and CD/DVD (1394, SCSI, SATA, ATAPI) devices and the information required to add them to bacula-sd.conf.
Added full configuration generation to the installer.
Kern Sibbald [Thu, 31 Aug 2006 21:07:14 +0000 (21:07 +0000)]
kes Make find with no args in tree restore return error rather than
stopping the selection. Fixes bug #665
kes Rework DVD writing to ensure that the last part is written
on open_next_part when dealing with a spool file.
kes Correct the lseek_dev() routine to handle end point correctly
(bug introduced by me).
kes Allow part number to exceed num_dvd_parts in lseek_dev().
Kern Sibbald [Wed, 30 Aug 2006 16:19:32 +0000 (16:19 +0000)]
kes Apply dvd-handler patch from Richard Mortimer.
kes Apply dvd error check patch from Richard Mortimer.
kes Apply bpipe race patch from Richard Mortimer.
kes Rework how DVD labels are handled and set append only
when part > num_dvd_parts.
Kern Sibbald [Sun, 27 Aug 2006 18:30:57 +0000 (18:30 +0000)]
kes Rework many features of DVD writing and reading. Added many error
messages. Most importantly changed part to represent the current
part number base zero. This makes current DVD writing incompatible
with previous version.
26Aug06
kes Add host:port to connect failure messages to FD and SD from Dir.
kes Add WhereACL to console ACL list. If nothing is specified, only
the default is permitted for restore. Otherwise, *all* allows any
path, or you can specify permitted paths. This should allow control
over where users can restore files. This is untested.
kes Modified message to add a ? (as in loaded?) when querying the autochanger
for what Slot is loaded.
kes Fixed the use of Slot, so that is more correctly maintained, thus
eliminating unneeded duplicate calls to determine what Slot is loaded.