Skip to content

Total and free size of filesystem reported in sites doesn't match actual values #341

@fluiddot

Description

@fluiddot

Quick summary

The total and free size of filesystem reported in sites doesn't match the ones from the machine. This can lead to issues in plugins that rely on these values.

Steps to reproduce

  1. Open the app.
  2. Create/start a site.
  3. Edit the wp-config-php file of the site and add the following code at the bottom:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
error_log("Disk Free Space: " . print_r(disk_free_space('/'), true));
error_log("Disk Total Space: " . print_r(disk_total_space('/'), true));
  1. Navigate to the site.
  2. Open the logs file located in <SITE_PATH>/wp-content/debug.log.
  3. Observe that disk space values don't match the ones from the machine. E.g.:
    • Disk Free Space: 2048000000 (2GB)
    • Disk Total Space: 4096000000 (4GB)

What you expected to happen

The size of filesystem matches the values of the machine.

What actually happened

The size of the filesystem doesn't match the values of the machine.

Impact

All

Available workarounds?

No but the app is still usable

Platform

Mac Silicon

Logs or notes

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions