Dirk H Bartley [Tue, 27 Mar 2007 15:12:23 +0000 (15:12 +0000)]
dhb Having a frustrating time. This compliles and runs fine. Have the
iterating when the index can be pulled from the tree widget item sort
of accomplished. Need to think more about how to consistently get to
a window in the list
Kern Sibbald [Mon, 26 Mar 2007 16:32:56 +0000 (16:32 +0000)]
kes Turn on Batch insert code by default as it now passes regression.
kes Add ./configure --enable-bat to enable building of Bat.
No install yet though.
Dirk H Bartley [Sun, 25 Mar 2007 22:01:54 +0000 (22:01 +0000)]
dhb this is a rewrite of the populate tree function. It uses the brand
spanky new .sql "select ... from ..." console capabilities in the director
It also uses a new dosql function in the console to return the results
of the command as a QListString. This simplifies the data access.
Dirk H Bartley [Sun, 25 Mar 2007 15:05:08 +0000 (15:05 +0000)]
dhb I have the issue of m_medialist and m_brestore resolved. The only one
used was the m_medialist to populate after the console connected. So now
I created a virtual function for clicked and double clicked in BatStack.
All classes that want to do something based on a click in it's widget
in the page selector can just use the virtual function.
So in medialist, a single click will populate if not populated, and a double
will repopulate from a clear.
Kern Sibbald [Sun, 25 Mar 2007 13:11:55 +0000 (13:11 +0000)]
Implement code to turn off pruning in obtaining the next volume.
Pruning is turned off for the status dir command, but turned on
for SD requests and for the list nextvolume command.
Dirk H Bartley [Sun, 25 Mar 2007 01:38:40 +0000 (01:38 +0000)]
dhb I've got most of the user interface issues working as I was hoping to see
them working. Now it is time to get another window into the stack and the
tree. And also work on actual functionality.
Kern Sibbald [Sat, 24 Mar 2007 21:55:54 +0000 (21:55 +0000)]
kes Write new subroutine is_volume_purged() that explicitly checks
if the Volume is purged, and if so marks it as such. This should
resolve problems reported about needing to mount twice to recycle
volumes.
kes Rewrite pruning algorithm to do more work in the SQL engine, and
to pass a list of JobIds to be deleted to SQL. Also, minimize the
amount of duplicated code.
kes Do volume pruning only for the Media Type desired (reduces pruning time
if multiple Media Types are in the same pool).
kes Implement more detailed info in the Job report for the Bacula version
and architecture.
kes Switch from POOLMEM to POOL_MEM (a real class) in ua_prune.c and
ua_purge.c.
Dirk H Bartley [Sat, 24 Mar 2007 20:05:09 +0000 (20:05 +0000)]
dhb This solves the really not elegant at all way to determine what tree item
goes with what stacked widget item. ( When a tree item is clicked )
This begins the framework for being able to add and destroy tree widget
items and associated stacked widget items on the fly.
I still need to fix a few items such as the ability to close a window and
never get it back, ... ever.
Dirk H Bartley [Sat, 24 Mar 2007 15:14:18 +0000 (15:14 +0000)]
dhb This may be a way to fix the issues of windows that can
be removed from the main window. Not finished yet, but
a double click can bring a window out. I think the trigger
of double click should change in the near future. The
elegance of the changes needs to be improved for future
add ons of many stacked windows.
Landon Fuller [Fri, 23 Mar 2007 17:20:40 +0000 (17:20 +0000)]
Add support for arbitrary client-to-server certificate CN matching (TLS Allowed CN). This allows the TLS client to either use certificate hostname matching, or an arbitrary administer-supplied CN, and is necessary to support roaming clients with non-static hostnames.
Kern Sibbald [Thu, 22 Mar 2007 21:11:49 +0000 (21:11 +0000)]
kes Implement new prunning code that prunes up to 1000 jobs at
the same time. The same technique can be applied to a number
of other prune/purge subroutines.
Kern Sibbald [Thu, 22 Mar 2007 13:10:04 +0000 (13:10 +0000)]
kes Implement new prunning code that prunes up to 1000 jobs at
the same time. The same technique can be applied to a number
of other prune/purge subroutines.
kes Add an insanity check when starting a new tape job to ensure
that the tape position has not been changed. If so fail the
job.
kes Fix Win32 build for dlls to add the folllowing:
src/lib/bsock.c -- new file with new entry points
src/lib/dlist.c -- new entry points
src/cats/sql_create.c -- new entry point
src/cats/sql_cmds.c -- new DATA item exported
Kern Sibbald [Sun, 18 Mar 2007 20:10:58 +0000 (20:10 +0000)]
kes Move the checking of the database in initializion of the Director
to after we drop privileges. This avoids the need for both root
and bacula access to the DB.
kes Correct a misplaced variable definition in src/filed/backup.c
kes Correct how the new batch insert db_create_attributes_record()
uses the arguments. Caused a seg fault in bscan.
kes Implement lock() and unlock() methods in DEVICE class.
Implement block() and set_block(xx) methods in DEVICE class.
kes Modify bnet_connect() so that it uses time() to check for the
wait time expiring (on some OSes, some system calls may not
return immediately).
kes Modify Verify to obtain the previous JobId when it is actually
running rather than at schedule time (as it was in 1.38.x).
kes Fix src/job.c to handle MaxWaitTime correctly. This should
fix bug #802.
kes When checking pid in pid file, continue running if the pid is
the same as ours. This occurs on IRIX after a system crash.
Fixes bug #797.
Kern Sibbald [Thu, 8 Mar 2007 18:50:23 +0000 (18:50 +0000)]
kes Apply fix from for building wx-console on the Mac from
bug #798.
kes Implement new select mechanism for GUI programs.
kes Reorganize initialization of stackedWidgets in bat.
Kern Sibbald [Mon, 5 Mar 2007 22:04:23 +0000 (22:04 +0000)]
kes More bat implementation.
kes File migrate bug with Pool Occupancy using mediaid instead
of jobids. Fixes bug #795.
kes Fix orphaned buffers in filed backup and verify due to
crypto buffers not freed during errors. Fixes bug #789.
kes Extend new GUI api code to tree commands.
kes Ensure that tree and dot commands check console ACLs.
kes Permit marking directory with trailing slash.
kes Allow 20 console connections (instead of only 10).