Lines 82-87
static struct mntopt mopts[] = {
Link Here
|
82 |
{ "large_read", 0, 0x00, 1 }, |
82 |
{ "large_read", 0, 0x00, 1 }, |
83 |
/* "nonempty", just the first two chars are stripped off during parsing */ |
83 |
/* "nonempty", just the first two chars are stripped off during parsing */ |
84 |
{ "nempty", 0, 0x00, 1 }, |
84 |
{ "nempty", 0, 0x00, 1 }, |
|
|
85 |
/* |
86 |
* MOPT_AUTOMOUNTED, included by MOPT_STDOPTS, is useless because |
87 |
* unfortunately MNT_AUTOMOUNTED does not fit into flags of nmount(2). |
88 |
* We have to abuse altflags to pass this option via iovec ATM. |
89 |
* refs bug 192852 |
90 |
* https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192852 |
91 |
*/ |
92 |
{ "automounted", 0, 0x80000000ll, 1 }, |
85 |
MOPT_STDOPTS, |
93 |
MOPT_STDOPTS, |
86 |
MOPT_END |
94 |
MOPT_END |
87 |
}; |
95 |
}; |
Lines 262-268
main(int argc, char *argv[])
Link Here
|
262 |
if (! (dev && dir)) |
270 |
if (! (dev && dir)) |
263 |
errx(1, "missing special and/or mountpoint"); |
271 |
errx(1, "missing special and/or mountpoint"); |
264 |
|
272 |
|
265 |
for (mo = mopts; mo->m_flag; ++mo) { |
273 |
for (mo = mopts; mo->m_option; ++mo) { |
|
|
274 |
if (!mo->m_altloc) |
275 |
continue; |
266 |
if (altflags & mo->m_flag) { |
276 |
if (altflags & mo->m_flag) { |
267 |
int iov_done = 0; |
277 |
int iov_done = 0; |
268 |
|
278 |
|