aboutsummaryrefslogtreecommitdiff
path: root/storeio/dev.c
Commit message (Collapse)AuthorAgeFilesLines
* 1999-07-11 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-9/+8
| | | | * dev.c (dev_read: ensure_buf): Fix sloppy bugs in last change.
* 1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-111-5/+6
| | | | | * dev.c (dev_open): Use mmap instead of vm_allocate. (dev_read): Likewise.
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-111-0/+1
| | | | | * dev.c: Add #include <sys/mman.h> for munmap decl. * pager.c: Likewise.
* 1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-07-031-7/+4
| | | | | | | * dev.c (dev_buf_fill): Use munmap instead of vm_deallocate. (dev_close): Likewise. (dev_read): Likewise. * pager.c (pager_write_page): Likewise.
* 1999-01-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-01-271-12/+56
| | | | | | | | | | | | | | | | * storeio.c (options): New option -c/--no-cache. (inhibit_cache): New variable. (parse_opt): Make -c set it. (trivfs_append_args): Report --no-cache if set. (check_open_hook): Pass inhibit_cache flag to dev_open. * dev.h (struct dev): New member `inhibit_cache'. (dev_open): Update decl. * dev.c (dev_open): Take new arg inhibit_cache, store in new dev. If set, don't initialize buf_offs, io_lock, pager, pager_lock. (dev_read, dev_write): If DEV->inhibit_cache is set, allow only whole-block i/o: EINVAL for non-whole-block attempts. * pager.c (dev_get_memory_object): If DEV->inhibit_cache is set, don't make our own pager; if store_map returns EOPNOTSUPP, so do we.
* Add braces to silence gcc warnings.Roland McGrath1998-10-201-11/+13
|
* (dev_open):Miles Bader1996-09-231-5/+5
| | | | | | Remove CLASSES argument to store_parsed_open. (dev_buf_fill, dev_read, dev_write): Use void * buffers.
* (dev_rw): Return EINVAL instead of EIO for too-large offsets.Miles Bader1996-09-141-12/+1
| | | | | (dev_open, dev_close): Remove ifdef'd-out code for allocating DEV's buffer with valloc; other things depend on it being vm_allocated.
* Initial checkinMiles Bader1996-09-081-0/+414