amp = &amsgtable[which];
- if ((amp->flags & AMF_DONE) &&
- (amp->result == EDEADSRCDST || amp->result == EDSTDIED)) {
+ if ((amp->flags & AMF_DONE) && (amp->result == EDEADSRCDST)) {
return BD_DEAD;
}
#define EDEADSRCDST (_SIGN 105) /* source or destination is not alive */
#define ENOTREADY (_SIGN 106) /* source or destination is not ready */
#define EBADREQUEST (_SIGN 107) /* destination cannot handle request */
-#define ESRCDIED (_SIGN 108) /* source just died */
-#define EDSTDIED (_SIGN 109) /* destination just died */
#define ETRAPDENIED (_SIGN 110) /* IPC trap not allowed */
#define EDONTREPLY (_SIGN 201) /* pseudo-code: don't send a reply */
driver_e = driver_endpoints[(dev >> MAJOR) & BYTE].driver_e;
/* See if driver is roughly valid. */
- if (driver_e == NONE) return(EDSTDIED);
+ if (driver_e == NONE) return(EDEADSRCDST);
/* The io vector copying relies on this I/O being for FS itself. */
if(proc_e != SELF_E) {
* - VFS sends the new driver endp for the FS proc and the request again
*/
if (r != OK) {
- if (r == EDEADSRCDST || r == EDSTDIED || r == ESRCDIED) {
+ if (r == EDEADSRCDST) {
printf("ISOFS(%d) dead driver %d\n", SELF_E, driver_e);
driver_endpoints[(dev >> MAJOR) & BYTE].driver_e = NONE;
return(r);
r = sendrec(task_nr, mess_ptr);
if (r != OK) {
- if (r == EDEADSRCDST || r == EDSTDIED || r == ESRCDIED) {
+ if (r == EDEADSRCDST) {
printf("fs: dead driver %d\n", task_nr);
panic(__FILE__, "should handle crashed drivers",
NO_NUM);
/* See if driver is roughly valid. */
if (driver_e == NONE) {
printf("MFS(%d) block_dev_io: no driver for dev %x\n", SELF_E, dev);
- return(EDSTDIED);
+ return(EDEADSRCDST);
}
/* The io vector copying relies on this I/O being for FS itself. */
* - VFS sends the new driver endp for the FS proc and the request again
*/
if (r != OK) {
- if (r == EDEADSRCDST || r == EDSTDIED || r == ESRCDIED) {
+ if (r == EDEADSRCDST) {
printf("MFS(%d) dead driver %d\n", SELF_E, driver_e);
driver_endpoints[(dev >> MAJOR) & BYTE].driver_e = NONE;
return r;
r = sendrec(task_nr, mess_ptr);
if (r != OK) {
- if (r == EDEADSRCDST || r == EDSTDIED || r == ESRCDIED) {
+ if (r == EDEADSRCDST) {
printf("fs: dead driver %d\n", task_nr);
panic(__FILE__, "should handle crashed drivers",
NO_NUM);
if ((r = sendrec(m->m_source, &st)) != OK) {
printf("DEV_STATUS failed to %d: %d\n", m->m_source, r);
if (r == EDEADSRCDST) return;
- if (r == EDSTDIED) return;
- if (r == ESRCDIED) return;
panic(__FILE__,"couldn't sendrec for DEV_STATUS", r);
}
proc_e = mess_ptr->IO_ENDPT;
r = sendrec(task_nr, mess_ptr);
if (r != OK) {
- if (r == EDEADSRCDST || r == EDSTDIED || r == ESRCDIED) {
+ if (r == EDEADSRCDST) {
printf("fs: dead driver %d\n", task_nr);
dmap_unmap_by_endpt(task_nr);
return(r);