diff --git a/CHECKSUMS b/CHECKSUMS index cfbf4720..0b88783e 100644 --- a/CHECKSUMS +++ b/CHECKSUMS @@ -155,3 +155,10 @@ bc15ad9c42ddf9bd70033562a10e9b9fec43afed54c48fe22da4b6835657ec1b snapraid-12.4. 0282a9eec3301cd608dc45d9182b6d207f9fd4d25828c9deb329a015c77cb4e2 snapraid-13.0.tar.gz e2f44b06d2065226e6d2b184f9bf046bb0ce5144a585eadb14f83e19c349cc86 snapraid-13.0-windows-x64.zip 1b83a31e5e0ad25701ad58779b125d194426e3f3715f1a51cf81c993c2921e4b snapraid-13.0-windows-x86.zip +59e10835c0397193cb27969852a51059f0b0b9abb6cec2353f3052f6bd18e85d snapraid-14.0.tar.gz +8a917bb29b19fb32ce59cd18d09059ac53b84df6a33da798e6f28f552099f4b4 snapraid-14.0-1-x86_64.pkg.tar.zst +264f66d3092a47c64439fb3d2bded6ce4ec0b3cbc5b5c1f4f3c1ac8bf05a4767 snapraid-14.0-1.x86_64.rpm +59b8b09e20a5937e0cd2798b1256eefa1cd27bd3f1c24b5e4dee32e6b25c1553 snapraid-14.0-windows-x64.zip +b6a144161e7240c754947d5ea4f637f59006cbdaed68c2f285f440c257e7590e snapraid-14.0-windows-x86.zip +b67183342cc4160891dfdf10452f1c79e71bb7887c54fcfb81cd2ded68b3bd37 snapraid-14.0-x86_64-1_am.txz +128b5b0f80a6a0911e77ed3b5d9d81529f5ea1d8fffbb5112e3af3467d80464a snapraid_14.0-1_amd64.deb diff --git a/HISTORY b/HISTORY index 812cc7bf..634a490d 100644 --- a/HISTORY +++ b/HISTORY @@ -1,43 +1,23 @@ SnapRAID HISTORY ================ -14.0rc3e 22/03/2026 -=================== - * Fixed reading of serial number in Windows - -14.0rc3d 22/03/2026 -=================== - * Fixed data race on the new RELOCATED flag - -14.0rc3c 16/03/2026 -=================== - * Log additional information to allow to handle dynamic devices associations - -14.0rc3 15/03/2026 -================== +14.0 2026/03 +============ + * More log tags for all commands in preparation for the upcoming SnapRAID + Daemon. Pre-release will be available at https://github.com/amadvance/snapraid-daemon. + Note that this is the minimal SnapRAID version required to use the daemon. * New 'extra' config option to define additional disks to monitor with the 'probe' and 'smart' commands. This replaces the previous autodetection. * Introduced the 'relocated' file state to unify the previous 'copied/removed' logic. This new status specifically identifies files moved to a different path or disk with a new inode where the original has disappeared. - * Removed the UAC request for Windows executable. - -14.0rc2 08/03/2026 -================== - * Extended Windows support to be on par with the Linux version. - -14.0rc1 01/03/2026 -================== - * More log tags for all commands in preparation for the upcoming SnapRAID - Daemon. Pre-release will be available at https://github.com/amadvance/snapraid-daemon. - Note that this is the minimal SnapRAID version required to use the daemon. - * Fixed a crash on macOS when filesystem doesn't report UUID * Added support for local exclusion rules via .snapraidignore files placed directly within the array directory tree. This allows for granular, directory-level control over which files and folders are excluded from parity, mirroring the workflow of .gitignore. * Added support for the ** globbing character to allow recursive pattern matching across multiple directory levels. + * Fixed a crash on macOS when filesystem doesn't report UUID * Added a new locate command to map physical file offsets within the parity volume. This feature facilitates diagnostic analysis of the parity distribution. It supports the -t, --tail option to filter files located diff --git a/cmdline/portable.h b/cmdline/portable.h index 9882a0d1..de6771ac 100644 --- a/cmdline/portable.h +++ b/cmdline/portable.h @@ -229,6 +229,7 @@ #ifdef __APPLE__ #include #include +#include #endif #if HAVE_IO_H diff --git a/doc/snapraid.1 b/doc/snapraid.1 index 28fb2248..5db638d0 100644 --- a/doc/snapraid.1 +++ b/doc/snapraid.1 @@ -2030,7 +2030,23 @@ a TrueType font like \`Lucida Console\` as the console font. This affects only the printed file names; if you redirect the console output to a file, the resulting file is always in UTF\-8 format. +.SH EXIT CODE +SnapRAID terminates with the following error codes: +.RS 0 +.PD 0 +.HP 4 +.I 0 +Everything OK. +.HP 4 +.I 1 +The command encountered some errors. +.HP 4 +.I 2 +The \`diff\` command found everything is OK, but a \`sync\` is +needed. +.PD +.RE .SH COPYRIGHT -This file is Copyright (C) 2025 Andrea Mazzoleni +This file is Copyright (C) 2026 Andrea Mazzoleni .SH SEE ALSO snapraid_log(1), snapraidd(1), rsync(1) diff --git a/doc/snapraid.d b/doc/snapraid.d index d4e66529..b6a6efda 100644 --- a/doc/snapraid.d +++ b/doc/snapraid.d @@ -1573,8 +1573,16 @@ Encoding redirect the console output to a file, the resulting file is always in UTF-8 format. +Exit Code + SnapRAID terminates with the following error codes: + + 0 - Everything OK. + 1 - The command encountered some errors. + 2 - The `diff` command found everything is OK, but a `sync` is + needed. + Copyright - This file is Copyright (C) 2025 Andrea Mazzoleni + This file is Copyright (C) 2026 Andrea Mazzoleni See Also snapraid_log(1), snapraidd(1), rsync(1) diff --git a/doc/snapraid.txt b/doc/snapraid.txt index 73a82a4b..4e29c167 100644 --- a/doc/snapraid.txt +++ b/doc/snapraid.txt @@ -1689,13 +1689,24 @@ redirect the console output to a file, the resulting file is always in UTF-8 format. -13 COPYRIGHT +13 EXIT CODE ============ -This file is Copyright (C) 2025 Andrea Mazzoleni +SnapRAID terminates with the following error codes: + +0 - Everything OK. +1 - The command encountered some errors. +2 - The `diff` command found everything is OK, but a `sync` is + needed. -14 SEE ALSO +14 COPYRIGHT +============ + +This file is Copyright (C) 2026 Andrea Mazzoleni + + +15 SEE ALSO =========== snapraid_log(1), snapraidd(1), rsync(1)