From owner-freebsd-questions@freebsd.org Tue May 21 15:29:12 2019 Return-Path: Delivered-To: freebsd-questions@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 1176F15B0627 for ; Tue, 21 May 2019 15:29:12 +0000 (UTC) (envelope-from igorr@pochta-mx.canmos.ru) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 90F9F6B10D for ; Tue, 21 May 2019 15:29:09 +0000 (UTC) (envelope-from igorr@pochta-mx.canmos.ru) Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) by pochta-mx.canmos.ru (Postfix) with ESMTP id 309612DBC0BB; Tue, 21 May 2019 18:33:21 +0300 (MSK) X-Spam-Checker-Version: SpamAssassin 3.3.2-pochta_20190408 (2011-06-06) on pochta.canmos.ru X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2-pochta_20190408 X-Spam-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from pochta-mx.canmos.ru (pochta-mx.canmos.ru [89.107.127.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by pochta-mx.canmos.ru (Postfix) with ESMTPS; Tue, 21 May 2019 18:33:21 +0300 (MSK) Date: Tue, 21 May 2019 18:33:21 +0300 (MSK) From: "Igor V. Ruzanov" X-X-Sender: igorr@pochta.canmos.ru To: Igor Konev cc: freebsd-questions@freebsd.org Subject: Re: Question about mount_fusefs In-Reply-To: <20190521150620.2239659e@eeepc> Message-ID: References: <20190521120928.27f9ddbf@eeepc> <20190521150620.2239659e@eeepc> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-GPG-PUBLIC-KEY: 1024D/F433BDD5 2009-06-17 Igor V. Ruzanov X-GPG-FINGERPRINT: 5030 C793 4238 FAFF 827F 0E99 FDCE 63DD F433 BDD5 MIME-Version: 1.0 X-Rspamd-Queue-Id: 90F9F6B10D X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dmarc=fail reason="" header.from=canmos.ru (policy=none) X-Spamd-Result: default: False [-1.35 / 15.00]; TO_DN_SOME(0.00)[]; MX_GOOD(-0.01)[cached: pochta-mx.canmos.ru]; CTYPE_MIXED_BOGUS(1.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.47)[-0.470,0]; FREEMAIL_TO(0.00)[mail.ru]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; ASN(0.00)[asn:39821, ipnet:89.107.120.0/21, country:RU]; IP_SCORE(0.00)[country: RU(0.01)]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.972,0]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DMARC_POLICY_SOFTFAIL(0.10)[canmos.ru : No valid SPF, No valid DKIM,none] Content-Type: TEXT/PLAIN; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 May 2019 15:29:12 -0000 On Tue, 21 May 2019, Igor Konev wrote: |В Tue, 21 May 2019 15:32:29 +0300 (MSK) |"Igor V. Ruzanov" пишет: | |> On Tue, 21 May 2019, Igor Konev via freebsd-questions wrote: |> |> |Hi, I use fusefs to mount ntfs fs. |> |And I have a question about the command line options for |> mount_fusefs. | |> |What does key -s mean? What is he doing? I tried to use it but |> without |success. |> | |> From MOUNT_FUSEFS(8) : |> |> Finally, if special is an integer it will be interpreted as the |> number of the file descriptor of an already open fuse device (used |> when the Fuse |> library invokes mount_fusefs. (See DAEMON MOUNTS). |> |> |> |> I guess the key is ised in conjunction of another software doing any |> jobs over opened fuse device files. |> |> |From MOUNT_FUSEFS(8) : |> | |> |MOUNT_FUSEFS(8) |> | |> |SYNOPSIS |> | mount_fusefs [-A] [-S] [-v] [-D fuse_daemon] [-O daemon_opts] |> | [-s special] [-m node] [-h] [-V] [-o option ...] |> | special node [fuse_daemon ...] |> | |> | |> | -s, --special special |> | Use special as special |> | |> |So for my case, I can run the mount_fusefs command in two ways: |> |- mount_fusefs special node [fuse_daemon ...] |> |- mount_fusefs -s special node [fuse_daemon] |> | |> |1) |> | |> |$ mount_fusefs /dev/fuse ~/mnt0 ntfs-3g /dev/da0s1 ~/mnt0 |> |$ echo $? |> |0 |> | |> |$ mount |> |/dev/ada0p4 on / (ufs, local, soft-updates) |> |devfs on /dev (devfs, local, multilabel) |> |... |> |/dev/fuse on /usr/home/user1/mnt0 (fusefs, local, nosuid, |> synchronous, |mounted by user1) |> | |> |2) |> | |> |$ mount_fusefs -s /dev/fuse ~/mnt0 ntfs-3g /dev/da0s1 ~/mnt0 |> |mount_fusefs: special specified inconsistently |> |$ echo $? |> |1 |> | |> |Ivan Konev |> |_______________________________________________ |> |freebsd-questions@freebsd.org mailing list |> |https://lists.freebsd.org/mailman/listinfo/freebsd-questions |> |To unsubscribe, send any mail to |> "freebsd-questions-unsubscribe@freebsd.org" | |> _______________________________________________ |> freebsd-questions@freebsd.org mailing list |> https://lists.freebsd.org/mailman/listinfo/freebsd-questions |> To unsubscribe, send any mail to |> "freebsd-questions-unsubscribe@freebsd.org" | |Igor, thank you for your reply. |I also tried to use the file descriptor number as an argument for the |–s. | |$ ls -ali /dev/fuse |57 crw-rw-rw- 1 root operator 0x39 21 мая 11:40 /dev/fuse | |$ mount_fusefs -s 57 ~/mnt0 ntfs-3g /dev/da0s1 ~/mnt0 |mount_fusefs: special specified inconsistently | 57 here is not file descriptor number. Its i-node number (see man ls). FD (file descriptor) might be some number that we got as result of success call of some function, for ex. when we tried to open some fuse device for mounting purposes. And provide this FD to: mount_fusefs -s |$ echo $? |1 |$ | |My question is why "mount_fusefs /dev/fuse ..." works and "mount_fusefs |-s /dev/fuse ..." and "mount_fusefs -s 57" do not work. | |Ivan Konev |