Bug 255213 - sysutils/fusefs-exfat: Pass "automounted" option into kernel
Summary: sysutils/fusefs-exfat: Pass "automounted" option into kernel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Oleksii Samorukov
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-04-19 08:43 UTC by Iouri V. Ivliev
Modified: 2021-11-24 20:58 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (samm)


Attachments
Patches allows to pass "automounted" option into kernel (1.97 KB, patch)
2021-04-19 08:43 UTC, Iouri V. Ivliev
no flags Details | Diff
Patches allows to pass "automounted" option into kernel (4.76 KB, patch)
2021-04-20 07:15 UTC, Iouri V. Ivliev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Iouri V. Ivliev 2021-04-19 08:43:19 UTC
Created attachment 224243 [details]
Patches allows to pass "automounted" option into kernel

/usr/local/sbin/mount.exfat-fuse doesn't pass options given by -o command line argument into fuse_main. So "automounted" option from automountd(8) will never be received by kernel and autounmountd(8) doesn't recognize this FS as automounted.
Path in attachment solves this problem.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-04-19 08:54:01 UTC
^Triage: [tags] in issue Titles are deprecated

Upstream [1] appears recently active. This should be produced as a pull request upstream. 

We'd appreciate if you could do that Iouri.

Maintainer may consider a local ports patch until upstream resolves.

[1] https://github.com/relan/exfat
Comment 2 Iouri V. Ivliev 2021-04-20 07:10:55 UTC
Ok, it's pull request: https://github.com/relan/exfat/pull/170
Comment 3 Iouri V. Ivliev 2021-04-20 07:15:53 UTC
Created attachment 224279 [details]
Patches allows to pass "automounted" option into kernel

More complex patches using code from master branch at https://github.com/relan/exfat and patch from the pull request
Comment 4 Graham Perrin freebsd_committer freebsd_triage 2021-06-29 20:28:09 UTC
Also, bug 241474: 

> autofs fails to unmount exFAT filesystems automatically
Comment 5 commit-hook freebsd_committer freebsd_triage 2021-11-24 20:57:14 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d30a15797673e67199fe8a3fcbf437c5235237a9

commit d30a15797673e67199fe8a3fcbf437c5235237a9
Author:     Oleksii Samorukov <samm@FreeBSD.org>
AuthorDate: 2021-11-24 20:53:27 +0000
Commit:     Oleksii Samorukov <samm@FreeBSD.org>
CommitDate: 2021-11-24 20:56:11 +0000

    sysutils/fusefs-exfat: Pass "automounted" option into kernel and remove user option

    Based on upstream patches from the project repository

    PR: 255213
    Reported by: fbsd@any.com.ru

 sysutils/fusefs-exfat/Makefile                     |  1 +
 .../fusefs-exfat/files/patch-fuse_main.c (new)     | 25 +++++++++++++
 .../files/patch-libexfat_exfat.h (new)             | 10 ++++++
 .../files/patch-libexfat_mount.c (new)             | 42 ++++++++++++++++++++++
 .../files/patch-libexfat_utils.c (new)             | 18 ++++++++++
 5 files changed, 96 insertions(+)