mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-30 20:06:56 -05:00
Restores the modification time of files in fixing.
This commit is contained in:
parent
e6b02b7d2d
commit
66e9c359fd
15 changed files with 226 additions and 67 deletions
7
elem.c
7
elem.c
|
|
@ -193,6 +193,13 @@ block_off_t block_file_pos(struct snapraid_block* block)
|
|||
return block - file->blockvec;
|
||||
}
|
||||
|
||||
int block_is_last(struct snapraid_block* block)
|
||||
{
|
||||
struct snapraid_file* file = block_file_get(block);
|
||||
|
||||
return block == file->blockvec + file->blockmax - 1;
|
||||
}
|
||||
|
||||
unsigned block_file_size(struct snapraid_block* block, unsigned block_size)
|
||||
{
|
||||
block_off_t pos = block_file_pos(block);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue