From owner-freebsd-questions@freebsd.org Tue May 21 15:06:33 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 26E9C15AFF58 for ; Tue, 21 May 2019 15:06:33 +0000 (UTC) (envelope-from ikonev84@mail.ru) Received: from smtp58.i.mail.ru (smtp58.i.mail.ru [217.69.128.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1BCD66A201 for ; Tue, 21 May 2019 15:06:31 +0000 (UTC) (envelope-from ikonev84@mail.ru) Received: by smtp58.i.mail.ru with esmtpa (envelope-from ) id 1hT6LO-0000yq-3F; Tue, 21 May 2019 18:06:22 +0300 Date: Tue, 21 May 2019 15:06:20 +0000 From: Igor Konev To: "Igor V. Ruzanov" Cc: freebsd-questions@freebsd.org Subject: Re: Question about mount_fusefs Message-ID: <20190521150620.2239659e@eeepc> In-Reply-To: References: <20190521120928.27f9ddbf@eeepc> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i386-portbld-freebsd12.0) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-77F55803: E14BCC6235C710295A78504BD2AC29418E23A805F026679407F411B7ED581EF3FC21733CFC55719D81977C864276160E X-7FA49CB5: 0D63561A33F958A5A2E556CEC3DE267850D360BEB74BDFAEA3EB0091E6DC82CD8941B15DA834481FA18204E546F3947CEDCF5861DED71B2F389733CBF5DBD5E9C8A9BA7A39EFB7666BA297DBC24807EA117882F44604297287769387670735209ECD01F8117BC8BEA471835C12D1D977C4224003CC8364767815B9869FA544D8D32BA5DBAC0009BE9E8FC8737B5C2249FABAEF6C2F5AA74A3AA81AA40904B5D9CF19DD082D7633A093541453170D46FCD81D268191BDAD3D78DA827A17800CE749AF716F719AB83EB3661434B16C20AC93541453170D46FCAAAE862A0553A39223F8577A6DFFEA7C9EBB5500AA867A5CE39612DFE27487CCEFF80C71ABB335746BA297DBC24807EA27F269C8F02392CD5806F93152DAD3C027F269C8F02392CD5571747095F342E88FB05168BE4CE3AF X-Mailru-Sender: 5A99A5FC0CCAF485F8F3E7A17784775C094D3226E9AC902C8D5DBEF5A9FCC83A24F8A6663DC34D959EA038889EBE5C8031521AB82BCFEEA213A4FB88C2AD0134BF8A34C0564CA5378BDD40542A582C04B2C1141E837E4F41B4A721A3011E896F X-Mras: OK X-Rspamd-Queue-Id: 1BCD66A201 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.31 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:217.69.128.0/20]; FREEMAIL_FROM(0.00)[mail.ru]; DKIM_TRACE(0.00)[mail.ru:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[mail.ru,reject]; MX_GOOD(-0.01)[cached: mxs.mail.ru]; NEURAL_HAM_SHORT(-0.95)[-0.954,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.84)[ipnet: 217.69.128.0/20(-4.26), asn: 47764(0.04), country: RU(0.01)]; FREEMAIL_ENVFROM(0.00)[mail.ru]; ASN(0.00)[asn:47764, ipnet:217.69.128.0/20, country:RU]; DWL_DNSWL_NONE(0.00)[mail.ru.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[mail.ru:s=mail2]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[38.128.69.217.list.dnswl.org : 127.0.5.0]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_TWO(0.00)[2] 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:06:33 -0000 =D0=92 Tue, 21 May 2019 15:32:29 +0300 (MSK) "Igor V. Ruzanov" =D0=BF=D0=B8=D1=88=D0=B5=D1= =82: > On Tue, 21 May 2019, Igor Konev via freebsd-questions wrote: >=20 > |Hi, I use fusefs to mount ntfs fs.=20 > |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) : >=20 > 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). >=20 >=20 >=20 > I guess the key is ised in conjunction of another software doing any > jobs over opened fuse device files. >=20 > |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.=20 I also tried to use the file descriptor number as an argument for the =E2=80=93s. $ ls -ali /dev/fuse 57 crw-rw-rw- 1 root operator 0x39 21 =D0=BC=D0=B0=D1=8F 11:40 /dev/fu= se $ mount_fusefs -s 57 ~/mnt0 ntfs-3g /dev/da0s1 ~/mnt0 mount_fusefs: special specified inconsistently $ echo $? 1 $=20 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