summaryrefslogtreecommitdiff
path: root/utils/syncfs.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-01-03 22:01:05 +0000
committerRoland McGrath <roland@gnu.org>1999-01-03 22:01:05 +0000
commit99176a3fe1d8a489fc2b40b579595095f5af66a0 (patch)
treeee8d0225f55f78fbb25381fa9817198cb2fd5b00 /utils/syncfs.c
parent659819b3278e13fb5b39a58857820006c88cbb23 (diff)
1999-01-03 Roland McGrath <roland@baalperazim.frob.com>
* syncfs.c: Replace -a/--asynchronous with -s/--synchronous. Default is now asynchronous.
Diffstat (limited to 'utils/syncfs.c')
-rw-r--r--utils/syncfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/syncfs.c b/utils/syncfs.c
index 984af3da..3434f5c6 100644
--- a/utils/syncfs.c
+++ b/utils/syncfs.c
@@ -1,5 +1,5 @@
/* syncfs -- User interface to file_syncfs, synchronize filesystems.
- Copyright (C) 1994, 95, 96, 97, 98 Free Software Foundation, Inc.
+ Copyright (C) 1994, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -24,7 +24,7 @@
const char *argp_program_version = STANDARD_HURD_VERSION (sync);
-static int synchronous = 1, do_children = 1;
+static int synchronous = 0, do_children = 1;
static void
sync_one (const char *name, file_t port)
@@ -40,7 +40,7 @@ parser (int key, char *arg, struct argp_state *state)
{
switch (key)
{
- case 'a': synchronous = 0; break;
+ case 's': synchronous = 1; break;
case 'c': do_children = 0; break;
case ARGP_KEY_NO_ARGS:
@@ -63,7 +63,7 @@ main (int argc, char *argv[])
{
static struct argp_option options[] =
{
- {"asynchronous", 'a', 0, 0, "Do not wait for completion"},
+ {"synchronous", 's', 0, 0, "Wait for completion of all disk writes"},
{"no-children", 'c', 0, 0, "Do not synchronize child filesystems"},
{0}
};