Skip to content

Commit 215fc6a

Browse files
Nikitas Angelinastytso
Nikitas Angelinas
authored andcommitted
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 <[email protected]> Signed-off-by: Nikitas Angelinas <[email protected]> Signed-off-by: Andrew Perepechko <[email protected]> Signed-off-by: "Theodore Ts'o" <[email protected]>
1 parent f472e02 commit 215fc6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/mmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ static int kmmpd(void *data)
109109
mmp->mmp_check_interval = cpu_to_le16(mmp_check_interval);
110110
bdevname(bh->b_bdev, mmp->mmp_bdevname);
111111

112-
memcpy(mmp->mmp_nodename, init_utsname()->sysname,
112+
memcpy(mmp->mmp_nodename, init_utsname()->nodename,
113113
sizeof(mmp->mmp_nodename));
114114

115115
while (!kthread_should_stop()) {

0 commit comments

Comments
 (0)