if (!ValidateVolumeName(volumeName, &tst)) {
goto fail_vos_VLDBGet;
}
- if (!VLDB_GetEntryByName(c_handle, volumeName, &entry, &tst)) {
+ if (!aVLDB_GetEntryByName(c_handle, volumeName, &entry, &tst)) {
goto fail_vos_VLDBGet;
}
} else {
- if (!VLDB_GetEntryByID(c_handle, *volumeId, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(c_handle, *volumeId, -1, &entry, &tst)) {
goto fail_vos_VLDBGet;
}
}
* Check that the volume doesn't already exist
*/
- if (VLDB_GetEntryByName(c_handle, volumeName, &vinfo, &tst)) {
+ if (aVLDB_GetEntryByName(c_handle, volumeName, &vinfo, &tst)) {
tst = ADMVOSVOLUMENAMEDUP;
goto fail_vos_VolumeCreate;
}
* Retrieve the entry
*/
- if (!VLDB_GetEntryByID(c_handle, readWriteVolumeId, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(c_handle, readWriteVolumeId, -1, &entry, &tst)) {
goto fail_vos_VolumeRename;
}
*/
if (volumeId != NULL) {
- if (!VLDB_GetEntryByID(c_handle, *volumeId, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(c_handle, *volumeId, -1, &entry, &tst)) {
goto fail_vos_VolumeRestore;
}
volid = *volumeId;
close(fd);
}
- if (!VLDB_GetEntryByName(c_handle, volumeName, &entry, &tst)) {
+ if (!aVLDB_GetEntryByName(c_handle, volumeName, &entry, &tst)) {
restoreflags = RV_FULLRST;
} else if (Lp_GetRwIndex(c_handle, &entry, 0) == -1) {
restoreflags = RV_FULLRST;
} else {
islocked = 1;
- if (!VLDB_GetEntryByID(cellHandle, volumeId, avoltype, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, volumeId, avoltype, &entry, &tst)) {
goto fail_UV_DeleteVolume;
}
backupId = 0;
newVol = 0;
- if (!VLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
goto fail_UV_MoveVolume;
}
}
islocked = 1;
- if (!VLDB_GetEntryByID(cellHandle, afromvol, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, afromvol, RWVOL, &entry, &tst)) {
goto fail_UV_MoveVolume;
}
AFSVolEndTrans(fromconn, fromtid, &rcode);
}
- if (!VLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
goto done;
}
/* the calls to VLDB will succeed only if avolid is a RW volume,
* since we are following the RW hash chain for searching */
- if (!VLDB_GetEntryByID(cellHandle, avolid, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, avolid, RWVOL, &entry, &tst)) {
goto fail_UV_BackupVolume;
}
vldblocked = 1;
/* Reread the vldb entry */
- if (!VLDB_GetEntryByID(cellHandle, avolid, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, avolid, RWVOL, &entry, &tst)) {
goto fail_UV_BackupVolume;
}
}
islocked = 1;
/* Get the vldb entry in readable format */
- if (!VLDB_GetEntryByID(cellHandle, afromvol, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, afromvol, RWVOL, &entry, &tst)) {
goto fail_UV_ReleaseVolume;
}
fromcall = (struct rx_call *)0;
islocked = 0;
- if (!VLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, afromvol, -1, &entry, &tst)) {
goto fail_UV_DumpVolume;
}
pvolid = tovolid;
toconn = UV_Bind(cellHandle, toserver, AFSCONF_VOLUMEPORT);
if (pvolid == 0) { /*alot a new id if needed */
- VLDB_GetEntryByName(cellHandle, tovolname, &entry, &tst);
+ aVLDB_GetEntryByName(cellHandle, tovolname, &entry, &tst);
if (tst == VL_NOENT) {
tst =
ubik_Call(VL_GetNewVolumeId, cellHandle->vos, 0, 1, &pvolid);
/* Volume was restored on the file server, update the
* VLDB to reflect the change.
*/
- VLDB_GetEntryByID(cellHandle, pvolid, RWVOL, &entry, &tst);
+ aVLDB_GetEntryByID(cellHandle, pvolid, RWVOL, &entry, &tst);
if (tst && tst != VL_NOENT && tst != VL_ENTDELETED) {
goto fail_UV_RestoreVolume;
}
}
islocked = 1;
- if (!VLDB_GetEntryByID(cellHandle, volid, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, volid, RWVOL, &entry, &tst)) {
goto fail_UV_AddSite;
}
if (!ISNAMEVALID(entry.name)) {
}
islocked = 1;
- if (!VLDB_GetEntryByID(cellHandle, volid, RWVOL, &entry, &tst)) {
+ if (!aVLDB_GetEntryByID(cellHandle, volid, RWVOL, &entry, &tst)) {
goto fail_UV_RemoveSite;
}
if (!Lp_ROMatch(cellHandle, &entry, server, part, &tst)) {
maxVolid += temp2;
}
- VLDB_GetEntryByID(cellHandle, elem.ids[RWVOL], RWVOL, &entry, &tst);
+ aVLDB_GetEntryByID(cellHandle, elem.ids[RWVOL], RWVOL, &entry, &tst);
if (tst && (tst != VL_NOENT)) {
noError = 0;
totalCE++;
}
islocked = 1;
- if (!VLDB_GetEntryByID
+ if (!aVLDB_GetEntryByID
(cellHandle, entry->volumeId[RWVOL], RWVOL, entry, &tst)) {
goto fail_CheckVldb;
}