[Devel,libvzctl] scritps: vz-rst-action.in -- Fix typo in error message

Submitted by Kirill Gorkunov on Jan. 11, 2017, 3:36 p.m.

Details

Message ID 20170111153646.GA32290@uranus.lan
State New
Series "scritps: vz-rst-action.in -- Fix typo in error message"
Headers show

Commit Message

Kirill Gorkunov Jan. 11, 2017, 3:36 p.m.
In case if restore failed better to have precise error string.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
Igor please don't force new libvzctl to be comiled solely
because of this patch, it's just a typo and can wait.

 scripts/vz-rst-action.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/scripts/vz-rst-action.in b/scripts/vz-rst-action.in
index 0afbe11..77442f8 100755
--- a/scripts/vz-rst-action.in
+++ b/scripts/vz-rst-action.in
@@ -105,11 +105,11 @@  case "$CRTOOLS_SCRIPT_ACTION" in
 		[ -f "$CRTOOLS_IMAGE_DIR/vz_memory_limit_in_bytes.img" ] && \
 			{ echo `cat $CRTOOLS_IMAGE_DIR/vz_memory_limit_in_bytes.img` > \
 				/sys/fs/cgroup/memory/machine.slice/$VEID/memory.limit_in_bytes || \
-				{ echo "Failed to restore core_pattern"; exit 1; } }
+				{ echo "Failed to restore memory.limit_in_bytes"; exit 1; } }
 		[ -f "$CRTOOLS_IMAGE_DIR/vz_memory_memsw_limit_in_bytes.img" ] && \
 			{ echo `cat $CRTOOLS_IMAGE_DIR/vz_memory_memsw_limit_in_bytes.img` > \
 				/sys/fs/cgroup/memory/machine.slice/$VEID/memory.memsw.limit_in_bytes || \
-				{ echo "Failed to restore core_pattern"; exit 1; } }
+				{ echo "Failed to restore memory.memsw.limit_in_bytes"; exit 1; } }
 	fi
 	;;
 "post-restore")