aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.c
Commit message (Collapse)AuthorAgeFilesLines
* doc/Marcus Brinkmann2001-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* 1999-10-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-131-0/+1
| | | | * ext2fs.c (diskfs_name_max): New variable.
* 1999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-10-031-10/+38
| | | | | | | | | | | | | | * ext2fs.h (sblock_block): Declare new variable. (SBLOCK_LBLOCK): Macro removed. (SBLOCK_OFFS): Define in terms of sblock_block. * ext2fs.c (options): Add --sblock/-S. (parse_opt): Parse it to set sblock_block. * hyper.c (sblock_block): New variable. (get_hypermetadata): Use sblock_block instead of constant SBLOCK_BLOCK. * ext2fs.c (options): List --debug/-D unconditionally, adding to help text #ifndef EXT2FS_DEBUG (parse_opt): Always grok -D. #ifndef EXT2FS_DEBUG, reject it with message saying debugging support not compiled in.
* 1999-05-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-231-2/+2
| | | | * ext2fs.c (main): Include store size in panic msg when it's too small.
* 1999-01-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-01-241-35/+5
| | | | * ext2fs.c (main): Use diskfs_init_main.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-1/+2
| | | | | * ext2fs.c (main): Pass ARGP_IN_ORDER flag to argp_parse because diskfs options need it.
* 1998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-09-041-2/+4
| | | | * ext2fs.c (main): Fix return type to int.
* Mon Jun 30 17:34:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1997-06-301-1/+3
| | | | | | * ext2fs.c (diskfs_readonly): Delete variable definition. (main): If the store cannot be made writable, then set diskfs_hard_readonly and diskfs_readonly.
* (main):Miles Bader1997-06-191-4/+1
| | | | Get rid of device-block-size-is-power-of-2 check.
* (startup_children, runtime_children):Miles Bader1996-10-241-4/+6
| | | | | | | | New variables. (startup_parents, runtime_parents): Variables removed. (startup_argp, runtime_argp): Use new *_CHILDREN variables instead of corresponding *_PARENT ones.
* (parse_opt):Miles Bader1996-09-231-75/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Propagate our input to the first child argp. (diskfs_disk_name): Renamed from STORE_NAME. (diskfs_append_args): Renamed from diskfs_get_options. Don't initialize *ARGZ & *ARGZ_LEN anymore, or deallocate on errors. Append store args too. (startup_parents, startup_argp, runtime_parents, runtime_argp, options, parse_opt, diskfs_get_options): Define always, not just when EXT2FS_DEBUG is defined. (free_page_bufs, free_page_bufs_lock): Variables removed. (store, store_parsed, store_name): New variables. (diskfs_extra_version): Put `GNU Hurd' in here. (main, diskfs_reload_global_state): Use DISKFS_DISK_PAGER instead of DISK_PAGER. (startup_parents): Use diskfs_store_startup_argp instead of diskfs_std_device_startup_argp. (main): Remove CLASSES argument to store_parsed_open. Use STORE_PARAMS variable to get result from parsing STORE_ARGP. Change store_parsed_get_name to store_parsed_name. Use store fields instead of diskfs variables. (parse_opt, diskfs_get_options): Guard debug-specific bits with #ifdef EXT2FS_DEBUG. (get_page_buf, free_page_buf): Functions removed. <argp.h>, <hurd/store.h>: New includes.
* *** empty log message ***Thomas Bushnell1996-09-061-3/+2
|
* (get_page_buf): Return 0 if we can't allocate.Miles Bader1996-08-291-1/+4
|
* (diskfs_edit_version): Change to `1'.Miles Bader1996-08-151-1/+2
| | | | (diskfs_version_extra): New variable.
* (diskfs_minor_version): Change to `2'.Miles Bader1996-08-151-1/+1
|
* (diskfs_minor_version): Changed to `1'.Miles Bader1996-08-121-1/+1
|
* [EXT2FS_DEBUG]Miles Bader1996-08-021-1/+77
| | | | | | | | | (options, ext2_debug_flag): New variables. (parse_opt, diskfs_get_options): New functions. (startup_parents, startup_argp, runtime_parents, diskfs_runtime_argp): New variables. [!EXT2FS_DEBUG] (startup_argp): New macro. (main): Use STARTUP_ARGP instead of DISKFS_STD_DEVICE_STARTUP_ARGP.
* Put & before DISKFS_STD_DEVICE_STARTUP_ARGP.Miles Bader1996-06-211-1/+1
|
* (main): Rename diskfs_device_startup_argp to diskfs_std_device_startup_argp.Miles Bader1996-06-211-1/+1
|
* Replace references to iget with diskfs_cached_lookup.Miles Bader1996-04-111-1/+1
|
* (main): Pass new argument to argp_parse.Miles Bader1996-03-291-1/+1
|
* (main): Check error return from diskfs_init_diskfs.Miles Bader1996-02-171-1/+3
|
* Include string.h for strerror decl.Roland McGrath1996-02-031-1/+2
|
* Tue Jan 30 22:25:19 1996 Miles Bader <miles@gnu.ai.mit.edu>Miles Bader1996-02-031-19/+8
| | | | | | | | | * hyper.c (get_hypermetadata): Don't return any error value, just panic if we can't read the superblock. * ext2fs.c (main): Move warp_inode() inline. Make sure root inode is really there. Don't check return value from get_hypermetadata. (warp_inode): Function removed. * ext2fs.h (get_hypermetadata): Returns void now.
* (main): Don't map in disk image here; create_disk_pager now does it.Roland McGrath1996-01-061-16/+3
|
* (main): Add FLAGS arg to diskfs_startup_diskfs call.Miles Bader1995-11-061-1/+1
|
* (main):Miles Bader1995-10-211-222/+32
| | | | | | | | | | | | Always include VM_PROT_WRITE in max prot. Use DISK_PAGER directly, not ->p. Use diskfs routines to open the device. Support both file and mach devices. Move the parse function here. Use argp for parsing. (usage, USAGE, SHORT_OPTS, long_opts, console_stdio): Removed (parse_opt): Move into main (as a nested function). (printf, _ext2_error, _ext2_panic, _ext2_warning): Functions moved to msg.c (diskfs_init_completed): Func deleted (now in libdiskfs).
* (thread_cancel): Removed.Miles Bader1995-09-031-6/+0
|
* (main): Have the initial thread die when it's done, leaving other thread toMiles Bader1995-06-241-2/+7
| | | | | do the work. (thread_cancel): Dummy function.
* Use options_parse & diskfs_standard_startup_options to do command lineMiles Bader1995-05-201-38/+21
| | | | | | | | options parsing. Rename `options' to `long_opts'. Most things removed, as they're now handled by libdiskfs. Add parse_opt to deal with our few meagre remaining options in the approved options_parse manner.
* Add the --writable & --nosync options.Miles Bader1995-05-191-3/+13
|
* Add an optional argument to the --sync option that lets the user specify anMiles Bader1995-05-121-6/+9
| | | | initial sync interval.
* (ext2_error, ext2_warning, ext2_panic): Rename to add the underline prefixMiles Bader1995-05-121-11/+16
| | | | | (the previous names are now macros that call the renamed functions). Also rearrange a bit to hold the lock around the use of the global message buffer.
* (main): Enable the bootstrap code.Miles Bader1995-05-111-4/+5
|
* entered into RCSMiles Bader1995-05-091-1/+1
|
* Formerly ext2fs.c.~19~Miles Bader1995-05-081-2/+5
|
* Formerly ext2fs.c.~17~Miles Bader1995-04-251-1/+1
|
* Formerly ext2fs.c.~16~Miles Bader1995-04-231-2/+2
|
* Formerly ext2fs.c.~15~Miles Bader1995-04-201-0/+6
|
* Formerly ext2fs.c.~14~Miles Bader1995-04-181-8/+52
|
* Formerly ext2fs.c.~13~Miles Bader1995-04-171-1/+1
|
* Formerly ext2fs.c.~12~Miles Bader1995-04-171-7/+28
|
* Formerly ext2fs.c.~11~Miles Bader1995-04-161-4/+2
|
* Formerly ext2fs.c.~10~Miles Bader1995-04-161-4/+4
|
* Formerly ext2fs.c.~9~Miles Bader1995-04-161-2/+2
|
* Formerly ext2fs.c.~8~Miles Bader1995-04-161-10/+10
|
* Formerly ext2fs.c.~7~Miles Bader1995-04-161-1/+1
|
* Formerly ext2fs.c.~6~Miles Bader1995-04-161-4/+4
|
* Formerly ext2fs.c.~5~Miles Bader1995-04-161-5/+5
|
* Formerly ext2fs.c.~4~Miles Bader1995-04-151-97/+79
|