Lines Matching defs:ncp
92 nfsl_config_t *ncp = NULL, *last_good_ncp;
184 if ((ncp = last_good_ncp =
207 ncp = nfsl_findconfig(*config_list, tag, &error);
217 if (ncp == NULL) {
219 ncp = last_good_ncp;
222 last_good_ncp = ncp;
225 if (ncp->nc_flags & NC_UPDATED) {
232 cleanup_elf_state(ncp);
233 cleanup_trans_state(ncp);
235 ncp->nc_flags &= ~NC_UPDATED;
246 if (ncp->nc_rpclogpath != NULL) {
250 if (!elf_checked && ncp->nc_elfcookie != NULL) {
255 if (stat(ncp->nc_rpclogpath, &st) == -1 &&
261 cleanup_elf_state(ncp);
265 if (ncp->nc_elfcookie == NULL) {
267 ncp->nc_elfcookie = nfslog_open_elf_file(
268 ncp->nc_rpclogpath, &lbp->bh, &error);
269 if (ncp->nc_elfcookie == NULL) {
276 if (ncp->nc_logpath != NULL) {
280 if (!trans_checked && ncp->nc_transcookie != NULL) {
284 if (stat(ncp->nc_logpath, &st) == -1 &&
293 cleanup_trans_state(ncp);
297 if (ncp->nc_transcookie == NULL) {
301 (ncp->nc_logformat == TRANSLOG_BASIC) ?
304 ncp->nc_transcookie = nfslog_open_trans_file(
305 ncp->nc_logpath, ncp->nc_logformat,
307 if (ncp->nc_transcookie == NULL) {
314 assert(ncp->nc_fhpath != NULL);
316 if (nfslog_process_fh_rec(lrp, ncp->nc_fhpath, &path1, &path2,
317 ncp->nc_elfcookie != NULL)) {
321 if (ncp->nc_elfcookie != NULL) {
322 (void) nfslog_process_elf_rec(ncp->nc_elfcookie,
326 if (ncp->nc_transcookie != NULL) {
328 ncp->nc_transcookie,
329 &lrp->log_record, ncp->nc_fhpath,
380 if (ncp && !quick_cleaning)
381 cleanup_elf_state(ncp);
387 cleanup_elf_state(nfsl_config_t *ncp)
389 if (ncp->nc_elfcookie != NULL) {
390 nfslog_close_elf_file(&ncp->nc_elfcookie);
391 assert(ncp->nc_elfcookie == NULL);
396 cleanup_trans_state(nfsl_config_t *ncp)
398 if (ncp->nc_transcookie != NULL) {
399 nfslog_close_transactions(&ncp->nc_transcookie);
400 assert(ncp->nc_transcookie == NULL);