[Devel] [PATCH 2/1] fs: add ve_name to obsolete bdflush warning

Dmitry Safonov dsafonov at virtuozzo.com
Tue Jul 19 07:57:20 PDT 2016


The host admin may be confused by warning in dmesg with only
"comm", which may be anything a user in a container chooses.
Add ve name to this warning.

https://jira.sw.ru/browse/PSBM-49818

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 fs/buffer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/buffer.c b/fs/buffer.c
index 2b709d45ed6f..3ab44512f549 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -3300,8 +3300,8 @@ SYSCALL_DEFINE2(bdflush, int, func, long, data)
 	if (msg_count < 5) {
 		msg_count++;
 		printk(KERN_INFO
-			"warning: process `%s' used the obsolete bdflush"
-			" system call\n", current->comm);
+			"warning: process `%s', VE: %s used the obsolete bdflush"
+			" system call\n", current->comm, task_ve_name(current));
 		printk(KERN_INFO "Fix your initscripts?\n");
 	}
 
-- 
2.9.0



More information about the Devel mailing list