Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Show storage full warning when storage is actually full #48354

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Sep 25, 2024

< 0 values for "free" do not mean that the storage is full:

/**
* @const \OCP\Files\FileInfo::SPACE_NOT_COMPUTED Return value for a not computed space value
* @since 8.0.0
*/
public const SPACE_NOT_COMPUTED = -1;
/**
* @const \OCP\Files\FileInfo::SPACE_UNKNOWN Return value for unknown space value
* @since 8.0.0
*/
public const SPACE_UNKNOWN = -2;
/**
* @const \OCP\Files\FileInfo::SPACE_UNLIMITED Return value for unlimited space
* @since 8.0.0
*/
public const SPACE_UNLIMITED = -3;

Signed-off-by: Louis Chemineau louis@chmn.me

  • Resolves: #

Summary

TODO

  • ...

Checklist

@artonge artonge requested a review from skjnldsv as a code owner September 25, 2024 11:54
@artonge artonge self-assigned this Sep 25, 2024
@artonge artonge requested a review from susnux September 25, 2024 11:54
@artonge artonge added this to the Nextcloud 31 milestone Sep 25, 2024
@artonge
Copy link
Contributor Author

artonge commented Sep 25, 2024

/backport to stable28

@artonge
Copy link
Contributor Author

artonge commented Sep 25, 2024

/backport to stable29

@artonge
Copy link
Contributor Author

artonge commented Sep 25, 2024

/backport to stable30

@artonge artonge force-pushed the artonge/fix/storage_full_warning branch from cb2bc91 to 1046f8d Compare September 25, 2024 15:48
@artonge
Copy link
Contributor Author

artonge commented Sep 25, 2024

/compile amend /

@artonge artonge enabled auto-merge September 25, 2024 15:48
@nextcloud-command nextcloud-command force-pushed the artonge/fix/storage_full_warning branch from 1046f8d to ee03123 Compare September 25, 2024 15:56
@artonge

This comment was marked as duplicate.

@artonge

This comment was marked as duplicate.

@artonge

This comment was marked as duplicate.

< 0 values for "free" do not mean that the storage is full: https://github.com/nextcloud/server/blob/6befdd6dd7cd20fe7f7036e4665bcfbb783d6803/lib/public/Files/FileInfo.php#L31-L42

Signed-off-by: Louis Chemineau <louis@chmn.me>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants