ext4: MMP: kmmpd should use nodename from init_uts_ns.name, not sysname
authorNikitas Angelinas <nikitasangelinas@gmail.com>
Tue, 18 Oct 2011 14:49:51 +0000 (10:49 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Oct 2011 14:49:51 +0000 (10:49 -0400)
commit215fc6af739d2dfdcad5496248d0d6302eb8a604
tree919d11683117ec90b623792f475f09017db1f45a
parentf472e02669073e4f1a388142bafa0f806fae841c
ext4: MMP: kmmpd should use nodename from init_uts_ns.name, not sysname

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.

Acked-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Nikitas Angelinas <nikitas_angelinas@xyratex.com>
Signed-off-by: Andrew Perepechko <andrew_perepechko@xyratex.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/mmp.c