From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org,
david-0RIiUExYzkzCfDggNXIi3w@public.gmane.org
Subject: Re: pp (protection period) mount option
Date: Sat, 28 Nov 2009 01:23:03 +0900 (JST) [thread overview]
Message-ID: <20091128.012303.54434171.ryusuke@osrg.net> (raw)
In-Reply-To: <4B0FE052.70307-0RIiUExYzkzCfDggNXIi3w@public.gmane.org>
Hi!
On Fri, 27 Nov 2009 15:21:06 +0100, David Smid <david-0RIiUExYzkzCfDggNXIi3w@public.gmane.org> wrote:
> Hi,
>
> I have two nilfs2 partitions and want to set different protection period for
> each of them. I know nilfs_cleanerd has an option -p which allows to override
> the protection period but using it would require to mount both partitions and
> launch their cleaner daemons manually or within a script.
> Since I want to use fstab I had to implement this option as a mount.nilfs2 extra
> option.
>
> Not much was done to the kernel module: it just had to accept 'pp=' as a valid
> mount option.
> mount.nilfs2 was modified to parse this option and its value and to pass it to
> nilfs_cleanerd command line.
>
> See the patches.
>
>
> Regards,
>
> David Smid
Thank you for the patches.
I understood your intention.
One comment. I don't like the dummy option is added to the kernel
code because protection_period is entirely independent with it.
Can you modify the patch so that mount.nilfs2 gets out the pp option
from the string passed to the mount system call?
A ready-made function, change_opt() would be available for that
purpose.
(only from extra_opts; mtab should include it to keep the value for
cleanerd_ctl, of course)
And, please inline patches in the mail; this makes it easy to comment
on them.
Thanks,
Ryusuke Konishi
next prev parent reply other threads:[~2009-11-27 16:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 14:21 pp (protection period) mount option David Smid
[not found] ` <4B0FE052.70307-0RIiUExYzkzCfDggNXIi3w@public.gmane.org>
2009-11-27 16:23 ` Ryusuke Konishi [this message]
[not found] ` <20091128.012303.54434171.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-11-28 21:16 ` David Smid
[not found] ` <749598c60911281316i40b591b1hcb055b0867617f0e-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-01 15:44 ` Ryusuke Konishi
[not found] ` <20091202.004422.69931110.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-12-01 16:02 ` Ryusuke Konishi
[not found] ` <20091202.010205.38314732.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-12-02 17:20 ` David Smid
[not found] ` <4B16A1CA.9050608-0RIiUExYzkzCfDggNXIi3w@public.gmane.org>
2009-12-03 17:22 ` Ryusuke Konishi
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=20091128.012303.54434171.ryusuke@osrg.net \
--to=ryusuke-sg5x7nla6pw@public.gmane.org \
--cc=david-0RIiUExYzkzCfDggNXIi3w@public.gmane.org \
--cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox