spiegel_podman/libpod/define
Priyansh Sao 04250c6672 fix: implement console size for container inspect in linux
fix: return tty size in container_inspect_linux.go

This PR updates the console size field for containers with terminal enabled.

For cases where there is an issue with getting the size, suitable debug information is given, no update happens and default [0,0] is returned.

This implementation is only for Linux systems.

For FreeBSD, the console size is not implemented yet so, adds a todo for that.

Fixes: #28368

Signed-off-by: Priyansh Sao <saopriyansh06@gmail.com>

fix: add system test for podman inspect

Adds system test to verify console size is correctly updated, includes two cases:

When a tty is attached to the container - non-zero console size.

When a tty is not attached to the container - zero console size.

Fixes: #28368

Signed-off-by: Priyansh Sao <saopriyansh06@gmail.com>
2026-09-22 19:26:23 +05:30
..
annotations.go kube: alias OCI runtime annotations without underscores 2026-06-23 19:24:53 +09:00
autoupdate.go auto-update: validate container image 2022-09-26 17:07:05 +02:00
checkpoint_restore.go Added optional container checkpointing statistics 2021-11-15 11:50:24 +00:00
config.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00
container.go swagger: fix deprecated alias annotations and model name collisions 2026-08-10 22:14:47 +05:30
container_inspect.go fix: implement console size for container inspect in linux 2026-09-22 19:26:23 +05:30
containerstate.go List all status values in status filter documentation 2026-02-19 09:28:37 -05:00
diff.go podman diff accept two images or containers 2021-07-02 17:11:56 +02:00
errors.go fix: Handle healthcheck log corruption gracefully 2026-06-29 13:03:47 +02:00
exec_codes.go test: adapt tests new crun error messages 2025-02-17 20:47:43 +01:00
exit_code_propagation.go kube play: exit-code propagation 2023-05-25 14:46:34 +02:00
fileinfo.go Fixes from make codespell 2021-04-21 13:16:33 -04:00
healthchecks.go Fix health-startup-cmd behaviour when the value is not set 2026-09-15 22:09:57 +03:00
info.go compat: Add status for runtimes to GET /info 2026-09-04 11:37:47 +02:00
mount.go Add support for ramfs as well as tmpfs in volume mounts 2023-08-21 07:14:57 -04:00
mount_freebsd.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
mount_linux.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
mount_unsupported.go libpod/define: Make TypeBind a platform-specific constant 2022-08-30 16:32:24 +01:00
pod_inspect.go Add --no-hostname option 2025-01-15 06:51:32 -05:00
podstate.go Add a Degraded state to pods 2020-10-21 13:31:40 -04:00
runtime.go Add support for containers.conf 2020-03-27 14:36:03 -04:00
sdnotify.go add "healthy" sdnotify policy 2023-07-25 11:17:44 +02:00
version.go swagger: fix deprecated alias annotations and model name collisions 2026-08-10 22:14:47 +05:30
volume_inspect.go run modernize -fix ./... 2025-09-10 16:17:04 +02:00