feat(storage): rename snapraid_content to snapraid_conf; clarify conf vs content file; add auto-detect and conf viewer
This commit is contained in:
+5
-1
@@ -170,7 +170,7 @@ export interface StorageConfig {
|
||||
mover_inplace: boolean;
|
||||
mover_rsync_options: string;
|
||||
mover_warning_threshold: number;
|
||||
snapraid_content: string;
|
||||
snapraid_conf: string;
|
||||
snapraid_data_dirs: string;
|
||||
snapraid_parity_dir: string;
|
||||
snapraid_scrub_plan: number;
|
||||
@@ -322,6 +322,10 @@ export const api = {
|
||||
request<StorageJob>("POST", "/storage/jobs", { kind, args }),
|
||||
cancelStorageJob: (id: number) => request<{ ok: boolean }>("POST", `/storage/jobs/${id}/cancel`),
|
||||
storageJobStreamUrl: (id: number) => `/api/storage/jobs/${id}/stream`,
|
||||
getStorageConfFile: () => fetch(`/api/storage/conf-file`).then(r => {
|
||||
if (!r.ok) throw new Error(`HTTP ${r.status}: ${r.statusText}`);
|
||||
return r.text();
|
||||
}),
|
||||
};
|
||||
|
||||
export function formatBytes(bytes: number): string {
|
||||
|
||||
Reference in New Issue
Block a user