EXTERN endpoint_t receive_from;/* endpoint with pending reply */
EXTERN int force_sync; /* toggle forced synchronous communication */
EXTERN int verbose;
+EXTERN int verbose2;
+EXTERN endpoint_t verbose_e;
EXTERN int deadlock_resolving;
EXTERN mutex_t exec_lock;
EXTERN mutex_t bsf_lock;/* Global lock for access to block special files */
printf("Started AVFS\n");
verbose = 0;
+ verbose2 = 0;
+ verbose_e = NONE;
/* This is the main loop that gets work, processes it, and sends replies. */
while (TRUE) {
lock_proc(fp, 0); /* This proc is busy */
- if (verbose) {
+ if (verbose2 && who_e == verbose_e) {
printf("Doing call_nr = %d for %d\n", call_nr, who_e);
}
return(err_code);
/* Do the actual job */
+ verbose2 = 1;
+ verbose_e = fs_e;
r = mount_fs(dev, fullpath, fs_e, rdonly, mount_label);
+ verbose2 = 0;
+ verbose_e = NONE;
return(r);
}
} else if (block_spec) { /* Block special files. */
lock_bsf();
- printf("Doing block read_write(%d) from dev %d/ep=%d\n",
- rw_flag == READING,
- vp->v_sdev, vp->v_bfs_e);
r = req_breadwrite(vp->v_bfs_e, who_e, vp->v_sdev, position,
m_in.nbytes, m_in.buffer, rw_flag, &res_pos, &res_cum_io);
if (r == OK) {
- printf("OK res_cum_io = %d\n", res_cum_io);
position = res_pos;
cum_io += res_cum_io;
- } else
- printf("Failed with %d\n", r);
+ }
unlock_bsf();
} else { /* Regular files */