Age | Commit message (Collapse) | Author |
|
(ufs_clean): New variable.
(get_hypermetadata): Set it from the fs_clean flag.
If not clean, complain and force read-only.
Complain when ignoring COMPAT_BSD42.
(diskfs_set_hypermetadata): Set the clean flag in the superblock when CLEAN
and fs was clean to start with.
(copy_sblock): Remove bogus clean flag frobnication.
|
|
|
|
|
|
|
|
Handle errors from ports_inhibit_class_rpcs.
Allow rpcs to resume if we're going to return EBUSY.
|
|
|
|
Include <hurd/diskfs-pager.h> instead.
(sync_disk_blocks): Use `disk_pager' in place of `diskpager->p'.
|
|
of `diskpager->p'.
(create_disk_pager): Rewritten using disk_pager_setup.
|
|
|
|
|
|
|
|
inside assert, bonehead! Use assert_perror on a variable of its result.
|
|
|
|
synchronously just like we do when it goes in the indirect array.
|
|
|
|
(_CWD): Use this variable to pass down the current directory to sub MAKEDEVS.
(console): Use the new term syntax.
(tty[0-9]?|tty[0-9a-f]): New rule for normal ttys.
([pt]ty[pqPQ]?): New rule for ptys (both master and slave).
([pt]ty[pqPQ]): New rule for making sets of ptys.
|
|
be ignored by drop_dirstat.
|
|
trivfs_S_file_syncfs, trivfs_S_file_get_storage_info): Add totally
gratuitous, annoying, and trouble-making reply-port args.
(trivfs_S_file_get_storage_info): Use inline return if possible.
|
|
(dirscanblock): If DS->type is COMPRESS, still look for TAKE/SHRINK
possibilities. Also, if it's COMPRESS, still look to see if the
current block can be compressed with fewer byte copies.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>.
|
|
|
|
|
|
(iget): Move allocsize setting into read_disknode.
|
|
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.
|
|
(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.
|
|
(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.
|
|
(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.
|
|
|
|
(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.
|
|
should be almost all ufs-specific now.
(USAGE, usage, SHORT_OPTS, long_opts, parse_opt, trans_parse_arg): RIP.
(printf_lock): Initialize.
(diskfs_init_completed): Function deleted (now in libdiskfs).
(thread_cancel): Function deleted.
|
|
|
|
|
|
Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync.
|
|
Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync.
(pager_report_extent): Calculate the pager size.
|
|
Use diskfs_device_{read,write}_synce instead of dev_{read,write}_sync.
|