2003-07-xx Version 1.31 Beta xxJul03
+- Update document for Win32 stuff.
+- Ensure VolStatus value for update is permitted.
+- Fix cached_path so that it is local to the jcr, otherwise, there
+ are problems from job to job.
+- Fixed idcache.c which was not thread safe and didn't release memory,
+ and didn't always edit the userid correctly.
+- Correct missing pool memory allocation in update voluseduration.
+- Release mutex in pool_mem.c before triggering ASSERT.
- Lock database while recycling.
- Fix a bug in editing since where I forgot to update to the new size.
- Implement all the command line update arguments.
- Document run "yes".
- Document that bscan does not work with multiple simultaneous jobs.
- Update Automatic Volume Labeling in disk.wml
+- Document portable=yes
Testing to do: (painful)
- Figure out how to use ssh or stunnel to protect Bacula communications.
For 1.31 release:
-- Listing of Win32 restored files has ??????? for user.
- Do full check the command line args in update (e.g. VolStatus ...).
-- In Win portable restore the directory is not create
- 27-Jun-2003 16:52 tibs-fd: kernsrestore.2003-06-27_16.52.20 Error:
- create_file.c:175 Could not create
- /tmp/bacula-restores/cygwin/home/kern/bacula/k/src/dird/dird_conf.o: 0
- ERR=The system cannot find the path specified.
-- Finish Windows implementation (add setting of correct type on restore,
- add Portable Data Format flag).
- Maybe remove multiple simultaneous devices code in SD.
- Increment DB version prior to releasing.
- Turn off FULL_DEBUG prior to releasing.
For 1.32:
+- Figure out how to handle DHCP IP addresses.
- Allow multiple Storage specifications (or multiple names on
a single Storage specification) in the Job record. Thus a job
can be backed up to a number of storage devices.
because there were a whole pile of jobs hanging around in the SD
waiting for a connection from the FD that was never coming.
- Possibly update all client records at startup.
+- Listing of Win32 restored files has ??????? for user.
+- In Win portable restore the directory is not create
+ 27-Jun-2003 16:52 tibs-fd: kernsrestore.2003-06-27_16.52.20 Error:
+ create_file.c:175 Could not create
+ /tmp/bacula-restores/cygwin/home/kern/bacula/k/src/dird/dird_conf.o: 0
+ ERR=The system cannot find the path specified.
+- Finish Windows implementation (add setting of correct type on restore,
+ add Portable Data Format flag).
+
static void update_volstatus(UAContext *ua, char *val, MEDIA_DBR *mr)
{
POOLMEM *query = get_pool_memory(PM_MESSAGE);
- bstrncpy(mr->VolStatus, val, sizeof(mr->VolStatus));
- Mmsg(&query, "UPDATE Media SET VolStatus='%s' WHERE MediaId=%u",
- mr->VolStatus, mr->MediaId);
- if (!db_sql_query(ua->db, query, NULL, NULL)) {
- bsendmsg(ua, "%s", db_strerror(ua->db));
+ char *kw[] = {
+ "Append",
+ "Archive",
+ "Disabled",
+ "Full",
+ "Used",
+ "Cleaning",
+ "Read-Only",
+ NULL};
+ bool found = false;
+ int i;
+
+ for (i=0; kw[i]; i++) {
+ if (strcasecmp(val, kw[i]) == 0) {
+ found = true;
+ break;
+ }
+ }
+ if (!found) {
+ bsendmsg(ua, _("Invalid VolStatus specified: %s\n"), val);
} else {
- bsendmsg(ua, _("New Volume status is: %s\n"), mr->VolStatus);
+ bstrncpy(mr->VolStatus, kw[i], sizeof(mr->VolStatus));
+ Mmsg(&query, "UPDATE Media SET VolStatus='%s' WHERE MediaId=%u",
+ mr->VolStatus, mr->MediaId);
+ if (!db_sql_query(ua->db, query, NULL, NULL)) {
+ bsendmsg(ua, "%s", db_strerror(ua->db));
+ } else {
+ bsendmsg(ua, _("New Volume status is: %s\n"), mr->VolStatus);
+ }
}
free_pool_memory(query);
}