|
|
1.1 ! root 1: /* lfsflush.c - lfsflush */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: #include <disk.h> ! 6: #include <lfile.h> ! 7: #include <dir.h> ! 8: ! 9: /*------------------------------------------------------------------------ ! 10: * lfsflush -- flush data and i-block for a file ! 11: *------------------------------------------------------------------------ ! 12: */ ! 13: lfsflush(flptr) ! 14: struct flblk *flptr; ! 15: { ! 16: DBADDR dba; ! 17: ! 18: if (!flptr->fl_dch) ! 19: return(SYSERR); ! 20: dba = flptr->fl_iblk.ib_dba[flptr->fl_ipnum]; ! 21: write(flptr->fl_dev, dskbcpy(flptr->fl_buff), dba); ! 22: flptr->fl_dch = FALSE; ! 23: return(OK); ! 24: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.