summaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.c
AgeCommit message (Collapse)Author
2002-06-022002-05-29 Roland McGrath <roland@frob.com>Roland McGrath
* dir.c (dirscanblock): Use %z format. (diskfs_get_directs): Likewise. * ext2fs.c (main): Likewise. * hyper.c (get_hypermetadata): Likewise. * pager.c (pager_unlock_page): Likewise. 2002-05-28 Roland McGrath <roland@frob.com> * ext2fs.c (diskfs_append_args): unsigned -> size_t * dir.c (count_dirents): int -> size_t (diskfs_get_directs): u_int -> size_t
2002-05-112001-11-20 Neal H Walfield <neal@cs.uml.edu>Marcus Brinkmann
(diskfs_synchronous): Removing superfuous zero initializer. (store): Likewise. (store_parsed): Likewise. (diskfs_disk_name): Likewise. (ext2_debug_flag): Likewise.
2001-01-08doc/Marcus Brinkmann
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-131999-10-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.c (diskfs_name_max): New variable.
1999-10-031999-10-03 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* 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-231999-05-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.c (main): Include store size in panic msg when it's too small.
1999-01-241999-01-23 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.c (main): Use diskfs_init_main.
1998-12-271998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.c (main): Pass ARGP_IN_ORDER flag to argp_parse because diskfs options need it.
1998-09-041998-09-04 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* ext2fs.c (main): Fix return type to int.
1997-06-30Mon Jun 30 17:34:27 1997 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* ext2fs.c (diskfs_readonly): Delete variable definition. (main): If the store cannot be made writable, then set diskfs_hard_readonly and diskfs_readonly.
1997-06-19(main):Miles Bader
Get rid of device-block-size-is-power-of-2 check.
1996-10-24(startup_children, runtime_children):Miles Bader
New variables. (startup_parents, runtime_parents): Variables removed. (startup_argp, runtime_argp): Use new *_CHILDREN variables instead of corresponding *_PARENT ones.
1996-09-23(parse_opt):Miles Bader
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.
1996-09-06*** empty log message ***Thomas Bushnell
1996-08-29(get_page_buf): Return 0 if we can't allocate.Miles Bader
1996-08-15(diskfs_edit_version): Change to `1'.Miles Bader
(diskfs_version_extra): New variable.
1996-08-15(diskfs_minor_version): Change to `2'.Miles Bader
1996-08-12(diskfs_minor_version): Changed to `1'.Miles Bader
1996-08-02[EXT2FS_DEBUG]Miles Bader
(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.
1996-06-21Put & before DISKFS_STD_DEVICE_STARTUP_ARGP.Miles Bader
1996-06-21(main): Rename diskfs_device_startup_argp to diskfs_std_device_startup_argp.Miles Bader
1996-04-11Replace references to iget with diskfs_cached_lookup.Miles Bader
1996-03-29(main): Pass new argument to argp_parse.Miles Bader
1996-02-17(main): Check error return from diskfs_init_diskfs.Miles Bader
1996-02-03Include string.h for strerror decl.Roland McGrath
1996-02-03Tue Jan 30 22:25:19 1996 Miles Bader <miles@gnu.ai.mit.edu>Miles Bader
* 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.
1996-01-06(main): Don't map in disk image here; create_disk_pager now does it.Roland McGrath
1995-11-06(main): Add FLAGS arg to diskfs_startup_diskfs call.Miles Bader
1995-10-21(main):Miles Bader
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).
1995-09-03(thread_cancel): Removed.Miles Bader
1995-06-24(main): Have the initial thread die when it's done, leaving other thread toMiles Bader
do the work. (thread_cancel): Dummy function.
1995-05-20Use options_parse & diskfs_standard_startup_options to do command lineMiles Bader
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.
1995-05-19Add the --writable & --nosync options.Miles Bader
1995-05-12Add an optional argument to the --sync option that lets the user specify anMiles Bader
initial sync interval.
1995-05-12(ext2_error, ext2_warning, ext2_panic): Rename to add the underline prefixMiles Bader
(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.
1995-05-11(main): Enable the bootstrap code.Miles Bader
1995-05-09entered into RCSMiles Bader
1995-05-08Formerly ext2fs.c.~19~Miles Bader
1995-04-25Formerly ext2fs.c.~17~Miles Bader
1995-04-23Formerly ext2fs.c.~16~Miles Bader
1995-04-20Formerly ext2fs.c.~15~Miles Bader
1995-04-18Formerly ext2fs.c.~14~Miles Bader
1995-04-17Formerly ext2fs.c.~13~Miles Bader
1995-04-17Formerly ext2fs.c.~12~Miles Bader
1995-04-16Formerly ext2fs.c.~11~Miles Bader
1995-04-16Formerly ext2fs.c.~10~Miles Bader
1995-04-16Formerly ext2fs.c.~9~Miles Bader
1995-04-16Formerly ext2fs.c.~8~Miles Bader
1995-04-16Formerly ext2fs.c.~7~Miles Bader
1995-04-16Formerly ext2fs.c.~6~Miles Bader