Turn off block read debugs and turn on mount debugs
This commit is contained in:
parent
4ee157f5ce
commit
e09714ab53
4 changed files with 10 additions and 7 deletions
|
@ -37,6 +37,8 @@ EXTERN struct worker_thread *self;
|
||||||
EXTERN endpoint_t receive_from;/* endpoint with pending reply */
|
EXTERN endpoint_t receive_from;/* endpoint with pending reply */
|
||||||
EXTERN int force_sync; /* toggle forced synchronous communication */
|
EXTERN int force_sync; /* toggle forced synchronous communication */
|
||||||
EXTERN int verbose;
|
EXTERN int verbose;
|
||||||
|
EXTERN int verbose2;
|
||||||
|
EXTERN endpoint_t verbose_e;
|
||||||
EXTERN int deadlock_resolving;
|
EXTERN int deadlock_resolving;
|
||||||
EXTERN mutex_t exec_lock;
|
EXTERN mutex_t exec_lock;
|
||||||
EXTERN mutex_t bsf_lock;/* Global lock for access to block special files */
|
EXTERN mutex_t bsf_lock;/* Global lock for access to block special files */
|
||||||
|
|
|
@ -79,6 +79,8 @@ PUBLIC int main(void)
|
||||||
|
|
||||||
printf("Started AVFS\n");
|
printf("Started AVFS\n");
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
|
verbose2 = 0;
|
||||||
|
verbose_e = NONE;
|
||||||
|
|
||||||
/* This is the main loop that gets work, processes it, and sends replies. */
|
/* This is the main loop that gets work, processes it, and sends replies. */
|
||||||
while (TRUE) {
|
while (TRUE) {
|
||||||
|
@ -385,7 +387,7 @@ PRIVATE void *do_work(void *arg)
|
||||||
|
|
||||||
lock_proc(fp, 0); /* This proc is busy */
|
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);
|
printf("Doing call_nr = %d for %d\n", call_nr, who_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -152,7 +152,11 @@ PUBLIC int do_mount()
|
||||||
return(err_code);
|
return(err_code);
|
||||||
|
|
||||||
/* Do the actual job */
|
/* Do the actual job */
|
||||||
|
verbose2 = 1;
|
||||||
|
verbose_e = fs_e;
|
||||||
r = mount_fs(dev, fullpath, fs_e, rdonly, mount_label);
|
r = mount_fs(dev, fullpath, fs_e, rdonly, mount_label);
|
||||||
|
verbose2 = 0;
|
||||||
|
verbose_e = NONE;
|
||||||
return(r);
|
return(r);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -137,17 +137,12 @@ int rw_flag; /* READING or WRITING */
|
||||||
} else if (block_spec) { /* Block special files. */
|
} else if (block_spec) { /* Block special files. */
|
||||||
lock_bsf();
|
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,
|
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);
|
m_in.nbytes, m_in.buffer, rw_flag, &res_pos, &res_cum_io);
|
||||||
if (r == OK) {
|
if (r == OK) {
|
||||||
printf("OK res_cum_io = %d\n", res_cum_io);
|
|
||||||
position = res_pos;
|
position = res_pos;
|
||||||
cum_io += res_cum_io;
|
cum_io += res_cum_io;
|
||||||
} else
|
}
|
||||||
printf("Failed with %d\n", r);
|
|
||||||
|
|
||||||
unlock_bsf();
|
unlock_bsf();
|
||||||
} else { /* Regular files */
|
} else { /* Regular files */
|
||||||
|
|
Loading…
Reference in a new issue