[Devel] [PATCH libvzctl] scritps: vz-rst-action.in -- Fix typo in error message
Cyrill Gorcunov
gorcunov at virtuozzo.com
Wed Jan 11 07:36:46 PST 2017
In case if restore failed better to have precise error string.
Signed-off-by: Cyrill Gorcunov <gorcunov at 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(-)
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")
--
2.7.4
More information about the Devel
mailing list