summaryrefslogtreecommitdiff
path: root/utils/umount.c
diff options
context:
space:
mode:
authorGabriele Giacone <1o5g4r8o@gmail.com>2014-10-03 14:58:35 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-10-04 10:17:58 +0200
commitab8d8784cd73d5fe8ede7a95a3df36d068a6145c (patch)
treec5f2511c356220e54a7a920d467f7c77a65f0633 /utils/umount.c
parent4f29d810cad03047c19e5de3c342c90df7193c8b (diff)
utils/umount: clean up
According to f2640263468aced5c91ac5fc1f15bb5691f7eb20, passive translators are no longer removed. * utils/umount.c (do_umount) Remove -p option from verbose message. (passive_flags): Remove.
Diffstat (limited to 'utils/umount.c')
-rw-r--r--utils/umount.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/umount.c b/utils/umount.c
index 7901da60..cf6be220 100644
--- a/utils/umount.c
+++ b/utils/umount.c
@@ -40,7 +40,6 @@ static char *targets;
static size_t targets_len;
static int readonly;
static int verbose;
-static int passive_flags;
static int active_flags = FS_TRANS_SET;
static int goaway_flags;
static int source_goaway;
@@ -200,7 +199,7 @@ do_umount (struct fs *fs)
}
if (verbose)
- printf ("settrans -apg%s%s %s\n",
+ printf ("settrans -ag%s%s %s\n",
goaway_flags & FSYS_GOAWAY_NOSYNC? "S": "",
goaway_flags & FSYS_GOAWAY_FORCE? "f": "",
fs->mntent.mnt_dir);
@@ -208,7 +207,7 @@ do_umount (struct fs *fs)
if (! fake)
{
err = file_set_translator (node,
- passive_flags, active_flags, goaway_flags,
+ 0, active_flags, goaway_flags,
NULL, 0,
MACH_PORT_NULL, MACH_MSG_TYPE_COPY_SEND);
if (! err)