Turn off block read debugs and turn on mount debugs

This commit is contained in:
Thomas Veerman 2011-08-22 13:24:35 +00:00
parent 4ee157f5ce
commit e09714ab53
4 changed files with 10 additions and 7 deletions

View file

@ -37,6 +37,8 @@ EXTERN struct worker_thread *self;
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 */

View file

@ -79,6 +79,8 @@ PUBLIC int main(void)
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) {
@ -385,7 +387,7 @@ PRIVATE void *do_work(void *arg)
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);
}

View file

@ -152,7 +152,11 @@ PUBLIC int do_mount()
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);
}

View file

@ -137,17 +137,12 @@ int rw_flag; /* READING or WRITING */
} 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 */