linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "J. R. Okajima" <hooanon05g@gmail.com>
To: Jungsub Shin <supsup5642@gmail.com>
Cc: viro@zeniv.linux.org.uk, linux-fsdevel@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: Why is the length of max mount option a page size??
Date: Fri, 25 May 2018 19:42:10 +0900	[thread overview]
Message-ID: <5670.1527244930@jrobl> (raw)
In-Reply-To: <20180521173959.GA12779@supsup-VirtualBox>

Jungsub Shin:
> I know that almost mount option short and page size is enough to
> contain almost mount options. but because of options for 
> unionfs(overlay, aufs), lenght of mount option could be exceed it
> and cut.
>
> I suffer this problem with aufs. aufs's branch option is cut and 
> fail to aufs mount. I know that aufs is not offical fs in linux, 

For aufs, it should not happen because of the module parameter 'brs.'

(from the aufs manual)
----------------------------------------------------------------------
.SH Module Parameters
.TP
.B brs=1 | 0
Specifies to use the branch path data file under sysfs or not.

If the number of your branches is large or their path is long
and you meet the limitation of mount(8) ro /etc/mtab, you need to
enable CONFIG_SYSFS and set aufs module parameter brs=1.

When this parameter is set as 1, aufs does not show `br:' (or dirs=)
mount option through /proc/mounts (and /etc/mtab). So you can
keep yourself from the page limitation of
mount(8) or /etc/mtab.
Aufs shows branch paths through <sysfs>/fs/aufs/si_XXX/brNNN.
Actually the file under sysfs has also a size limitation, but I don't
think it is harmful.

There is one more side effect in setting 1 to this parameter.
If you rename your branch, the branch path written in /etc/mtab will be
obsoleted and the future remount will meet some error due to the
unmatched parameters (Remember that mount(8) may take the options from
/etc/mtab and pass them to the systemcall).
If you set 1, /etc/mtab will not hold the branch path and you will not
meet such trouble. On the other hand, the entries for the
branch path under sysfs are generated dynamically. So it must not be obsoleted.
But I don't think users want to rename branches so often.

If CONFIG_SYSFS is disable, this parameter is always set to 0.
----------------------------------------------------------------------


If you post the details of your environment to aufs-users ML, then I
may be able to describe more.


J. R. Okajima

  reply	other threads:[~2018-05-25 10:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-21 17:39 Jungsub Shin
2018-05-25 10:42 ` J. R. Okajima [this message]
2018-05-29  0:24   ` Jungsub Shin
2018-05-29  1:14     ` Al Viro
2018-05-29  3:57       ` Jungsub Shin
2018-05-30  2:40         ` J. R. Okajima
2018-05-30 23:51           ` Jungsub Shin
2018-05-29  1:14     ` J. R. Okajima

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5670.1527244930@jrobl \
    --to=hooanon05g@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=supsup5642@gmail.com \
    --cc=viro@zeniv.linux.org.uk \
    --subject='Re: Why is the length of max mount option a page size??' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).