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 <[email protected]>
---
 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

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to