* system.
*
* Kern Sibbald, January MMI
+ *
+ *
+ * Version $Id$
*/
/*
return 0;
}
- P(mdb->mutex);
+ db_lock(mdb);
fseek(mdb->jobfd, ojr.rec_addr, SEEK_SET);
if (fwrite(jr, len, 1, mdb->jobfd) != 1) {
}
fflush(mdb->jobfd);
- V(mdb->mutex);
+ db_unlock(mdb);
return stat;
}
return 0;
}
- P(mdb->mutex);
+ db_lock(mdb);
fseek(mdb->jobfd, ojr.rec_addr, SEEK_SET);
if (fwrite(jr, len, 1, mdb->jobfd) != 1) {
}
fflush(mdb->jobfd);
- V(mdb->mutex);
+ db_unlock(mdb);
return stat;
}
return 0;
}
- P(mdb->mutex);
+ db_lock(mdb);
/* Don't allow some fields to change by copying from master record */
strcpy(mr->VolumeName, omr.VolumeName);
mr->PoolId = omr.PoolId;
mr->VolMaxBytes = omr.VolMaxBytes;
mr->VolCapacityBytes = omr.VolCapacityBytes;
- strcpy(mr->Recycle, omr.Recycle);
+ mr->Recycle = omr.Recycle;
fseek(mdb->mediafd, omr.rec_addr, SEEK_SET);
if (fwrite(mr, len, 1, mdb->mediafd) != 1) {
}
fflush(mdb->mediafd);
- V(mdb->mutex);
+ db_unlock(mdb);
return stat;
}
return 0;
}
- P(mdb->mutex);
+ db_lock(mdb);
/* Update specific fields */
opr.NumVols = pr->NumVols;
}
fflush(mdb->poolfd);
- V(mdb->mutex);
+ db_unlock(mdb);
return stat;
}