Feature: ZFS Pool-Aktionen (Scrub, Resilver, Clear Errors) + Product-Spalte fix

- Backend: neue Endpoints POST /api/pools/{name}/clear und /resilver
- Frontend: Pool ⋮-Menü mit Scrub, Resilver, Clear Errors
- Product-Spalte im Status-Tab bricht jetzt korrekt um statt abgeschnitten zu werden

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-05 00:45:35 +02:00
parent 1dc55b189b
commit 6f6e8555af
3 changed files with 89 additions and 2 deletions
+10
View File
@@ -223,6 +223,16 @@ export class ZFSManagerAPI {
return response.data
}
async clearPoolErrors(poolName: string): Promise<{ status: string }> {
const response = await this.client.post(`/api/pools/${poolName}/clear`)
return response.data
}
async resilverPool(poolName: string): Promise<{ status: string }> {
const response = await this.client.post(`/api/pools/${poolName}/resilver`)
return response.data
}
// Datasets
async getDatasets(pool: string = "tank"): Promise<Dataset[]> {
const response = await this.client.get("/api/datasets/", { params: { pool } })