Age | Commit message (Collapse) | Author |
|
* io.c: Comments.
|
|
* 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.
|
|
|
|
* io.c (trivfs_S_io_map): Renamed to ...
(trivfs_S_io_map_segment): ... here, and accept parameter `index'.
|
|
* io.c (trivfs_S_file_syncfs): Fix inverted test.
Reported by OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>.
|
|
Don't bother returning EBADF.
(trivfs_S_io_readable, trivfs_S_io_read, trivfs_S_io_map):
Return EBADF instead of EINVAL.
|
|
Return EINVAL instead of EBADF.
(trivfs_S_io_map):
Return EINVAL if CRED cannot be read or written.
|
|
Pass PROT argument to dev_get_memory_object.
|
|
Make sure there are enough references to MEMOBJ for both read & write ports.
|
|
If necessary to enforce security, make a copy of STORE and inactivate it
before returning.
|
|
Use void * buffers.
|
|
|
|
|