Commit cd5674ea authored by Pavel Emelyanov's avatar Pavel Emelyanov

tty: Deprecate no-regfile entry case

TTY files carry link on regfile entry since 1.4 (commit caa64d97)
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
Acked-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 090bcd01
......@@ -1541,6 +1541,9 @@ static int collect_one_tty(void *obj, ProtobufCMessage *msg, struct cr_img *i)
*/
info->reg_d = try_collect_special_file(info->tfe->id, 1);
if (!info->reg_d) {
if (!deprecated_ok("TTY w/o regfile"))
return -1;
if (is_pty(info->driver)) {
info->reg_d = pty_alloc_reg(info, true);
if (!info->reg_d) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment