From owner-freebsd-fs@freebsd.org Thu Feb 1 19:35:32 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 701AEEE7C9B for ; Thu, 1 Feb 2018 19:35:32 +0000 (UTC) (envelope-from mi+b@aldan.algebra.com) Received: from symbion.zaytman.com (symbion.zaytman.com [64.112.176.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "symbion", Issuer "Narawntapu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B83680645; Thu, 1 Feb 2018 19:35:31 +0000 (UTC) (envelope-from mi+b@aldan.algebra.com) Received: from narawntapu.narawntapu (pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28]) by symbion.zaytman.com (8.15.2/8.15.2) with ESMTPS id w11JZTYM067329 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 1 Feb 2018 14:35:29 -0500 (EST) (envelope-from mi+b@aldan.algebra.com) X-Authentication-Warning: symbion.zaytman.com: Host pool-108-53-87-28.nwrknj.fios.verizon.net [108.53.87.28] claimed to be narawntapu.narawntapu Received: from [127.0.0.1] (localhost [127.0.0.1]) by narawntapu.narawntapu (8.15.2/8.15.2) with ESMTP id w11JZQuN010348; Thu, 1 Feb 2018 14:35:27 -0500 (EST) (envelope-from mi+b@aldan.algebra.com) X-Authentication-Warning: narawntapu.narawntapu: Host localhost [127.0.0.1] claimed to be [127.0.0.1] Subject: fusefs and /etc/fstab To: Stefan Esser Cc: freebsd-fs@freebsd.org, brendan+freebsd@bbqsrc.net References: <8868a37f-90ad-a271-2295-bf67164fad19@aldan.algebra.com> From: "Mikhail T." Message-ID: <42ad9c4b-9017-0955-a550-521f9e2d933d@aldan.algebra.com> Date: Thu, 1 Feb 2018 14:35:26 -0500 User-Agent: Firefox MIME-Version: 1.0 In-Reply-To: Content-Language: uk X-DCC-dmv.com-Metrics: narawntapu 1095; Body=3 Fuz1=3 Fuz2=3 X-Spam-Status: No, score=-2.9 required=7.5 tests=ALL_TRUSTED,BAYES_00, HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on narawntapu.narawntapu Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.25 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Feb 2018 19:35:32 -0000 For people trying to use fstab to mount fusefs filesystem(s), there is a problem -- the daemons expecting one argument after the options (the mount-point), are confused by there being two arguments: the "special" and the mount-point. The mount_fusefs(8) recommends using "auto" for the "special" (first field of the fstab), but that breaks too: fuse: bad mount point `auto': No such file or directory I first thought, this problem is specific to smbnetfs, but the program simply uses FUSE_ARGS_INIT(argc, argv) and otherwise relies on the libfuse library to process the command-line. The trick I found to work is to put one of the mount options into the first field: -oallow_other  /smb fusefs rw,failok,uid=105,late,mountprog=/opt/bin/smbnetfs but that's just a hack, of course. Perhaps, our libfusefs ports can be modified to, upon encountering two arguments remaining after the options, to either silently ignore the first one at all times, or only ignore it, if it says "auto"? Alternatively, maybe, mount_fusefs needs to strip the "special" off before invoking the specified daemon? -mi