[PR #6660] [MERGED] Feature: FSTrim (Filesystem Trim) - Log / LVM Check / ZFS #6308

Closed
opened 2026-02-26 15:31:29 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/community-scripts/ProxmoxVE/pull/6660
Author: @MickLesk
Created: 8/8/2025
Status: Merged
Merged: 8/8/2025
Merged by: @CrazyWolf13

Base: mainHead: MickLesk-patch-1


📝 Commits (1)

  • afc19b8 Refactor: FSTrim (Filesystem Trim)

📊 Changes

1 file changed (+139 additions, -47 deletions)

View changed files

📝 tools/pve/fstrim.sh (+139 -47)

📄 Description

✍️ Description

  1. now it have an "log" function to see all trims afterwards -> bash cat /var/log/fstrim.log
  2. at start you get an whiptail with declaration what does this script do and how it works
  3. support zfs
  4. ext4 check
  5. start & stop handler for stopped lxc (start -> y/N | stop -> y/N)
  6. better function flow and handling

Prerequisites (X in brackets)

  • Self-review completed – Code follows project standards.
  • Tested thoroughly – Changes work as expected.
  • No security risks – No hardcoded secrets, unnecessary privilege escalations, or permission issues.

🛠️ Type of Change (X in brackets)

  • 🐞 Bug fix – Resolves an issue without breaking functionality.
  • New feature – Adds new, non-breaking functionality.
  • 💥 Breaking change – Alters existing functionality in a way that may require updates.
  • 🆕 New script – A fully functional and tested script or script set.
  • 🌍 Website update – Changes to website-related JSON files or metadata.
  • 🔧 Refactoring / Code Cleanup – Improves readability or maintainability without changing functionality.
  • 📝 Documentation update – Changes to README, AppName.md, CONTRIBUTING.md, or other docs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/community-scripts/ProxmoxVE/pull/6660 **Author:** [@MickLesk](https://github.com/MickLesk) **Created:** 8/8/2025 **Status:** ✅ Merged **Merged:** 8/8/2025 **Merged by:** [@CrazyWolf13](https://github.com/CrazyWolf13) **Base:** `main` ← **Head:** `MickLesk-patch-1` --- ### 📝 Commits (1) - [`afc19b8`](https://github.com/community-scripts/ProxmoxVE/commit/afc19b87bc7a155c9f27a22023f547445dda9111) Refactor: FSTrim (Filesystem Trim) ### 📊 Changes **1 file changed** (+139 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `tools/pve/fstrim.sh` (+139 -47) </details> ### 📄 Description <!--🛑 New scripts must be submitted to [ProxmoxVED](https://github.com/community-scripts/ProxmoxVED) for testing. PRs without prior testing will be closed. --> ## ✍️ Description 1. now it have an "log" function to see all trims afterwards -> ```bash cat /var/log/fstrim.log ``` 2. at start you get an whiptail with declaration what does this script do and how it works 3. support zfs 4. ext4 check 5. start & stop handler for stopped lxc (start -> y/N | stop -> y/N) 6. better function flow and handling ## ✅ Prerequisites (**X** in brackets) - [x] **Self-review completed** – Code follows project standards. - [x] **Tested thoroughly** – Changes work as expected. - [x] **No security risks** – No hardcoded secrets, unnecessary privilege escalations, or permission issues. --- ## 🛠️ Type of Change (**X** in brackets) - [ ] 🐞 **Bug fix** – Resolves an issue without breaking functionality. - [x] ✨ **New feature** – Adds new, non-breaking functionality. - [ ] 💥 **Breaking change** – Alters existing functionality in a way that may require updates. - [ ] 🆕 **New script** – A fully functional and tested script or script set. - [ ] 🌍 **Website update** – Changes to website-related JSON files or metadata. - [ ] 🔧 **Refactoring / Code Cleanup** – Improves readability or maintainability without changing functionality. - [ ] 📝 **Documentation update** – Changes to `README`, `AppName.md`, `CONTRIBUTING.md`, or other docs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 15:31:29 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ProxmoxVE#6308
No description provided.