IPC: message queue checkpoint/restore - requested updates
cover IPC: message queue checkpoint/restore - requested updates
This patch set updates IPC checkpoint/restore support according to discussion of previous patch set named "IPC: message queue checkpoint support". What has been changed:
1) MSG_STEAL was replaced by MSG_PEEK_ALL (as suggested by Michael Kerrisk)
2) All checkpoint/restore code has been put under CONFIG_CHECKPOINT_RESTORE define.
3) Added return of ENOSYS in case of sys_msgrcv was called with MSG_PEEK_ALL flag, but kernel was compiled without checkpoint/restore support.
4) Test for support of SYSV IPC message queues checkpoint/restore added to the series. Test file: msgque.c
Michael, please, tell me, what I have to do (or provide) to update man page accordingly.
The following series consists of:
---
Stanislav Kinsbursky (4):
ipc: rename obfuscating MSG_STEAL flag into MSG_PEEK_ALL
ipc: move all checkpoint-restore code under appropriate define
ipc: handle MSG_PEEK_ALL flag if CONFIG_CHECKPOINT_RESTORE is dropped
test: IPC message queue migration test
include/linux/msg.h | 2 - ipc/compat.c | 16 ++++- ipc/msg.c | 27 +++++++-- msgque.c | 151 +++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 185 insertions(+), 11 deletions(-) create mode 100644 msgque.c