Skip to content

Free space is not updated when both panels show the same directory #4833

@Vrihub

Description

@Vrihub

Is there an existing issue for this?

  • I have searched the existing issues

Midnight Commander version and build configuration

GNU Midnight Commander cae5c32a8
Built with GLib 2.84.4 (using GLib 2.84.4)
Built with S-Lang 2.3.3 and terminfo database (using S-Lang 2.3.3)
Built with libssh2 1.11.1
With builtin editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With ext2fs attributes support
Virtual File Systems:
 cpiofs, tarfs, sfs, extfs, ftpfs, sftpfs, shell
Data types:
 char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64; uintmax_t: 64;

Operating system

Linux *** 6.12.43+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.43-1 (2025-08-27) x86_64 GNU/Linux

Is this issue reproducible using the latest version of Midnight Commander?

  • I confirm the issue is still reproducible with the latest version of Midnight Commander

How to reproduce

  1. Run mc displaying the same directory in both panels, on a filesystem with less than 10gb of free space, so that the free space info at the bottom of each panel is measured in megabytes, not gigabytes.
  2. Run a command that alters the amount of free space for some megabytes (e.g. copy some large file), either in the current mc session, or in another terminal.

Expected behavior

The free space information under each panel should be updated.

Actual behavior

The free space information is not updated.

It will only be updated when:

  • You change the current directory, via cd, or via the quickcd feature, or via the GUI
  • You change the other panel's directory via Alt-o

The following actions, which are expected to cause a free space update, also don't have any effect:

  • Ctrl-r
  • Switching to the other panel
  • Switching to the subshell (Ctrl-o) and back
  • Execute another command using the CLI
  • Execute another action that modifies the free space, using mc copy/move/delete features (F5/F6/F8)

The bug doesn't happen when mc displays a different directory in each panel. I.e. free space is correctly updated after running any command that alters the filesystem, and after performing the other actions listed above.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues not related to a specific subsystemprio: mediumHas the potential to affect progress

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions