aboutsummaryrefslogtreecommitdiff
path: root/storeio
Commit message (Collapse)AuthorAgeFilesLines
* fix common misspellingsJonathan Neuschäfer2011-08-202-5/+5
| | | | | | * Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
* Switch to the new ChangeLog style.Thomas Schwinge2009-07-111-353/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ChangeLog: Wipe out content, and add instructions about how to get it back. * auth/ChangeLog: Remove file. * benchmarks/ChangeLog: Likewise. * boot/ChangeLog: Likewise. * bsdfsck/ChangeLog: Likewise. * config/ChangeLog: Likewise. * console-client/ChangeLog: Likewise. * console/ChangeLog: Likewise. * daemons/ChangeLog: Likewise. * defpager/ChangeLog: Likewise. * doc/ChangeLog: Likewise. * exec/ChangeLog: Likewise. * ext2fs/ChangeLog: Likewise. * fatfs/ChangeLog: Likewise. * fstests/ChangeLog: Likewise. * ftpfs/ChangeLog: Likewise. * hostmux/ChangeLog: Likewise. * hurd/ChangeLog: Likewise. * include/ChangeLog: Likewise. * init/ChangeLog: Likewise. * isofs/ChangeLog: Likewise. * libcons/ChangeLog: Likewise. * libdirmgt/ChangeLog: Likewise. * libdiskfs/ChangeLog: Likewise. * libfshelp/ChangeLog: Likewise. * libftpconn/ChangeLog: Likewise. * libhurdbugaddr/ChangeLog: Likewise. * libihash/ChangeLog: Likewise. * libiohelp/ChangeLog: Likewise. * libnetfs/ChangeLog: Likewise. * libpager/ChangeLog: Likewise. * libpipe/ChangeLog: Likewise. * libports/ChangeLog: Likewise. * libps/ChangeLog: Likewise. * libshouldbeinlibc/ChangeLog: Likewise. * libstore/ChangeLog: Likewise. * libthreads/ChangeLog: Likewise. * libtrivfs/ChangeLog: Likewise. * login/ChangeLog: Likewise. * mach-defpager/ChangeLog: Likewise. * nfs/ChangeLog: Likewise. * nfsd/ChangeLog: Likewise. * pfinet/ChangeLog: Likewise. * pflocal/ChangeLog: Likewise. * proc/ChangeLog: Likewise. * release/ChangeLog: Likewise. * serverboot/ChangeLog: Likewise. * storeio/ChangeLog: Likewise. * sutils/ChangeLog: Likewise. * term/ChangeLog: Likewise. * tmpfs/ChangeLog: Likewise. * trans/ChangeLog: Likewise. * ufs-fsck/ChangeLog: Likewise. * ufs-utils/ChangeLog: Likewise. * ufs/ChangeLog: Likewise. * usermux/ChangeLog: Likewise. * utils/ChangeLog: Likewise.
* Update copyright years.Thomas Schwinge2008-07-011-1/+2
|
* * dev.c (dev_buf_rw, buffered_rw, dev_rw): Remove inline qualifier fromSamuel Thibault2008-06-102-12/+17
| | | | parameters `buf_rw'.
* 2006-06-15 Thomas Schwinge <tschwinge@gnu.org>Thomas Schwinge2006-06-152-8/+16
| | | | | * open.c (open_seek): Seek into the correct direction for `SEEK_END'. Return EINVAL if file pointer would become negative.
* 2005-01-08 Marco Gerards <metgerards@student.han.nl>Marco Gerards2005-01-072-3/+4
| | | | * storeio.c (trivfs_modify_stat): Don't initialize st_blocks.
* .Roland McGrath2002-06-221-0/+5
|
* 2002-06-22 Roland McGrath <roland@frob.com>Roland McGrath2002-06-221-2/+2
| | | | | * storeio.c (parse_opt): Fix fencepost error in -n arg parsing. Reported by Nicola Girardi <nicola@g-n-u.de>.
* .Roland McGrath2002-06-131-0/+6
|
* 2002-06-13 Roland McGrath <roland@frob.com>Roland McGrath2002-06-131-6/+6
| | | | | | * io.c (trivfs_S_io_read, trivfs_S_io_write): off_t -> loff_t. Fix DATA argument type. (trivfs_S_file_sync): Add missing last arg.
* .Roland McGrath2002-05-081-0/+4
|
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-3/+3
| | | | * pager.c (pager_read_page, pager_write_page): int -> size_t
* .Roland McGrath2002-03-111-0/+5
|
* 2002-03-10 Roland McGrath <roland@frob.com>Roland McGrath2002-03-111-1/+8
| | | | | * dev.c (dev_read): Return success with *LEN = 0 when reading exactly at the end of the store.
* .Roland McGrath2002-01-021-0/+8
|
* 2001-12-28 Roland McGrath <roland@frob.com>Roland McGrath2002-01-023-8/+12
| | | | | | | | * dev.h (struct dev): New member `no_fileio' (flag). * storeio.c (options): Add --no-file-io/-F. (parse_opt): Parse it to set PARAMS->dev->no_fileio. (trivfs_append_args): Add --no-file-io if it's set. * dev.c (dev_open): Pass STORE_NOFILEIO flag if DEV->no_fileio is set.
* .Roland McGrath2001-08-151-0/+8
|
* 2001-08-12 Neal H Walfield <neal@cs.uml.edu>Roland McGrath2001-08-152-3/+4
| | | | | | | | * pager.c: Include <errno.h>. (pager_read_page): Use memset, not bzero. * storeio.c (check_open_hook): Typo fix in comment. (trivfs_modify_stat): STORE->size is a store_offset_t. It not a vm_size_t.
* libstore/Marcus Brinkmann2001-05-062-4/+14
| | | | | | | | | | | | | | | | | | | | | 2001-04-26 Marcus Brinkmann <marcus@ulysses.dhis.net> * set.c: Use explicit comparison to MACH_PORT_NULL. storeio/ 2001-05-06 Marcus Brinkmann <marcus@gnu.org> * dev.c (dev_open): Do not create/open the store with STORE_INACTIVE, as this doesn't work correctly. Inactivate the store afterwards instead. 2001-02-18 Marcus Brinkmann <marcus@gnu.org> * dev.h (struct dev): New member nperopens. * storeio.c (open_hook): Hold device lock and check if this is the TODO: add item about the storeio hack
* 2001-02-18 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-04-194-8/+39
| | | | | | | | | | * dev.h (struct dev): New member nperopens. * storeio.c (open_hook): Hold device lock and check if this is the first open. If yes, activate the store. (close_hook): Hold global_lock and check if this was the last open. If yes, inactivate the store. * dev.c (dev_open): Open the store with STORE_INACTIVE (in store_parsed_open as well as in store_create).
* .Roland McGrath2001-01-171-0/+4
|
* 2001-01-17 Roland McGrath <roland@frob.com>Roland McGrath2001-01-171-1/+1
| | | | * dev.c (dev_buf_discard): Don't check AMOUNT if store_write failed.
* 2001-01-16 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann2001-01-163-1/+9
| | | | | | | * dev.c (dev_open): Add missing argument `classes' to invocation of store_create. * dev.h: Include <hurd/trivfs.h> for struct trivfs_control.
* .Roland McGrath2001-01-161-0/+9
|
* 2001-01-16 Roland McGrath <roland@frob.com>Roland McGrath2001-01-163-10/+26
| | | | | | | | | * storeio.c (parse_opt): Set PARAMS->store_params.store_optional. (storeio_fsys): New global variable. (main): Use it. * dev.h: Declare it. * dev.c (dev_open): If DEV->store_name is null, open the underlying node using store_create.
* * Makefile (HURDLIBS): Reorder libs such that the threads libMark Kettenis2000-07-262-2/+9
| | | | | | comes before the ports lib. This makes sure the functions in libthreads properly override the stubs in libports with the new dynamic linker semantics in glibc 2.2.
* .Roland McGrath2000-03-191-0/+2
|
* 2000-03-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-191-5/+4
| | | | * io.c: Comments.
* .Roland McGrath2000-03-191-0/+28
|
* 2000-03-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-03-193-108/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * dev.h (struct dev): New members store_name, readonly, rdev. (dev_is_readonly): New inline function. * dev.c (dev_open): Take just one arg, a struct dev whose store==0. (dev_close): Shut down the store, but leave DEV intact with store==0. * storeio.c (struct storeio_argp_params): New type. (device, device_lock, store_name): Variables removed. (readonly, inhibit_cache, enforce_store, rdev): Likewise. These are all now members in struct storeio_argp_params or struct dev; rdev now uses dev_t instead of int. (parse_opt): Find a struct storeio_argp_params in STATE->input and fill it in accordingly. Use makedev macro to construct rdev. (trivfs_append_args): Find options in struct dev off control hook. Use major, minor macros. (main): Make DEVICE a local here, and point FSYS->hook at it. Don't modify trivfs_allow_open. (getroot_hook): New static function. (trivfs_getroot_hook): New variable, initialized to that. (check_open_hook): Find struct dev in CNTL->hook and use new dev_open interface. Use dev_is_readonly. (open_hook): Find struct dev in PEROPEN->cntl->hook and check DEV->store. (trivfs_modify_stat): Find struct dev in CRED->po->cntl->hook. Use dev_is_readonly. (trivfs_goaway): Find struct dev in FSYS->hook and use its lock. (trivfs_S_fsys_syncfs): Find struct dev in CNTL->hook.
* .Roland McGrath1999-11-251-0/+5
|
* 1999-11-24 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-251-1/+1
| | | | | * storeio.c (trivfs_modify_stat): Clear writable bits if open store is readonly, not just if we got the --readonly switch.
* .Roland McGrath1999-11-211-0/+7
|
* 1999-11-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-211-8/+20
| | | | | | | * dev.c (dev_read, dev_write): In DEV->inhibit_cache case, handle zero (i.e. unknown) block_size by treating it as 1. Use shift and bitwise-and rather than multiply and modulus for block size arithmetic, since it's a known power of two.
* .Roland McGrath1999-11-181-0/+16
|
* 1999-11-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-181-0/+2
| | | | | | | | | | * dev.h (struct dev): New member `enforced'. * storeio.c (enforce_store): New variable. (options, parse_opt, trivfs_append_args): Grok new option --enforced/-e to set enforce_store. (check_open_hook): Set DEVICE->enforced from enforce_store. * io.c (trivfs_S_file_get_storage_info): If DEV->enforced is set and the store flags lack STORE_ENFORCED, then return STORAGE_OTHER.
* 1999-11-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-181-4/+10
| | | | | | | | | | | | * storeio.c (check_open_hook): Don't check for D_NO_SUCH_DEVICE here. Translation to ENXIO now done in libstore. * dev.h (struct dev): New member `enforced'. * storeio.c (enforce_store): New variable. (options, parse_opt, trivfs_append_args): Grok new option --enforced/-e to set enforce_store. (check_open_hook): Set DEVICE->enforced from enforce_store. * io.c (trivfs_S_file_get_storage_info): If DEV->enforced is set and the store flags lack STORE_ENFORCED, then return STORAGE_OTHER.
* 1999-11-14 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-11-181-2/+28
| | | | | | | | | | | | * io.c (trivfs_S_file_get_storage_info): Fail with EOPNOTSUPP when there is no store open. * dev.h (struct dev): New member `enforced'. * storeio.c (enforce_store): New variable. (options, parse_opt, trivfs_append_args): Grok new option --enforced/-e to set enforce_store. (check_open_hook): Set DEVICE->enforced from enforce_store. * io.c (trivfs_S_file_get_storage_info): If DEV->enforced is set and the store flags lack STORE_ENFORCED, then return STORAGE_OTHER.
* Reverted changes related to io_map_segment.Roland McGrath1999-09-132-3/+5
|
* 1999-09-07 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell1999-09-082-1/+8
| | | | | * io.c (trivfs_S_io_map): Renamed to ... (trivfs_S_io_map_segment): ... here, and accept parameter `index'.
* .Roland McGrath1999-07-111-3/+7
|
* 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-112-5/+11
| | | | | * dev.c (dev_open): Use mmap instead of vm_allocate. (dev_read): Likewise.
* .Roland McGrath1999-07-111-0/+5
|
* 1999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-07-112-0/+2
| | | | | * 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-033-8/+12
| | | | | | | * dev.c (dev_buf_fill): Use munmap instead of vm_deallocate. (dev_close): Likewise. (dev_read): Likewise. * pager.c (pager_write_page): Likewise.
* .Roland McGrath1999-05-231-1/+5
|
* 1999-05-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-2/+6
| | | | * storeio.c (check_open_hook): Translate D_NO_SUCH_DEVICE to ENXIO.
* *** empty log message ***Thomas Bushnell1999-05-131-1/+1
|
* .Roland McGrath1999-05-121-0/+5
|