summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
1995-10-24Undo last change of 9Oct95.Roland McGrath
1995-10-24(ports_manage_port_operations_multithread/internal_demuxer): Don'tMichael I. Bushnell
attempt RPC if we can't get a valid port struct.
1995-10-24(ports_manage_port_operations_one_thread/internal_demuxer): Don'tMichael I. Bushnell
attempt RPC if we can't get a valid port struct.
1995-10-21Formerly rdwr.c.~4~Miles Bader
1995-10-21(parse_enum): Use argp_error.Miles Bader
1995-10-21(targets): Add storeinfo.Miles Bader
(SRCS): Add storeinfo.c. (storeinfo): New target.
1995-10-21Initial revisionMiles Bader
1995-10-21(options): FILE --> FILESYS in help msg.Miles Bader
(args_doc): OPTION --> FS_OPTION, since the usage message already uses OPTION to mean those to fsysopts. (doc): New variable; give some common choices for FS_OPTION.
1995-10-21(args_doc): New variable.Miles Bader
(main): Set ARGZ inside of parse_opt.
1995-10-21(diskfs_max_user_pager_prot): Return what we discovered, instead of 1.Miles Bader
1995-10-21(diskfs_node_reload): New function.Miles Bader
(iget, read_disknode): Code to set allocsize and the last_* fields moved from iget to read_disknode. (read_disknode): Add DN and OFFSET variables. Use log2_block_size to mask instead of doing a modulo with block_size. (diskfs_node_norefs, iget): Use pager field, not fileinfo. (iget): Use DISK_PAGER directly, not ->p. (diskfs_lost_hardrefs): #ifdef'd out contents removed.
1995-10-21(create_disk_pager, diskfs_get_filemap, pager_clear_user_data):Miles Bader
Don't use the p field in a upi. (diskfs_get_filemap): Update/initialize the max_prot field. Add the prot arg. (drop_pager_softrefs): Declare PAGER, not UPI. (enable_caching): The disk node is upi->node, not upi->np. (diskfs_get_filemap_pager_struct, flush_node_pager, diskfs_file_update, pager_clear_user_data, drop_pager_softrefs): Use pager field, not fileinfo. (flush_node_pager): New function. (create_disk_pager): Store the actual pager into DISK_PAGER. (diskfs_shutdown_pager, diskfs_sync_everything): Use DISK_PAGER directly, not ->p.
1995-10-21(_pokel_exec, pokel_flush): New functions.Miles Bader
(pokel_sync): Use _pokel_exec to do the work.
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-10-20Initial revisionMiles Bader
1995-10-20(SRCS): Remove devio.c, add msg.c and storeinfo.c.Miles Bader
1995-10-20(dev_read_sync, dev_write_sync):Miles Bader
Offset the address to which we're doing i/o with DEVICE_START.
1995-10-20(enable_delayed_copies, force_delayed_copies):Miles Bader
Replace fileinfo field with pager. (force_delayed_copies): Give diskfs_get_filemap a protection arg.
1995-10-20(allocate_mod_map): New function (from get_hypermetadata).Miles Bader
(zeroblock, modified_global_blocks): Define (were common). (diskfs_readonly_changed): New function. (get_hypermetadata): Deallocate ZEROBLOCK if necessary. Use allocate_mod_map to allocate MODIFIED_GLOBAL_BLOCKS. Use diskfs device functions & variables instead of our own.
1995-10-20(diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.Miles Bader
1995-10-20(struct user_pager_info): Add max_prot field, remove p.Miles Bader
(struct disknode): Replace fileinfo field with pager. (pokel_flush, flush_node_pager): New declarations. (disk_pager): Type changed to struct pager. (sync_global_ptr): Use DISK_PAGER, not DISK_PAGER->p. (device_arg, device_name, device_port, device_start, device_size, device_block_size): Declarations removed. (MS_RDONLY, MS_NOSUID, MS_NODEV, MS_NOEXEC, MS_SYNCHRONOUS, MS_REMOUNT, S_APPEND, S_IMMUTABLE, IS_APPEND, IS_IMMUTABLE): Macros deleted.
1995-10-20Formerly main.c.~6~Michael I. Bushnell
1995-10-20(argp_error): New function.Miles Bader
1995-10-20(argp_usage, argp_error): New declarations.Miles Bader
(argp_usage): New inline function.
1995-10-19(main):Miles Bader
Exit with a non-zero status if we fixed anything. Use argp to parse options. (options): Converted to argp format. (args_doc): New variable. (USAGE, usage, SHORT_OPTIONS): Removed. Include <argp.h> instead of <getopt.h>.
1995-10-19($(target)): Depend on libshouldbeinlibc.a.Miles Bader
1995-10-19Formerly ethernet.c.~10~Michael I. Bushnell
1995-10-19(flush_pokes): New function.Miles Bader
1995-10-19entered into RCSMichael I. Bushnell
1995-10-19(diskfs_node_reload): New function.Miles Bader
(iget): Move allocsize setting into read_disknode.
1995-10-19(main):Miles Bader
Always include VM_PROT_WRITE in max prot. Move stuff into get_hypermetadata. Writable init code moved to diskfs_readonly_changed. (diskfs_reload_global_state): New function.
1995-10-19(struct user_pager_info): Add max_prot field.Miles Bader
(struct rwlock): Structure deleted. (rwlock_init, rwlock_reader_unlock, rwlock_reader_lock, rwlock_writer_lock, rwlock_writer_unlock): Functions deleted. (zeroblock, sblock, csum): Declare extern. (flush_node_pager, flush_pokes): New declarations.
1995-10-19(diskfs_get_filemap): Add PROT parameter, & use it.Miles Bader
(diskfs_pager_users): Split out block_caching & enable_caching. (block_caching, enable_caching, diskfs_max_user_pager_prot): New functions. (flush_node_pager): New function.
1995-10-19(diskfs_readonly_changed): New function.Miles Bader
(get_hypermetadata): Move compat_mode futzing & disk size validation here from main. Only allocate SBLOCK if not already done. Deallocate any old ZEROBLOCK and CSUM storage. (zeroblock, sblock, csum): Define (were common). (diskfs_readonly_changed): New function.
1995-10-19(diskfs_lookup, diskfs_dirempty): Give diskfs_get_filemap a protection arg.Miles Bader
1995-10-19(periodic_sync): Hold DISKFS_FSYS_LOCK for reading while syncing.Miles Bader
1995-10-19(diskfs_S_fsys_getroot): Hold DISKFS_FSYS_LOCK for reading.Miles Bader
1995-10-19(diskfs_S_io_map): Pass the appropiate vm protection to diskfs_get_filemap.Miles Bader
If this node isn't O_RDWR, only return the appropiate memobj. Include <fcntl.h>.
1995-10-19(diskfs_execboot_fsys_startup):Miles Bader
Open exec's realnode read-only for now, since we know it doesn't matter and having gratuitously writable nodes around prevents us from starting up or going read-only. (diskfs_S_fsys_init): Don't make the cwdir/crdir right with O_WRITE.
1995-10-19(_diskfs_translator_callback_fn):Miles Bader
Open the new translator's realnode read-only for now, since we know it doesn't matter and gratuitously writable nodes prevent us from starting up or going read-only. The fsys_startup interface should change very soon and make this irrelevant anyway.
1995-10-19(diskfs_startup_diskfs):Miles Bader
Call diskfs_readonly_changed if we're starting up writable.
1995-10-19(diskfs_common_options): New declaration.Miles Bader
1995-10-19(diskfs_S_fsys_set_options):Miles Bader
Hold DISKFS_FSYS_LOCK for writing while setting our own options, and for reading while setting our children's. Dereference PT even when a child filesystem returns an error.
1995-10-19(periodic_sync): Hold DISKFS_FSYS_LOCK for reading while syncing.Miles Bader
1995-10-19(diskfs_fsys_lock): Now a rwlock.Miles Bader
(diskfs_shutdown): Lock DISKFS_FSYS_LOCK for writing.
1995-10-19(startup_options): Remove options common to both runtime and startup.Miles Bader
(startup_common_argp, startup_argp_parents): New variables. (startup_argp): Include parents.
1995-10-19(_diskfs_rdwr_internal):Miles Bader
Pass the second protection arg to diskfs_get_filemap. Only map our i/o region with as much permission as we need.
1995-10-19(diskfs_set_options):Miles Bader
Rework readonly transition & remounting. Now they should actually work. (std_runtime_options): Remove options common to both runtime and startup. (diskfs_set_options): Use the common options.
1995-10-19Initial revisionMiles Bader
1995-10-19Initial revisionMiles Bader