All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chengguang Xu <cgxu519@mykernel.net>
To: "Amir Goldstein" <amir73il@gmail.com>
Cc: "Miklos Szeredi" <miklos@szeredi.hu>,
	"overlayfs" <linux-unionfs@vger.kernel.org>
Subject: Re: [PATCH v4] ovl: whiteout inode sharing
Date: Fri, 24 Apr 2020 14:26:21 +0800	[thread overview]
Message-ID: <171aadd9966.100e576ad1248.8616898883060201949@mykernel.net> (raw)
In-Reply-To: <CAOQ4uxhowSRqD9kSoUHg+D8-RdxF8vBbTauTchgnpG5MoSNSEA@mail.gmail.com>

 ---- 在 星期五, 2020-04-24 14:02:00 Amir Goldstein <amir73il@gmail.com> 撰写 ----
 > >  > > +               case OPT_WHITEOUT_LINK_MAX:
 > >  > > +                       if (match_int(&args[0], &link_max))
 > >  > > +                               return -EINVAL;
 > >  > > +                       if (link_max < ovl_whiteout_link_max_def)
 > >  > > +                               config->whiteout_link_max = link_max;
 > >  >
 > >  > Why not allow link_max > ovl_whiteout_link_max_def?
 > >  > admin may want to disable ovl_whiteout_link_max_def by default
 > >  > in module parameter, but allow it for specific overlay instances.
 > >  >
 > >
 > > In this use case, seems we don't need module param any more, we just need to set  default value for option.
 > >
 > > I would like to treate module param as a total switch, so that it could disable the feathre for all instances at the same time.
 > > I think sometimes it's helpful for lazy admin(like me).
 > >
 > 
 > I am not convinced.
 > 
 > lazy admin could very well want to disable whiteout_link_max by default,
 > but allow user to specify whiteout_link_max for a specific mount.
 > 
 > In fact, in order to preserve existing behavior and not cause regression with
 > some special filesystems, distros could decide that default disabled is
 > a reasonable choice.
 > 
 > I don't understand at all what the purpose of this limitation is.
 > 

If user sets a ridiculous  link_max which is larger than valid range of upper fs, I think it is hard to verify in the stage of option parsing.
So I hope to fix the upper limit using module parameter, we can set default mount option to  0/1 for the use case you mentioned above.


Thanks,
cgxu



  reply	other threads:[~2020-04-24  6:27 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-22 10:27 [PATCH v4] ovl: whiteout inode sharing Chengguang Xu
2020-04-22 11:50 ` Amir Goldstein
2020-04-23  1:17   ` Chengguang Xu
2020-04-24  6:02     ` Amir Goldstein
2020-04-24  6:26       ` Chengguang Xu [this message]
2020-04-24 14:49         ` Amir Goldstein
2020-04-28 12:21           ` Miklos Szeredi
2020-04-28 13:15             ` Amir Goldstein
2020-04-28 13:32               ` Miklos Szeredi
2020-04-28 15:15                 ` Amir Goldstein

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=171aadd9966.100e576ad1248.8616898883060201949@mykernel.net \
    --to=cgxu519@mykernel.net \
    --cc=amir73il@gmail.com \
    --cc=linux-unionfs@vger.kernel.org \
    --cc=miklos@szeredi.hu \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.