Linux NILFS development
 help / color / mirror / Atom feed
From: Li Hong <lihong.hi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
Cc: konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org,
	linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH 2/2] nilfs2: add a print message after loading nilfs2
Date: Thu, 8 Apr 2010 23:47:11 +0800	[thread overview]
Message-ID: <20100408154711.GA31899@xhl> (raw)
In-Reply-To: <20100408.162141.218082254.ryusuke-sG5X7nlA6pw@public.gmane.org>

Hi Ryusuke Konishi,

The patch is resent.
Thanks very much for your review and suggestions.

Regards,
Li Hong

------------------ cut here -----------------------

From d5ecb6ca6bafa2c9aa7058aee8918b94eea9b993 Mon Sep 17 00:00:00 2001
From: Li Hong <lihong.hi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Date: Tue, 6 Apr 2010 01:23:04 +0800
Subject: [PATCH] nilfs2: add a print message after loading nilfs2

Printing a message after loading a file system is a practice. Add this to
provide a better user-friendly experience.

Signed-off-by: Li Hong <lihong.hi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
 fs/nilfs2/super.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/fs/nilfs2/super.c b/fs/nilfs2/super.c
index 2e767bc..8777172 100644
--- a/fs/nilfs2/super.c
+++ b/fs/nilfs2/super.c
@@ -1186,7 +1186,12 @@ static int __init init_nilfs_fs(void)
 		return err;
 
 	err = register_filesystem(&nilfs_fs_type);
-	return err;
+	if (err)
+		return err;
+
+	printk(KERN_INFO "NILFS version 2 loaded\n");
+	return 0;
+
 }
 
 static void __exit exit_nilfs_fs(void)
-- 
1.6.3.3

On Thu, Apr 08, 2010 at 04:21:41PM +0900, Ryusuke Konishi wrote:
> On Thu, 8 Apr 2010 13:45:05 +0800, Li Hong <lihong.hi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > 2010/4/8 Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>:
> > > On Wed, 7 Apr 2010 22:20:58 +0800, Li Hong <lihong.hi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> > >> Hi KONISHI Ryusuke,
> > >>
> > >> Any feedbacks on these patches?
> > >>
> > >> Thanks,
> > >> Li Hong
> > >
> > > Well, adding a load message is ok, but it should be more moderate like
> > > "nilfs2 file system loaded\n".
> > Yes. I just thought that printing a message after loading a file
> > system is a practice.
> > You may choose any string that you think is suitable :)
> 
> How about "NILFS version 2 loaded\n" ?
> 
> Seems that most messages have prefix "NILFS: ..." or "NILFS (device
> %s):".
>  
> > > I think this sort of change should be discussed in the sub topic
> > > mailing list (i.e. linux-nilfs).  You don't have to cc every patch to
> > > linux-kernel.
> > Ok. No problem.
> > 
> > > And, please include some explanation in the change log to clarify the
> > > aim or motivation.
> > I took it as a very simple patch and thought a header was enough. I can add more
> > explanations if here has a demand.
> 
> You thought "printing a message after loading a file system is a
> practice.", so it is the reason :)
> 
> Thanks,
> Ryusuke Konishi
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-04-08 15:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-05 17:34 [PATCH 1/2] nilfs2: cleanup multi kmem_cache_{create,destroy} code Li Hong
2010-04-05 17:35 ` [PATCH 2/2] nilfs2: add a print message after loading nilfs2 Li Hong
2010-04-07 14:20   ` Li Hong
2010-04-08  2:34     ` Ryusuke Konishi
     [not found]       ` <20100408.113405.221629738.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-04-08  5:45         ` Li Hong
     [not found]           ` <u2p3a3680031004072245t5ea476a5xbd6cbe6d3302de00-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-04-08  7:21             ` Ryusuke Konishi
     [not found]               ` <20100408.162141.218082254.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-04-08 15:47                 ` Li Hong [this message]
2010-04-08  4:44 ` [PATCH 1/2] nilfs2: cleanup multi kmem_cache_{create,destroy} code Ryusuke Konishi
     [not found]   ` <20100408.134456.221581029.ryusuke-sG5X7nlA6pw@public.gmane.org>
2010-04-09 12:41     ` Ryusuke Konishi
  -- strict thread matches above, loose matches on Subject: below --
2010-04-09 15:18 Li Hong
2010-04-09 15:19 ` [PATCH 2/2] nilfs2: add a print message after loading nilfs2 Li Hong

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=20100408154711.GA31899@xhl \
    --to=lihong.hi-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ryusuke-sG5X7nlA6pw@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