FreeBSD Bugzilla – Attachment 152412 Details for
Bug 192852
sysutils/fusefs-libs: ignore |automounted| option used by autofs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch to pass "automounted" flag properly so that auto*un*mountd DTRT.
mount_fusefs-automounted.diff (text/plain), 1.04 KB, created by
Taku YAMAMOTO
on 2015-01-31 08:42:58 UTC
(
hide
)
Description:
A patch to pass "automounted" flag properly so that auto*un*mountd DTRT.
Filename:
MIME Type:
Creator:
Taku YAMAMOTO
Created:
2015-01-31 08:42:58 UTC
Size:
1.04 KB
patch
obsolete
>diff --git a/sbin/mount_fusefs/mount_fusefs.c b/sbin/mount_fusefs/mount_fusefs.c >index 797aba7..72445e7 100644 >--- a/sbin/mount_fusefs/mount_fusefs.c >+++ b/sbin/mount_fusefs/mount_fusefs.c >@@ -82,6 +82,14 @@ static struct mntopt mopts[] = { > { "large_read", 0, 0x00, 1 }, > /* "nonempty", just the first two chars are stripped off during parsing */ > { "nempty", 0, 0x00, 1 }, >+ /* >+ * MOPT_AUTOMOUNTED, included by MOPT_STDOPTS, is useless because >+ * unfortunately MNT_AUTOMOUNTED does not fit into flags of nmount(2). >+ * We have to abuse altflags to pass this option via iovec ATM. >+ * refs bug 192852 >+ * https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192852 >+ */ >+ { "automounted", 0, 0x80000000ll, 1 }, > MOPT_STDOPTS, > MOPT_END > }; >@@ -262,7 +270,9 @@ main(int argc, char *argv[]) > if (! (dev && dir)) > errx(1, "missing special and/or mountpoint"); > >- for (mo = mopts; mo->m_flag; ++mo) { >+ for (mo = mopts; mo->m_option; ++mo) { >+ if (!mo->m_altloc) >+ continue; > if (altflags & mo->m_flag) { > int iov_done = 0; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192852
:
146067
|
146069
| 152412