*avols = (struct bc_volumeDump *)0;
bulkentries.nbulkentries_len = 0;
bulkentries.nbulkentries_val = 0;
+ memset(&attributes, 0, sizeof(attributes));
/* For each of the volume set entries - collect the volumes that match it */
for (tve = avs->ventries; tve; tve = tve->next) {
ei = entries[e].matchindex & 0xffff;
et = (entries[e].matchindex >> 16) & 0xffff;
switch (et) {
- case ITSRWVOL:{
+ case VLSF_RWVOL:{
et = RWVOL;
break;
}
- case ITSBACKVOL:{
+ case VLSF_BACKVOL:{
et = BACKVOL;
break;
}
- case ITSROVOL:{
+ case VLSF_ROVOL:{
et = ROVOL;
break;
}
/* If the RW name matches the volume set entry, take
* it and exit. First choice is to use the RW volume.
*/
- if (entry.serverFlags[srvpartpair] & ITSRWVOL) {
- if (entry.flags & RW_EXISTS) {
+ if (entry.serverFlags[srvpartpair] & VLSF_RWVOL) {
+ if (entry.flags & VLF_RWEXISTS) {
sprintf(patt, "%s", entry.name);
#ifdef HAVE_POSIX_REGEX
code = regexec(&re, patt, 0, NULL, 0);
/* If the BK name matches the volume set entry, take
* it and exit. Second choice is to use the BK volume.
*/
- if (entry.flags & BACK_EXISTS) {
+ if (entry.flags & VLF_BACKEXISTS) {
sprintf(patt, "%s.backup", entry.name);
#ifdef HAVE_POSIX_REGEX
code = regexec(&re, patt, 0, NULL, 0);
* it, but continue searching. Further entries may be
* RW or backup entries that will match.
*/
- else if (!found && (entry.serverFlags[srvpartpair] & ITSROVOL)
- && (entry.flags & RO_EXISTS)) {
+ else if (!found && (entry.serverFlags[srvpartpair] & VLSF_ROVOL)
+ && (entry.flags & VLF_ROEXISTS)) {
sprintf(patt, "%s.readonly", entry.name);
#ifdef HAVE_POSIX_REGEX
code = regexec(&re, patt, 0, NULL, 0);
havetime = 1;
}
- port = (as->parms[3].items ? getPortOffset(as->parms[3].items->data) : 0); /* -port */
+ port = (as->parms[3].items ? getPortOffset(as->parms[3].items->data) : 0); /* -portoffset */
if (as->parms[5].items) /* -dbonly */
port = -1;