Age | Commit message (Collapse) | Author |
|
* url.c (url_decode): Renamed to store_url_decode, made public.
(store_url_open_class): Changed use.
* store.h: Declare store_url_decode.
* decode.c (store_decode): Call store_url_decode for STORAGE_NETWORK
as a special case.
2001-12-28 Roland McGrath <roland@frob.com>
* module.c: New file.
* store.h (store_module_open, store_module_find_class,
store_module_decode): Declare them.
* argp.c (parse_opt): Leave PARSED->classes null here instead
of defaulting to store_std_classes.
(find_class): Default null class-list parameter to store_std_classes
here instead. If no matches when defaulted, try calling
store_module_open_class too.
* typed.c (store_typed_open): If no match when search list is
store_std_classes, try calling store_module_open_class too.
* url.c (find_url_class): Likewise.
* decode.c (store_decode): If no match when search list is
store_std_classes, try calling store_module_decode too.
* store.h (store_concat_class_vectors): Remove decl of nonexistent fn.
|
|
* unknown.c: New file.
* Makefile (SRCS): Add it.
* store.h (store_unknown_class, store_unknown_decode): Declare them.
* create.c (store_create): If store_decode fails with EINVAL,
and we were called with the STORE_NO_FILEIO flag bit set,
then use store_unknown_decode.
|
|
* url.c: New file.
(store_url_open): New function.
(store_url_open_class): New const variable.
* store.h: Declare them.
* std.c (store_std_classes): Add &store_url_open_class to the list,
move &store_nbd_class after it.
|
|
* memobj.c: New file.
* Makefile (SRCS): Add it.
* store.h (store_memobj_class, store_memobj_create): Declare them.
|
|
* std.c (store_std_classes): Add store_nbd_class.
* store.h: Declare it.
|
|
* nbd.c: New file.
* Makefile (SRCS): Add it.
* store.h (store_nbd_open, _store_nbd_create): Declare them.
|
|
* part.c: New file.
* std.c (store_std_classes): Add store_part_class.
* store.h (store_part_create): New prototype.
(store_part_open): Likewise.
|
|
* store.h (store_write, store_write_meth_t): Make buffer arg const*.
* copy.c (copy_write): Likewise.
* device.c (dev_write): Likewise.
* file.c (file_write): Likewise.
(file_byte_write): Likewise.
* rdwr.c (store_write): Likewise.
* remap.c (remap_write): Likewise.
* stripe.c (stripe_write): Likewise.
* task.c (task_write): Likewise.
* zero.c (zero_write): Likewise.
|
|
* store.h (struct store_argp_params): Add member `store_optional'.
* argp.c (parse_opt): If store_optional is set, don't make it an error
when there are no store arguments and the type doesn't validate that.
|
|
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* hurd.texi (Store Management): Replace off_t with store_offset_t.
(Store I/O): Likewise.
(Store Classes): Likewise.
ext2fs/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* ext2fs.c (main): Use %Ld instead %ld to print store->size.
* hyper.c (get_hypermetadata): Likewise.
libstore/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* zero.c (zero_remap): Change type of variables length, old_length
to store_offset_t.
(zero_decode): Change type of variable size to store_offset_t.
(zero_open): Likewise. Use strtoull instead strtoul to parse
size argument from name. Use store_offset_t for max_offs and
its calculation.
(store_zero_create): Use store_offset_t type for size argument.
* derive.c (_store_derive): Use store_offset_t as type for
variable last_part_base.
* stripe.c (addr_adj): Change types of addr argument and return
value to store_offset_t.
(store_ileave_create): Change type of interleave argument and
variables min_end and end to store_offset_t, but type of variable
block_size to size_t.
(store_concat_create): Change type of variable block_size to
size_t.
* make.c (_store_create): Change end argument type to store_offset_t.
* store.h: New type store_offset_t, define to off64_t.
(struct store_run): Change type of start and length to
store_offset_t.
(struct store): Change type of end, wrap_src, wrap_dst, blocks,
size to store_offset_t.
Change type of addr arg in store_read_meth_t and
store_write_meth_t to store_offset_t, as well as in declarations
for store_read and store_write.
Change type of argument end in _store_create declaration to
store_offset_t.
Change type of argument size in store_zero_create to
store_offset_t. Change type of argument interleace in
store_ileace_create to store_offset_t.
* rdwr.c (store_find_first_run): Change type of return value, addr
and *base arguments, and variables wrap_src and run_blocks to
store_offset_t.
(store_next_run): Change type of *base argument to store_offset_t.
(store_write): Change type of addr argument and variable base to
store_offset_t.
(store_read): Likewise, also for addr argument of local function seg_read.
Change type of len argument to size_t.
* copy.c (copy_read): Change type of addr argument to store_offset_t.
(copy_write): Likewise.
* device.c (dev_read): Likewise.
(dev_write): Likewise.
* file.c (file_read): Likewise.
(file_write): Likewise.
(file_byte_read): Likewise.
(file_byte_write): Likewise.
* mvol.c (mvol_read): Likewise.
(mvol_write): Likewise.
* remap.c (remap_read): Likewise.
(remap_write): Likewise.
* stripe.c (stripe_read): Likewise.
(stripe_write): Likewise.
* task.c (task_read): Likewise.
(task_write): Likewise.
* zero.c (zero_read): Likewise.
(zero_write): Likewise.
* remap.c (store_remap_runs): Change type of addr and len
arguments of local function add_run and of local variables addr,
length, baddr, blen and len to store_offset_t.
(remap_open): Cast -1 to store_offset_t, not off_t.
* argp.c (struct store_parsed): Change type of interleave from
off_t to store_offset_t.
(store_parsed_append_args): Use %Ld instead %ld to print
interleave value.
(store_parsed_name): Likewise.
ufs/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* main.c (main): Use %Ld instead %ld to print store->size.
* hyper.c (get_hypermetadata): Likewise.
* inode.c (diskfs_S_file_get_storage_info): Change type of variables
start and length from off_t to store_offset_t.
utils/
2001-01-08 Marcus Brinkmann <marcus@gnu.org>
* storeread.c (main): Change type of addr to store_offset_t,
also for first argument of local function dump.
Add comment about store->size as len parameter for store_read.
Use atoll instead atoi for addr argument.
* storeinfo.c (print_store): Remove local function pint, add two
similar functions psiz and poff, accepting and printing a size_t
or store_offset_t respectively.
Use psiz to print block_size, poff to print blocks and size of
store.
Use %Ld instead %ld to print runs.
* storecat.c (main): Change type of addr and left to store_offset_t.
|
|
* store.h (struct store_class): Fix typo in comment.
|
|
* store.h (struct store_class): Add const to type of `name' member.
|
|
* bunzip2.c: New file.
* store.h (store_bunzip2_create): New declarations.
(store_bunzip2_open): Likewise.
(store_bunzip2_class): Likewise.
* std.c (store_std_classes): Add store_bunzip2_class.
* Makefile (SRCS): Add bunzip2.c.
(UNZIP_OBJS): Add do-bunzip2.o.
|
|
* store.h: Remove defns of STORAGE_*, now in <hurd/hurd_types.h>.
|
|
New declaration.
(store_mvol_class):
New declaration.
|
|
Declaration removed.
|
|
Add map field.
(store_map):
New declaration.
|
|
|
|
Renamed from _make_store.
Return an error_t code, and add an additional argument STORE to return the
new store; all uses changed.
(store_zero_create):
SIZE is off_t, not size_t.
(store_concat_open, store_children_name, store_open_children):
New declarations.
(store_copy_create, store_copy_open, store_buffer_create, store_gunzip_create,
store_gunzip_open):
New declarations.
(struct store):
BLOCKS & SIZE are off_t, not size_t.
(store_copy_class, store_gunzip_class, store_typed_open_class):
New declarations.
Update FSF address.
|
|
New declaration.
(store_task_create, _store_task_create, store_open):
New declarations.
|
|
* store.h: Add extern inline protection.
* store.c: New file.
* Makefile (SRCS): Add store.c.
|
|
New decls.
|
|
New macros.
(store_is_securely_returnable):
New function.
<fcntl.h>:
New include.
|
|
Make CLASS arg const.
(_store_add_std_class):
Declaration removed.
(STORE_STD_CLASS):
Macro removed.
(struct store_argp_params):
New type.
(store_open):
Make NAME const.
(struct store_class):
Add OPEN and PARSE fields.
(struct store):
Make CLASS field const.
(store_parsed_open):
Remove CLASSES argument.
(struct store_class, struct store_argp_params, store_create, store_open,
store_decode, store_decode_children):
Change CLASSES args to be a pointer to a vector of class pointers.
|
|
(store_remap_create): New declaration.
(struct store_class): Add remap field.
(store_remap): New declaration.
(store_enc_return, store_return): New declarations.
(store_zero_create): Renamed from store_null_create.
(STORAGE_REMAP, STORAGE_ZERO):
New macros (temporary, to avoid touching hurd/hurd_types.h).
(store_write_meth_t, store_read_meth_t, store_read, store_write):
Make type of buffer void *, not char *.
|
|
(STORE_NO_FILEIO): New macro.
(STORE_HARD_READONLY, STORE_ENFORCED): Values changed.
(STORE_GENERIC_FLAGS): Add STORE_NO_FILEIO.
(struct store_argp_params): Type removed.
(store_parsed_Free, store_parsed_open, store_parsed_append_args):
New declarations.
(struct store_parsed): New incomplete type.
(store_open): New declaration.
|
|
|
|
(STORE_IMMUTABLE_FLAGS, STORE_GENERIC_FLAGS, STORE_BACKEND_SPEC_BASE,
STORE_BACKEND_FLAGS, STORE_READONLY, STORE_HARD_READONLY, STORE_ENFORCED):
New macros.
(struct store_class):
Renamed from store_meths; all uses changed.
Add ID, NAME, DECODE, SET_FLAGS, CLEAR_FLAGS, and NEXT fields.
(store_std_leaf_decode): Renamed from store_default_leaf_decode.
(store_std_leaf_create_t): New type.
(_STORE_STD_CLASS): New macro.
(struct store_argp_params): READONLY field deleted, FLAGS field added.
(store_allocate_child_encodings, store_encode_children, store_decode_children,
store_set_flags, store_clear_flags, store_file_open, store_device_open,
store_null_create, store_std_classes, _store_add_std_class,
store_allocate_child_encodings, store_encode_children,
store_decode_children): New declarations
(store_decode, store_create, store_device_create, _store_device_create,
store_file_create, _store_file_create, store_ileave_create,
store_concat_create, _make_store): Declarations updated.
|
|
(struct store_argp_params): New type.
|
|
(struct store): RUNS is a vector of runs, not offsets.
(_store_device_create, _store_file_create, _make_store,
store_set_runs, store_default_leaf_decode): Update declaration.
(store_set_children): New declaration.
|
|
Add CHILDREN & NUM_CHILDREN fields.
Rename RUNS_LEN to NUM_RUNS (all uses changed).
|
|
<hurd/hurd_types.h>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|