All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nikitas Angelinas <nikitasangelinas@gmail.com>
To: tytso@mit.edu, adilger.kernel@dilger.ca, adilger@whamcloud.com,
	johann@whamcloud.com
Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org,
	nikitas_angelinas@xyratex.com, andrew_perepechko@xyratex.com
Subject: [PATCH 1/2] ext4: MMP: kmmpd should use nodename from init_uts_ns.name, not sysname
Date: Fri, 23 Sep 2011 01:23:08 +0100	[thread overview]
Message-ID: <1316737389-5522-2-git-send-email-nikitas_angelinas@xyratex.com> (raw)
In-Reply-To: <1316737389-5522-1-git-send-email-nikitas_angelinas@xyratex.com>

sysname holds "Linux" by default, i.e. what appears when doing a "uname
-s"; nodename should be used to print the machine's hostname, i.e. what
is returned when doing a "uname -n" or "hostname", and what
gethostname(2)/sethostname(2) manipulate, in order to notify the
administrator of the node which is contending to mount the filesystem.

Signed-off-by: Nikitas Angelinas <nikitas_angelinas@xyratex.com>
Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
---
 fs/ext4/mmp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ext4/mmp.c b/fs/ext4/mmp.c
index 9bdef3f..2fca64e 100644
--- a/fs/ext4/mmp.c
+++ b/fs/ext4/mmp.c
@@ -109,7 +109,7 @@ static int kmmpd(void *data)
 	mmp->mmp_check_interval = cpu_to_le16(mmp_check_interval);
 	bdevname(bh->b_bdev, mmp->mmp_bdevname);
 
-	memcpy(mmp->mmp_nodename, init_utsname()->sysname,
+	memcpy(mmp->mmp_nodename, init_utsname()->nodename,
 	       sizeof(mmp->mmp_nodename));
 
 	while (!kthread_should_stop()) {
-- 
1.7.4.4


  reply	other threads:[~2011-09-23  0:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-23  0:23 [PATCH 0/2] ext4: Some MMP fixes Nikitas Angelinas
2011-09-23  0:23 ` Nikitas Angelinas [this message]
2011-09-23  8:24   ` [PATCH 1/2] ext4: MMP: kmmpd should use nodename from init_uts_ns.name, not sysname Andrew Perepechko
2011-09-23 11:30     ` Andrew Perepechko
2011-09-23 18:51   ` Andreas Dilger
2011-09-23  0:23 ` [PATCH 2/2] ext4: MMP: fix error message rate-limiting logic in kmmpd Nikitas Angelinas
2011-09-23 18:51   ` Andreas Dilger
2011-09-29 23:38 ` Nikitas Angelinas
2011-09-29 23:38   ` (unknown), Nikitas Angelinas
2011-09-29 23:38   ` [PATCH 1/2] ext4: MMP: kmmpd should use nodename from init_uts_ns.name, not sysname Nikitas Angelinas
2011-10-08 21:22     ` Ted Ts'o
2011-09-29 23:38   ` [PATCH 2/2] ext4: MMP: fix error message rate-limiting logic in kmmpd Nikitas Angelinas
2011-10-08 21:25     ` Ted Ts'o

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=1316737389-5522-2-git-send-email-nikitas_angelinas@xyratex.com \
    --to=nikitasangelinas@gmail.com \
    --cc=adilger.kernel@dilger.ca \
    --cc=adilger@whamcloud.com \
    --cc=andrew_perepechko@xyratex.com \
    --cc=johann@whamcloud.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nikitas_angelinas@xyratex.com \
    --cc=tytso@mit.edu \
    /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.