diff options
author | Miles Bader <miles@gnu.org> | 1995-05-12 22:38:45 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-12 22:38:45 +0000 |
commit | 461235237c2ed9f07da642edfe0ef6cff21891a5 (patch) | |
tree | 96e42c108b0cd6d937c49a3cf36d0784f877cf52 /libdiskfs/diskfs.h | |
parent | fb6d48a6b26458fd2dac058999dd25a71b0e7e2a (diff) |
Add declarations of diskfs_set_sync_interval and diskfs_default_sync_interval.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 866083f0..9c4e2bbf 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -235,6 +235,11 @@ int diskfs_shortcut_fifo; filesystem format supports shortcutting ifsock translation. */ int diskfs_shortcut_ifsock; +/* The user may define this variable, otherwise it has a default value of 30. + diskfs_set_sync_interval is called with this value when the first diskfs + thread is started up (in diskfs_spawn_first_threa). */ +extern int diskfs_default_sync_interval; + /* The user must define this function. Set *STATFSBUF with appropriate values to reflect the current state of the filesystem. */ error_t diskfs_set_statfs (fsys_statfsbuf_t *statfsbuf); @@ -902,6 +907,13 @@ error_t diskfs_execboot_fsys_startup (mach_port_t port, mach_port_t ctl, mach_port_t *real, mach_msg_type_name_t *realpoly); +/* Establish a thread to sync the filesystem every INTERVAL seconds, or + never, if INTERVAL is zero. If an error occurs creating the thread, it is + returned, otherwise 0. Subsequent calls will create a new thread and + (eventually) get rid of the old one; the old thread won't do any more + syncs, regardless. */ +error_t diskfs_set_sync_interval (int interval); + /* The ports library requires the following to be defined; the diskfs library provides a definition. See <hurd/ports.h> for the interface description. The library assumes you use the pager |