void PersistentFilespace_FileRepVerify(void) { PersistentFilespace_VerifyInitScan(); PersistentFileSysObj_Scan( PersistentFsObjType_FilespaceDir, PersistentFilespace_FileRepVerifyScanTupleCallback); return; }
void PersistentDatabase_CheckTablespace( Oid tablespace, int32 *useCount) { persistentDatabaseCheckTablespace = tablespace; persistentDatabaseCheckTablespaceUseCount = 0; PersistentFileSysObj_Scan( PersistentFsObjType_DatabaseDir, PersistentDatabase_CheckTablespaceScanTupleCallback); *useCount = persistentDatabaseCheckTablespaceUseCount; }
bool PersistentFilespace_Check( Oid filespace) { PersistentFilespace_VerifyInitScan(); persistentFilespaceCheck = filespace; persistentFilespaceCheckFound = false; PersistentFileSysObj_Scan( PersistentFsObjType_FilespaceDir, PersistentFilespace_CheckScanTupleCallback); return persistentFilespaceCheckFound; }
void PersistentRelation_CheckTablespace( Oid tablespace, int32 *useCount, RelFileNode *exampleRelationNode) { persistentRelationCheckTablespace = tablespace; persistentRelationCheckTablespaceUseCount = 0; MemSet(&persistentRelationCheckTablespaceRelationNode, 0, sizeof(RelFileNode)); PersistentFileSysObj_Scan( PersistentFsObjType_RelationDir, PersistentRelation_CheckTablespaceScanTupleCallback); *useCount = persistentRelationCheckTablespaceUseCount; memcpy(exampleRelationNode, &persistentRelationCheckTablespaceRelationNode, sizeof(RelFileNode)); }