Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/lib/libzfs Pass unmount flags down to sy...



details:   https://anonhg.NetBSD.org/src/rev/f45c2cc6cd52
branches:  trunk
changeset: 995959:f45c2cc6cd52
user:      hannken <hannken%NetBSD.org@localhost>
date:      Sat Jan 12 10:44:05 2019 +0000

description:
Pass unmount flags down to syscall, "zfs unmount -f" now works.

diffstat:

 external/cddl/osnet/lib/libzfs/zmount.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (16 lines):

diff -r a81a74b683b1 -r f45c2cc6cd52 external/cddl/osnet/lib/libzfs/zmount.c
--- a/external/cddl/osnet/lib/libzfs/zmount.c   Sat Jan 12 10:43:33 2019 +0000
+++ b/external/cddl/osnet/lib/libzfs/zmount.c   Sat Jan 12 10:44:05 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: zmount.c,v 1.1 2009/08/07 20:57:56 haad Exp $  */
+/*     $NetBSD: zmount.c,v 1.2 2019/01/12 10:44:05 hannken Exp $       */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -69,5 +69,5 @@
 umount2(const char *spec, int mflag)
 {
 
-       return unmount(spec, 0);
+       return unmount(spec, mflag);
 }



Home | Main Index | Thread Index | Old Index