mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 10:51:54 -04:00
A note about -find-by-name and hard-links.
This commit is contained in:
parent
179195435b
commit
e449777417
4 changed files with 24 additions and 0 deletions
15
TODO
15
TODO
|
|
@ -52,6 +52,21 @@ or check validity of data of existing ones.
|
|||
* Rename sync->backup and fix->restore. It seems to me a naming expressing
|
||||
better the meaning of the commands. But not yet sure.
|
||||
|
||||
* In the "interim" content file during sync, keep the full list of deleted
|
||||
files, to be able to restore in case they are put back in their original position.
|
||||
We use now the "hole/off" fields to represent this information, but we can define
|
||||
a new "deleted (just like file)/blk,inv,chg,new" keeping the hash.
|
||||
We must have all the "blk,inv,chg,new" options to be able to address delete file
|
||||
starting from an interim content.
|
||||
When recovering, the first try assuming updated parity, will ignore all the "deleted"
|
||||
entries. The second one, will use them.
|
||||
Possible problem is when a new file, overwrite part of the deleted ones.
|
||||
We have to keep in memory different block? Duplicate blocks should be allocated
|
||||
in a different way ?
|
||||
In case we can lose the hash of the deleted ones, because we need only the
|
||||
position in the disk. We use them only for recovering, so the block to be
|
||||
recovcered will be checked with its own hash.
|
||||
|
||||
* When fixing, before overwriting the present file, make a copy of it just in
|
||||
case that the original file cannot be completely recovered.
|
||||
We can always open files in read-only mode, if a write is required, we close it,
|
||||
|
|
|
|||
|
|
@ -375,6 +375,9 @@ the files were copied to a different disk, and it will resync
|
|||
them all. With this option, a file with the correct path,
|
||||
size and time is assumed identical at the previous one,
|
||||
and not resynched.
|
||||
Note that if you use this option, all the hard\(hylinks will be
|
||||
stored independently wasting space. So, if you use hard\(hylinks,
|
||||
it\(cqs better to don\(cqt use it.
|
||||
This option has effect only on the \(a"sync\(a" and \(a"diff\(a" commands.
|
||||
.TP
|
||||
.B \(hyZ, \(hy\(hyforce\(hyzero
|
||||
|
|
|
|||
|
|
@ -255,6 +255,9 @@ Options
|
|||
them all. With this option, a file with the correct path,
|
||||
size and time is assumed identical at the previous one,
|
||||
and not resynched.
|
||||
Note that if you use this option, all the hard-links will be
|
||||
stored independently wasting space. So, if you use hard-links,
|
||||
it's better to don't use it.
|
||||
This option has effect only on the "sync" and "diff" commands.
|
||||
|
||||
-Z, --force-zero
|
||||
|
|
|
|||
|
|
@ -284,6 +284,9 @@ SnapRAID provides the following options:
|
|||
them all. With this option, a file with the correct path,
|
||||
size and time is assumed identical at the previous one,
|
||||
and not resynched.
|
||||
Note that if you use this option, all the hard-links will be
|
||||
stored independently wasting space. So, if you use hard-links,
|
||||
it's better to don't use it.
|
||||
This option has effect only on the "sync" and "diff" commands.
|
||||
|
||||
-Z, --force-zero
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue