From 929ba5cebe2db6e6b61814d2124698b29b40580c Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Fri, 18 Sep 2026 23:28:47 +0200 Subject: [PATCH] Detect degraded filesystems in device commands and exit with EXIT_DEGRADED --- cmdline/app.h | 2 ++ cmdline/device.c | 9 +++++++++ cmdline/mingwapp.c | 1 + cmdline/snapraid.c | 2 ++ cmdline/unixapp.c | 26 +++++++++++++++++++++++--- doc/snapraid-de.1 | 5 +++++ doc/snapraid-de.d | 3 +++ doc/snapraid-de.txt | 3 +++ doc/snapraid-es.1 | 5 +++++ doc/snapraid-es.d | 3 +++ doc/snapraid-es.txt | 3 +++ doc/snapraid-fr.1 | 5 +++++ doc/snapraid-fr.d | 3 +++ doc/snapraid-fr.txt | 3 +++ doc/snapraid-it.1 | 5 +++++ doc/snapraid-it.d | 3 +++ doc/snapraid-it.txt | 3 +++ doc/snapraid-ja.1 | 4 ++++ doc/snapraid-ja.d | 4 +++- doc/snapraid-ja.txt | 2 ++ doc/snapraid-ko.1 | 4 ++++ doc/snapraid-ko.d | 2 ++ doc/snapraid-ko.txt | 2 ++ doc/snapraid-pl.1 | 5 +++++ doc/snapraid-pl.d | 3 +++ doc/snapraid-pl.txt | 3 +++ doc/snapraid-pt.1 | 5 +++++ doc/snapraid-pt.d | 3 +++ doc/snapraid-pt.txt | 3 +++ doc/snapraid-ro.1 | 5 +++++ doc/snapraid-ro.d | 3 +++ doc/snapraid-ro.txt | 3 +++ doc/snapraid-ru.1 | 5 +++++ doc/snapraid-ru.d | 3 +++ doc/snapraid-ru.txt | 3 +++ doc/snapraid-sv.1 | 5 +++++ doc/snapraid-sv.d | 3 +++ doc/snapraid-sv.txt | 3 +++ doc/snapraid-uk.1 | 5 +++++ doc/snapraid-uk.d | 3 +++ doc/snapraid-uk.txt | 3 +++ doc/snapraid-zh.1 | 4 ++++ doc/snapraid-zh.d | 2 ++ doc/snapraid-zh.txt | 2 ++ doc/snapraid.1 | 5 +++++ doc/snapraid.d | 3 +++ doc/snapraid.txt | 3 +++ 47 files changed, 183 insertions(+), 4 deletions(-) diff --git a/cmdline/app.h b/cmdline/app.h index a3046779..01a1bc7e 100644 --- a/cmdline/app.h +++ b/cmdline/app.h @@ -228,11 +228,13 @@ extern FILE* stdlog; extern int exit_success; extern int exit_failure; extern int exit_sync_needed; +extern int exit_degraded; #undef EXIT_SUCCESS #undef EXIT_FAILURE #define EXIT_SUCCESS exit_success #define EXIT_FAILURE exit_failure #define EXIT_SYNC_NEEDED exit_sync_needed +#define EXIT_DEGRADED exit_degraded /** * Standard SMART attributes. diff --git a/cmdline/device.c b/cmdline/device.c index a69f2855..fa85786e 100644 --- a/cmdline/device.c +++ b/cmdline/device.c @@ -1198,6 +1198,8 @@ int state_device(struct snapraid_state* state, int operation, tommy_list* filter if (state->opt.gui) log_tag("unixtime:%" PRIi64 "\n", (int64_t)now); + int degraded = 0; + if (state->opt.fake_device) { ret = devtest(&high, &low, operation); } else { @@ -1206,6 +1208,10 @@ int state_device(struct snapraid_state* state, int operation, tommy_list* filter devsync(&high); ret = devquery(&high, &low); + if (ret > 0) { + degraded = 1; + ret = 0; + } } /* if the list is empty, it's not supported in this platform */ @@ -1251,6 +1257,9 @@ bail: tommy_list_foreach(&high, free); tommy_list_foreach(&low, free); + if (ret == 0 && degraded) + ret = 1; + return ret; } diff --git a/cmdline/mingwapp.c b/cmdline/mingwapp.c index d886878d..f6e2bdcf 100644 --- a/cmdline/mingwapp.c +++ b/cmdline/mingwapp.c @@ -17,6 +17,7 @@ int exit_success = 0; int exit_failure = 1; int exit_sync_needed = 2; +int exit_degraded = 3; /****************************************************************************/ /* signal */ diff --git a/cmdline/snapraid.c b/cmdline/snapraid.c index 5d85eadc..69971683 100644 --- a/cmdline/snapraid.c +++ b/cmdline/snapraid.c @@ -1804,6 +1804,8 @@ int snapraid_main(int argc, char* argv[]) /* abort if required */ if (ret != 0) { /* LCOV_EXCL_START */ + if (ret == 1) + exit(EXIT_DEGRADED); exit(EXIT_FAILURE); /* LCOV_EXCL_STOP */ } diff --git a/cmdline/unixapp.c b/cmdline/unixapp.c index b482fffb..d6db1e5e 100644 --- a/cmdline/unixapp.c +++ b/cmdline/unixapp.c @@ -18,6 +18,7 @@ int exit_success = 0; int exit_failure = 1; int exit_sync_needed = 2; +int exit_degraded = 3; /****************************************************************************/ /* signal */ @@ -728,6 +729,8 @@ static int devdereference_btrfs(uint64_t device, const char* dir, int fd, tommy_ /* LCOV_EXCL_STOP */ } + int degraded = 0; + for (__u64 i = 1; i <= fs_info.max_id; ++i) { struct btrfs_ioctl_dev_info_args dev_info; memset(&dev_info, 0, sizeof(dev_info)); @@ -743,10 +746,20 @@ static int devdereference_btrfs(uint64_t device, const char* dir, int fd, tommy_ /* LCOV_EXCL_STOP */ } + /* missing devices in degraded btrfs have empty path */ + if (dev_info.path[0] == 0) { + degraded = 1; + continue; + } + /* get major:minor, use stat on the path returned */ struct stat st; if (stat((char*)dev_info.path, &st) != 0) { /* LCOV_EXCL_START */ + if (errno == ENOENT) { + degraded = 1; + continue; + } log_error(errno, "Failed stat %s. %s.", dev_info.path, strerror(errno)); goto bail; /* LCOV_EXCL_STOP */ @@ -770,7 +783,7 @@ static int devdereference_btrfs(uint64_t device, const char* dir, int fd, tommy_ if (tommy_list_empty(devlist)) goto bail; - return 0; + return degraded ? 1 : 0; bail: tommy_list_foreach(devlist, free); @@ -4013,6 +4026,7 @@ void devsync(tommy_list* high) int devquery(tommy_list* high, tommy_list* low) { + int degraded = 0; #if HAVE_LINUX_DEVICE tommy_node* i; struct stat st; @@ -4034,12 +4048,18 @@ int devquery(tommy_list* high, tommy_list* low) tommy_list_init(&devlist); /* obtain the real devices */ - if (devdereference(device, devinfo->mount, &devlist) != 0) { + int ret = devdereference(device, devinfo->mount, &devlist); + if (ret < 0) { /* LCOV_EXCL_START */ log_fatal(EEXTERNAL, "Failed to dereference device '%u:%u' at '%s'.\n", major(device), minor(device), devinfo->mount); return -1; /* LCOV_EXCL_STOP */ } + if (ret > 0) { + log_fatal(ENXIO, "DANGER! Disk '%s' is degraded due to missing device(s).\n", devinfo->name); + log_tag("degraded:%s\n", esc_tag(devinfo->name)); + degraded = 1; + } devinfo->file[0] = 0; for (tommy_node* j = tommy_list_head(&devlist); j != 0; j = j->next) { @@ -4085,7 +4105,7 @@ int devquery(tommy_list* high, tommy_list* low) (void)low; #endif - return 0; + return degraded ? 1 : 0; } int devrun(tommy_list* low, int operation) diff --git a/doc/snapraid-de.1 b/doc/snapraid-de.1 index b2e847e5..77816944 100644 --- a/doc/snapraid-de.1 +++ b/doc/snapraid-de.1 @@ -2415,6 +2415,11 @@ Der Befehl ist auf Fehler gestoßen. .HP 4 .I 2 Der Befehl \`diff\` hat festgestellt, dass alles OK ist, aber ein \`sync\` erforderlich ist. +.HP 4 +.I 3 +Ein Festplattenbefehl (\`probe\`, \`smart\`, \`devices\`, \`up\`, \`down\`) wurde +abgeschlossen, aber mindestens ein Dateisystem läuft im degradierten +Modus mit fehlenden Geräten. .PD .RE .SH BEKANNTE PROBLEME (KNOWN ISSUES) diff --git a/doc/snapraid-de.d b/doc/snapraid-de.d index da7fdf21..44e227b8 100644 --- a/doc/snapraid-de.d +++ b/doc/snapraid-de.d @@ -1901,6 +1901,9 @@ Exit-Code (Exit Code) 0 - Alles OK. 1 - Der Befehl ist auf Fehler gestoßen. 2 - Der Befehl `diff` hat festgestellt, dass alles OK ist, aber ein `sync` erforderlich ist. + 3 - Ein Festplattenbefehl (`probe`, `smart`, `devices`, `up`, `down`) wurde + abgeschlossen, aber mindestens ein Dateisystem läuft im degradierten + Modus mit fehlenden Geräten. Bekannte Probleme (Known Issues) Dateisystemgrenzen diff --git a/doc/snapraid-de.txt b/doc/snapraid-de.txt index 90a0f3ec..e8ebbc6f 100644 --- a/doc/snapraid-de.txt +++ b/doc/snapraid-de.txt @@ -2029,6 +2029,9 @@ SnapRAID endet mit den folgenden Fehlercodes: 0 - Alles OK. 1 - Der Befehl ist auf Fehler gestoßen. 2 - Der Befehl `diff` hat festgestellt, dass alles OK ist, aber ein `sync` erforderlich ist. +3 - Ein Festplattenbefehl (`probe`, `smart`, `devices`, `up`, `down`) wurde + abgeschlossen, aber mindestens ein Dateisystem läuft im degradierten + Modus mit fehlenden Geräten. 16 BEKANNTE PROBLEME (KNOWN ISSUES) diff --git a/doc/snapraid-es.1 b/doc/snapraid-es.1 index a19b0fab..445aea39 100644 --- a/doc/snapraid-es.1 +++ b/doc/snapraid-es.1 @@ -2370,6 +2370,11 @@ El comando encontró algunos errores. .HP 4 .I 2 El comando \`diff\` determinó que todo está bien, pero se necesita un \`sync\`. +.HP 4 +.I 3 +Un comando de dispositivo de disco (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) se completó, pero al menos un sistema de archivos está funcionando +en modo degradado con dispositivos faltantes. .PD .RE .SH PROBLEMAS CONOCIDOS (KNOWN ISSUES) diff --git a/doc/snapraid-es.d b/doc/snapraid-es.d index ba4c17ed..1b5c54e8 100644 --- a/doc/snapraid-es.d +++ b/doc/snapraid-es.d @@ -1867,6 +1867,9 @@ Código de salida (Exit Code) 0 - Todo bien. 1 - El comando encontró algunos errores. 2 - El comando `diff` determinó que todo está bien, pero se necesita un `sync`. + 3 - Un comando de dispositivo de disco (`probe`, `smart`, `devices`, `up`, + `down`) se completó, pero al menos un sistema de archivos está funcionando + en modo degradado con dispositivos faltantes. Problemas conocidos (Known Issues) Límites del sistema de archivos diff --git a/doc/snapraid-es.txt b/doc/snapraid-es.txt index d137e072..d2ca702f 100644 --- a/doc/snapraid-es.txt +++ b/doc/snapraid-es.txt @@ -1995,6 +1995,9 @@ SnapRAID termina con los siguientes códigos de error: 0 - Todo bien. 1 - El comando encontró algunos errores. 2 - El comando `diff` determinó que todo está bien, pero se necesita un `sync`. +3 - Un comando de dispositivo de disco (`probe`, `smart`, `devices`, `up`, + `down`) se completó, pero al menos un sistema de archivos está funcionando + en modo degradado con dispositivos faltantes. 16 PROBLEMAS CONOCIDOS (KNOWN ISSUES) diff --git a/doc/snapraid-fr.1 b/doc/snapraid-fr.1 index 5e433cb4..e6a7198b 100644 --- a/doc/snapraid-fr.1 +++ b/doc/snapraid-fr.1 @@ -2414,6 +2414,11 @@ La commande a rencontré des erreurs. .HP 4 .I 2 La commande \`diff\` a trouvé que tout est OK, mais un \`sync\` est requis. +.HP 4 +.I 3 +Une commande de disque (\`probe\`, \`smart\`, \`devices\`, \`up\`, \`down\`) s\'est +terminée, mais au moins un système de fichiers fonctionne en mode dégradé +avec des périphériques manquants. .PD .RE .SH PROBLèMES CONNUS (KNOWN ISSUES) diff --git a/doc/snapraid-fr.d b/doc/snapraid-fr.d index 22f78861..2d005acc 100644 --- a/doc/snapraid-fr.d +++ b/doc/snapraid-fr.d @@ -1908,6 +1908,9 @@ Code de sortie (Exit Code) 0 - Tout est OK. 1 - La commande a rencontré des erreurs. 2 - La commande `diff` a trouvé que tout est OK, mais un `sync` est requis. + 3 - Une commande de disque (`probe`, `smart`, `devices`, `up`, `down`) s'est + terminée, mais au moins un système de fichiers fonctionne en mode dégradé + avec des périphériques manquants. Problèmes connus (Known Issues) Limites du système de fichiers diff --git a/doc/snapraid-fr.txt b/doc/snapraid-fr.txt index 6ae4a5c6..4219aae3 100644 --- a/doc/snapraid-fr.txt +++ b/doc/snapraid-fr.txt @@ -2036,6 +2036,9 @@ SnapRAID se termine avec les codes d'erreur suivants : 0 - Tout est OK. 1 - La commande a rencontré des erreurs. 2 - La commande `diff` a trouvé que tout est OK, mais un `sync` est requis. +3 - Une commande de disque (`probe`, `smart`, `devices`, `up`, `down`) s'est + terminée, mais au moins un système de fichiers fonctionne en mode dégradé + avec des périphériques manquants. 16 PROBLèMES CONNUS (KNOWN ISSUES) diff --git a/doc/snapraid-it.1 b/doc/snapraid-it.1 index 7b4e6508..04da4bd6 100644 --- a/doc/snapraid-it.1 +++ b/doc/snapraid-it.1 @@ -2394,6 +2394,11 @@ Il comando ha riscontrato alcuni errori. .HP 4 .I 2 Il comando \`diff\` ha rilevato che tutto è OK, ma è necessario un \`sync\`. +.HP 4 +.I 3 +Un comando di gestione dischi (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) è stato completato, ma almeno un filesystem è in modalità +degradata con dispositivi mancanti. .PD .RE .SH PROBLEMI NOTI (KNOWN ISSUES) diff --git a/doc/snapraid-it.d b/doc/snapraid-it.d index f3cce0cd..b449bc50 100644 --- a/doc/snapraid-it.d +++ b/doc/snapraid-it.d @@ -1877,6 +1877,9 @@ Codice di uscita (Exit Code) 0 - Tutto OK. 1 - Il comando ha riscontrato alcuni errori. 2 - Il comando `diff` ha rilevato che tutto è OK, ma è necessario un `sync`. + 3 - Un comando di gestione dischi (`probe`, `smart`, `devices`, `up`, + `down`) è stato completato, ma almeno un filesystem è in modalità + degradata con dispositivi mancanti. Problemi noti (Known Issues) Limiti del filesystem diff --git a/doc/snapraid-it.txt b/doc/snapraid-it.txt index 1ffdc210..46e03e61 100644 --- a/doc/snapraid-it.txt +++ b/doc/snapraid-it.txt @@ -2005,6 +2005,9 @@ SnapRAID termina con i seguenti codici di errore: 0 - Tutto OK. 1 - Il comando ha riscontrato alcuni errori. 2 - Il comando `diff` ha rilevato che tutto è OK, ma è necessario un `sync`. +3 - Un comando di gestione dischi (`probe`, `smart`, `devices`, `up`, + `down`) è stato completato, ma almeno un filesystem è in modalità + degradata con dispositivi mancanti. 16 PROBLEMI NOTI (KNOWN ISSUES) diff --git a/doc/snapraid-ja.1 b/doc/snapraid-ja.1 index b514f99b..9cd11344 100644 --- a/doc/snapraid-ja.1 +++ b/doc/snapraid-ja.1 @@ -2151,6 +2151,10 @@ SnapRAIDは以下のエラーコードで終了します: .HP 4 .I 2 \`diff\` コマンドはすべて正常であると判定しましたが、 \`sync\` が必要です。 +.HP 4 +.I 3 +ディスクデバイスコマンド(\`probe\`、\`smart\`、\`devices\`、\`up\`、\`down\`)は完了しましたが、 +少なくとも1つのファイルシステムがデバイス不足のためデグレード(縮退)モードで動作しています。 .PD .RE .SH 既知の問題 (KNOWN ISSUES) diff --git a/doc/snapraid-ja.d b/doc/snapraid-ja.d index b59a221c..6c0e8a9f 100644 --- a/doc/snapraid-ja.d +++ b/doc/snapraid-ja.d @@ -1063,7 +1063,7 @@ Name{number} DIR はファイルシステム内のディスクの**マウントポイント**です。 NAME を固定したままにしておけば、必要に応じてマウントポイントを変更できます。 - + ただし、設定されたパスは常に同じ基礎データに解決される必要があります。 パスにシンボリックリンクが含まれている場合、そのリンク先は固定されている 必要があります。シンボリックリンクの参照先を変更して実行時にデータ @@ -1648,6 +1648,8 @@ Name{number} 0 - すべて正常。 1 - コマンドでエラーが発生しました。 2 - `diff` コマンドはすべて正常であると判定しましたが、 `sync` が必要です。 + 3 - ディスクデバイスコマンド(`probe`、`smart`、`devices`、`up`、`down`)は完了しましたが、 + 少なくとも1つのファイルシステムがデバイス不足のためデグレード(縮退)モードで動作しています。 既知の問題 (Known Issues) ファイルシステムの境界 diff --git a/doc/snapraid-ja.txt b/doc/snapraid-ja.txt index 9b775382..800ecf59 100644 --- a/doc/snapraid-ja.txt +++ b/doc/snapraid-ja.txt @@ -1776,6 +1776,8 @@ SnapRAIDは以下のエラーコードで終了します: 0 - すべて正常。 1 - コマンドでエラーが発生しました。 2 - `diff` コマンドはすべて正常であると判定しましたが、 `sync` が必要です。 +3 - ディスクデバイスコマンド(`probe`、`smart`、`devices`、`up`、`down`)は完了しましたが、 + 少なくとも1つのファイルシステムがデバイス不足のためデグレード(縮退)モードで動作しています。 16 既知の問題 (KNOWN ISSUES) diff --git a/doc/snapraid-ko.1 b/doc/snapraid-ko.1 index e66d82fd..fedb73fd 100644 --- a/doc/snapraid-ko.1 +++ b/doc/snapraid-ko.1 @@ -2198,6 +2198,10 @@ SnapRAID는 다음과 같은 오류 코드로 종료됩니다: .HP 4 .I 2 \`diff\` 명령으로 모두 정상임을 확인했으나 \`sync\`가 필요합니다. +.HP 4 +.I 3 +디스크 장치 명령(\`probe\`, \`smart\`, \`devices\`, \`up\`, \`down\`)이 완료되었으나, +누락된 장치로 인해 하나 이상의 파일 시스템이 저하(degraded) 모드로 실행 중입니다. .PD .RE .SH 알려진 문제 (KNOWN ISSUES) diff --git a/doc/snapraid-ko.d b/doc/snapraid-ko.d index 43248a46..62d23cb7 100644 --- a/doc/snapraid-ko.d +++ b/doc/snapraid-ko.d @@ -1695,6 +1695,8 @@ Name{number} 0 - 모두 정상. 1 - 명령 실행 중 오류가 발생했습니다. 2 - `diff` 명령으로 모두 정상임을 확인했으나 `sync`가 필요합니다. + 3 - 디스크 장치 명령(`probe`, `smart`, `devices`, `up`, `down`)이 완료되었으나, + 누락된 장치로 인해 하나 이상의 파일 시스템이 저하(degraded) 모드로 실행 중입니다. 알려진 문제 (Known Issues) 파일 시스템 경계 diff --git a/doc/snapraid-ko.txt b/doc/snapraid-ko.txt index e6f47c3c..b2184ede 100644 --- a/doc/snapraid-ko.txt +++ b/doc/snapraid-ko.txt @@ -1823,6 +1823,8 @@ SnapRAID는 다음과 같은 오류 코드로 종료됩니다: 0 - 모두 정상. 1 - 명령 실행 중 오류가 발생했습니다. 2 - `diff` 명령으로 모두 정상임을 확인했으나 `sync`가 필요합니다. +3 - 디스크 장치 명령(`probe`, `smart`, `devices`, `up`, `down`)이 완료되었으나, + 누락된 장치로 인해 하나 이상의 파일 시스템이 저하(degraded) 모드로 실행 중입니다. 16 알려진 문제 (KNOWN ISSUES) diff --git a/doc/snapraid-pl.1 b/doc/snapraid-pl.1 index b615f90d..8c4a8ae7 100644 --- a/doc/snapraid-pl.1 +++ b/doc/snapraid-pl.1 @@ -2283,6 +2283,11 @@ Polecenie napotkało błędy. .HP 4 .I 2 Polecenie \`diff\` wykazało, że wszystko jest w porządku, ale wymagane jest \`sync\`. +.HP 4 +.I 3 +Polecenie urządzenia dyskowego (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) zostało zakończone, ale co najmniej jeden system plików działa +w trybie zdegradowanym z brakującymi urządzeniami. .PD .RE .SH ZNANE PROBLEMY (KNOWN ISSUES) diff --git a/doc/snapraid-pl.d b/doc/snapraid-pl.d index c4f8cb82..19dce1c8 100644 --- a/doc/snapraid-pl.d +++ b/doc/snapraid-pl.d @@ -1780,6 +1780,9 @@ Kod wyjścia (Exit Code) 0 - Wszystko w porządku. 1 - Polecenie napotkało błędy. 2 - Polecenie `diff` wykazało, że wszystko jest w porządku, ale wymagane jest `sync`. + 3 - Polecenie urządzenia dyskowego (`probe`, `smart`, `devices`, `up`, + `down`) zostało zakończone, ale co najmniej jeden system plików działa + w trybie zdegradowanym z brakującymi urządzeniami. Znane problemy (Known Issues) Granice systemu plików diff --git a/doc/snapraid-pl.txt b/doc/snapraid-pl.txt index a4e03fcf..bbbfb69e 100644 --- a/doc/snapraid-pl.txt +++ b/doc/snapraid-pl.txt @@ -1908,6 +1908,9 @@ SnapRAID kończy działanie z następującymi kodami błędów: 0 - Wszystko w porządku. 1 - Polecenie napotkało błędy. 2 - Polecenie `diff` wykazało, że wszystko jest w porządku, ale wymagane jest `sync`. +3 - Polecenie urządzenia dyskowego (`probe`, `smart`, `devices`, `up`, + `down`) zostało zakończone, ale co najmniej jeden system plików działa + w trybie zdegradowanym z brakującymi urządzeniami. 16 ZNANE PROBLEMY (KNOWN ISSUES) diff --git a/doc/snapraid-pt.1 b/doc/snapraid-pt.1 index 1e70b8c4..c34c6c6f 100644 --- a/doc/snapraid-pt.1 +++ b/doc/snapraid-pt.1 @@ -2319,6 +2319,11 @@ O comando encontrou alguns erros. .HP 4 .I 2 O comando \`diff\` determinou que tudo está OK, mas é necessário um \`sync\`. +.HP 4 +.I 3 +Um comando de dispositivo de disco (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) foi concluído, mas pelo menos um sistema de arquivos está operando +em modo degradado com dispositivo(s) ausente(s). .PD .RE .SH PROBLEMAS CONHECIDOS (KNOWN ISSUES) diff --git a/doc/snapraid-pt.d b/doc/snapraid-pt.d index 7e7503a1..ab1b4e6c 100644 --- a/doc/snapraid-pt.d +++ b/doc/snapraid-pt.d @@ -1816,6 +1816,9 @@ Código de Saída (Exit Code) 0 - Tudo OK. 1 - O comando encontrou alguns erros. 2 - O comando `diff` determinou que tudo está OK, mas é necessário um `sync`. + 3 - Um comando de dispositivo de disco (`probe`, `smart`, `devices`, `up`, + `down`) foi concluído, mas pelo menos um sistema de arquivos está operando + em modo degradado com dispositivo(s) ausente(s). Problemas Conhecidos (Known Issues) Limites do sistema de arquivos diff --git a/doc/snapraid-pt.txt b/doc/snapraid-pt.txt index ccb3c453..881a1104 100644 --- a/doc/snapraid-pt.txt +++ b/doc/snapraid-pt.txt @@ -1944,6 +1944,9 @@ O SnapRAID termina com os seguintes códigos de erro: 0 - Tudo OK. 1 - O comando encontrou alguns erros. 2 - O comando `diff` determinou que tudo está OK, mas é necessário um `sync`. +3 - Um comando de dispositivo de disco (`probe`, `smart`, `devices`, `up`, + `down`) foi concluído, mas pelo menos um sistema de arquivos está operando + em modo degradado com dispositivo(s) ausente(s). 16 PROBLEMAS CONHECIDOS (KNOWN ISSUES) diff --git a/doc/snapraid-ro.1 b/doc/snapraid-ro.1 index fa5bc564..3e270221 100644 --- a/doc/snapraid-ro.1 +++ b/doc/snapraid-ro.1 @@ -2279,6 +2279,11 @@ Comanda a întâmpinat unele erori. .HP 4 .I 2 Comanda \`diff\` a constatat că totul este OK, dar este necesar un \`sync\`. +.HP 4 +.I 3 +O comandă de dispozitiv de disc (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) s\-a finalizat, dar cel puțin un sistem de fișiere funcționează +în mod degradat cu dispozitive lipsă. .PD .RE .SH PROBLEME CUNOSCUTE (KNOWN ISSUES) diff --git a/doc/snapraid-ro.d b/doc/snapraid-ro.d index fcc590ff..970fffa3 100644 --- a/doc/snapraid-ro.d +++ b/doc/snapraid-ro.d @@ -1776,6 +1776,9 @@ Cod de ieșire (Exit Code) 0 - Totul este OK. 1 - Comanda a întâmpinat unele erori. 2 - Comanda `diff` a constatat că totul este OK, dar este necesar un `sync`. + 3 - O comandă de dispozitiv de disc (`probe`, `smart`, `devices`, `up`, + `down`) s-a finalizat, dar cel puțin un sistem de fișiere funcționează + în mod degradat cu dispozitive lipsă. Probleme Cunoscute (Known Issues) Limitele sistemului de fișiere diff --git a/doc/snapraid-ro.txt b/doc/snapraid-ro.txt index 9f257500..f88c90db 100644 --- a/doc/snapraid-ro.txt +++ b/doc/snapraid-ro.txt @@ -1904,6 +1904,9 @@ SnapRAID se termină cu următoarele coduri de eroare: 0 - Totul este OK. 1 - Comanda a întâmpinat unele erori. 2 - Comanda `diff` a constatat că totul este OK, dar este necesar un `sync`. +3 - O comandă de dispozitiv de disc (`probe`, `smart`, `devices`, `up`, + `down`) s-a finalizat, dar cel puțin un sistem de fișiere funcționează + în mod degradat cu dispozitive lipsă. 16 PROBLEME CUNOSCUTE (KNOWN ISSUES) diff --git a/doc/snapraid-ru.1 b/doc/snapraid-ru.1 index 920b0c42..611818fa 100644 --- a/doc/snapraid-ru.1 +++ b/doc/snapraid-ru.1 @@ -2284,6 +2284,11 @@ SnapRAID завершает работу со следующими кодами .HP 4 .I 2 Команда \`diff\` определила, что все в порядке, но требуется \`sync\`. +.HP 4 +.I 3 +Команда дискового устройства (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) завершена, но по крайней мере одна файловая система работает +в деградированном режиме с отсутствующими устройствами. .PD .RE .SH Известные проблемы (KNOWN ISSUES) diff --git a/doc/snapraid-ru.d b/doc/snapraid-ru.d index ca93fee3..f59fedd4 100644 --- a/doc/snapraid-ru.d +++ b/doc/snapraid-ru.d @@ -1783,6 +1783,9 @@ Name{number} 0 - Все в порядке. 1 - Команда обнаружила ошибки. 2 - Команда `diff` определила, что все в порядке, но требуется `sync`. + 3 - Команда дискового устройства (`probe`, `smart`, `devices`, `up`, + `down`) завершена, но по крайней мере одна файловая система работает + в деградированном режиме с отсутствующими устройствами. Известные проблемы (Known Issues) Границы файловой системы diff --git a/doc/snapraid-ru.txt b/doc/snapraid-ru.txt index f18873fc..4c1f6b56 100644 --- a/doc/snapraid-ru.txt +++ b/doc/snapraid-ru.txt @@ -1911,6 +1911,9 @@ SnapRAID завершает работу со следующими кодами 0 - Все в порядке. 1 - Команда обнаружила ошибки. 2 - Команда `diff` определила, что все в порядке, но требуется `sync`. +3 - Команда дискового устройства (`probe`, `smart`, `devices`, `up`, + `down`) завершена, но по крайней мере одна файловая система работает + в деградированном режиме с отсутствующими устройствами. 16 Известные проблемы (KNOWN ISSUES) diff --git a/doc/snapraid-sv.1 b/doc/snapraid-sv.1 index 31f7f823..bc9f861a 100644 --- a/doc/snapraid-sv.1 +++ b/doc/snapraid-sv.1 @@ -2279,6 +2279,11 @@ Kommandot stötte på fel. .HP 4 .I 2 Kommandot \`diff\` fann att allt är OK, men en \`sync\` behövs. +.HP 4 +.I 3 +Ett diskenhetskommando (\`probe\`, \`smart\`, \`devices\`, \`up\`, \`down\`) +slutfördes, men minst ett filsystem körs i degraderat läge med +saknade enheter. .PD .RE .SH KäNDA PROBLEM (KNOWN ISSUES) diff --git a/doc/snapraid-sv.d b/doc/snapraid-sv.d index 6bf9f2c4..bc108656 100644 --- a/doc/snapraid-sv.d +++ b/doc/snapraid-sv.d @@ -1776,6 +1776,9 @@ Slutkod (Exit Code) 0 - Allt OK. 1 - Kommandot stötte på fel. 2 - Kommandot `diff` fann att allt är OK, men en `sync` behövs. + 3 - Ett diskenhetskommando (`probe`, `smart`, `devices`, `up`, `down`) + slutfördes, men minst ett filsystem körs i degraderat läge med + saknade enheter. Kända problem (Known Issues) Filsystemgränser diff --git a/doc/snapraid-sv.txt b/doc/snapraid-sv.txt index deb5ac1a..fd6b6252 100644 --- a/doc/snapraid-sv.txt +++ b/doc/snapraid-sv.txt @@ -1904,6 +1904,9 @@ SnapRAID avslutas med följande statuskoder: 0 - Allt OK. 1 - Kommandot stötte på fel. 2 - Kommandot `diff` fann att allt är OK, men en `sync` behövs. +3 - Ett diskenhetskommando (`probe`, `smart`, `devices`, `up`, `down`) + slutfördes, men minst ett filsystem körs i degraderat läge med + saknade enheter. 16 KäNDA PROBLEM (KNOWN ISSUES) diff --git a/doc/snapraid-uk.1 b/doc/snapraid-uk.1 index 12504f26..01d4fe8b 100644 --- a/doc/snapraid-uk.1 +++ b/doc/snapraid-uk.1 @@ -2484,6 +2484,11 @@ SnapRAID завершує роботу з такими кодами помило .HP 4 .I 2 Команда \`diff\` визначила, що все в порядку, але потрібен \`sync\`. +.HP 4 +.I 3 +Команда дискового пристрою (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) завершена, але принаймні одна файлова система працює +у деградованому режимі з відсутніми пристроями. .PD .RE .SH Відомі проблеми (KNOWN ISSUES) diff --git a/doc/snapraid-uk.d b/doc/snapraid-uk.d index d036e598..26833a41 100644 --- a/doc/snapraid-uk.d +++ b/doc/snapraid-uk.d @@ -1969,6 +1969,9 @@ Name{number} 0 - Все в порядку. 1 - Команда виявила помилки. 2 - Команда `diff` визначила, що все в порядку, але потрібен `sync`. + 3 - Команда дискового пристрою (`probe`, `smart`, `devices`, `up`, + `down`) завершена, але принаймні одна файлова система працює + у деградованому режимі з відсутніми пристроями. Відомі проблеми (Known Issues) Межі файлової системи diff --git a/doc/snapraid-uk.txt b/doc/snapraid-uk.txt index 472e8f7d..444d28ba 100644 --- a/doc/snapraid-uk.txt +++ b/doc/snapraid-uk.txt @@ -2097,6 +2097,9 @@ SnapRAID завершує роботу з такими кодами помило 0 - Все в порядку. 1 - Команда виявила помилки. 2 - Команда `diff` визначила, що все в порядку, але потрібен `sync`. +3 - Команда дискового пристрою (`probe`, `smart`, `devices`, `up`, + `down`) завершена, але принаймні одна файлова система працює + у деградованому режимі з відсутніми пристроями. 16 Відомі проблеми (KNOWN ISSUES) diff --git a/doc/snapraid-zh.1 b/doc/snapraid-zh.1 index cad6a26d..87bfa95c 100644 --- a/doc/snapraid-zh.1 +++ b/doc/snapraid-zh.1 @@ -2060,6 +2060,10 @@ SnapRAID 终止并返回以下错误代码: .HP 4 .I 2 \`diff\` 命令发现一切正常,但需要进行 \`sync\`。 +.HP 4 +.I 3 +磁盘设备命令(\`probe\`、\`smart\`、\`devices\`、\`up\`、\`down\`)已完成, +但至少有一个文件系统因缺少设备而以降级(degraded)模式运行。 .PD .RE .SH 已知问题 (KNOWN ISSUES) diff --git a/doc/snapraid-zh.d b/doc/snapraid-zh.d index 372ad000..8b9770bd 100644 --- a/doc/snapraid-zh.d +++ b/doc/snapraid-zh.d @@ -1557,6 +1557,8 @@ Name{number} 0 - 一切正常。 1 - 命令遇到一些错误。 2 - `diff` 命令发现一切正常,但需要进行 `sync`。 + 3 - 磁盘设备命令(`probe`、`smart`、`devices`、`up`、`down`)已完成, + 但至少有一个文件系统因缺少设备而以降级(degraded)模式运行。 已知问题 (Known Issues) 文件系统边界 diff --git a/doc/snapraid-zh.txt b/doc/snapraid-zh.txt index ee4df267..be39efbb 100644 --- a/doc/snapraid-zh.txt +++ b/doc/snapraid-zh.txt @@ -1685,6 +1685,8 @@ SnapRAID 终止并返回以下错误代码: 0 - 一切正常。 1 - 命令遇到一些错误。 2 - `diff` 命令发现一切正常,但需要进行 `sync`。 +3 - 磁盘设备命令(`probe`、`smart`、`devices`、`up`、`down`)已完成, + 但至少有一个文件系统因缺少设备而以降级(degraded)模式运行。 16 已知问题 (KNOWN ISSUES) diff --git a/doc/snapraid.1 b/doc/snapraid.1 index 25d53808..83c74f9f 100644 --- a/doc/snapraid.1 +++ b/doc/snapraid.1 @@ -2288,6 +2288,11 @@ The command encountered some errors. .I 2 The \`diff\` command found everything is OK, but a \`sync\` is needed. +.HP 4 +.I 3 +A disk device command (\`probe\`, \`smart\`, \`devices\`, \`up\`, +\`down\`) completed, but at least one filesystem is running in +degraded mode with missing device(s). .PD .RE .SH KNOWN ISSUES diff --git a/doc/snapraid.d b/doc/snapraid.d index 72fc1538..7166b0b2 100644 --- a/doc/snapraid.d +++ b/doc/snapraid.d @@ -1785,6 +1785,9 @@ Exit Code 1 - The command encountered some errors. 2 - The `diff` command found everything is OK, but a `sync` is needed. + 3 - A disk device command (`probe`, `smart`, `devices`, `up`, + `down`) completed, but at least one filesystem is running in + degraded mode with missing device(s). Known Issues Filesystem boundaries diff --git a/doc/snapraid.txt b/doc/snapraid.txt index bc934ce1..35fa569e 100644 --- a/doc/snapraid.txt +++ b/doc/snapraid.txt @@ -1913,6 +1913,9 @@ SnapRAID terminates with the following error codes: 1 - The command encountered some errors. 2 - The `diff` command found everything is OK, but a `sync` is needed. +3 - A disk device command (`probe`, `smart`, `devices`, `up`, + `down`) completed, but at least one filesystem is running in + degraded mode with missing device(s). 16 KNOWN ISSUES