Age | Commit message (Collapse) | Author |
|
(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.
|
|
|
|
|
|
|
|
If this node isn't O_RDWR, only return the appropiate memobj.
Include <fcntl.h>.
|
|
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.
|
|
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.
|
|
Call diskfs_readonly_changed if we're starting up writable.
|
|
|
|
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.
|
|
|
|
(diskfs_shutdown): Lock DISKFS_FSYS_LOCK for writing.
|
|
(startup_common_argp, startup_argp_parents): New variables.
(startup_argp): Include parents.
|
|
Pass the second protection arg to diskfs_get_filemap.
Only map our i/o region with as much permission as we need.
|
|
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.
|
|
|
|
|
|
(diskfs_fsys_lock):
Renamed from diskfs_shutdown_lock. Change to a struct rwlock.
(diskfs_readonly_changed, diskfs_reload_global_state, diskfs_node_reload,
diskfs_max_user_pager_prot, diskfs_set_readonly, diskfs_remount):
New declarations.
(diskfs_readonly_changed): New declaration.
(disksf_get_filemap): Add prot parameter.
(diskfs_main_request_loop): Declaration removed.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
of the script before resorting to /dev/fd.
|
|
directory. Dike out totally bogus set[ug]id code. Bother to lock NP
around critical section.
|
|
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
(arg_doc, doc): New variables.
Include <argp.h> not <getopt.h>.
|
|
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
Include <argp.h> not <getopt.h>.
|
|
(main): Use argp, not getopt.
(usage, USAGE, SHORT_OPTIONS): Deleted.
(arg_doc): New variable.
Include <argp.h> not <getopt.h>.
|
|
|
|
(pfatal, pwarn, errexit): Print DEVICE_NAME too if in preen mode.
(pinode): Take a message & args to print as well.
|
|
Change declaration of pinode.
Change LFNAME to char*.
|
|
(lfname, lfmode): Variables moved to main.c.
|
|
|
|
reconnect attempt fails, don't try again.
(pass4): Use changed pinode.
(pass4): Call pfix instead of printf.
|
|
(pass3): Call pfix instead of printf.
|
|
also print error messages when we can't.
(pass2): Use changed pinode.
(pass2): Call pfix instead of printf.
|
|
(pass1): Change the extent of DBWARN & IBWARN so that they actually work.
(pass1): Call pfix instead of printf.
|
|
(searchdir, changeino): Fix backward compare.
(linkup): Don't fail when makeentry succeeds.
(searchdir): Make searchdir return zero if there's an error during the search.
(linkup): Print appropiate error messages if searchdir fails.
(validdir): Get rid of extra newlines in error messages --
everyone who calls this routine prints extra information if it
fails, which should immediately follow.
|
|
(main): Use getopt to parse command line options.
(usage): New function.
(options): New variable.
(lfname, lfmode): Variables moved here from setup.c.
(lfname): Made into a char* so that we can change it.
(lfmode): Get rid of IFDIR; it's added when necessary.
|
|
|
|
|
|
(std_*, finish): Make global.
(do_exec): Only reset CWDIR when null, even if secure.
Actually call check_hashbang and return success if it does.
Use new hurd_file_name_lookup protocol with private callbacks to open
interpreter file on behalf of client.
Remove `bootout' label; use `stdout' or `out' as appropriate instead.
At `out' label always deref BOOT, which cleans it up iff necessary.
(S_exec_exec): #if 0 out $EXECSERVERS processing for time being.
|
|
(DIST_FILES): Remove it from here.
|
|
(struct execdata): Moved here from exec.c.
(std_*): Declare these.
(finish, check_hashbang): Declare them.
|
|
|
|
|
|
|
|
|
|
|