|
|
1.1 ! root 1: /* rfdump.c - rfdump */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: #include <fserver.h> ! 6: #include <rfile.h> ! 7: ! 8: /*------------------------------------------------------------------------ ! 9: * rfdump -- dump the contents of the remote file device blocks ! 10: *------------------------------------------------------------------------ ! 11: */ ! 12: rfdump() ! 13: { ! 14: struct rfblk *rfptr; ! 15: int i; ! 16: ! 17: kprintf("Remote files: server on dev=%d, server mutex=%d\n", ! 18: Rf.device, Rf.rmutex); ! 19: for (i=0 ; i<Nrf; i++) { ! 20: rfptr = &Rf.rftab[i]; ! 21: if (rfptr->rf_state == RFREE) ! 22: continue; ! 23: kprintf(" %2d. ", rfptr->rf_dnum); ! 24: kprintf("mode=%03o, sem=%2d, pos=%6D, file name=%s\n", ! 25: rfptr->rf_mode, rfptr->rf_mutex, ! 26: rfptr->rf_pos, rfptr->rf_name); ! 27: } ! 28: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.