mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-04 22:00:19 -05:00
Replace assertions with more informative messages
This commit is contained in:
parent
c065ad22d5
commit
9bd0f18439
2 changed files with 26 additions and 8 deletions
|
|
@ -915,12 +915,7 @@ void fs_deallocate(struct snapraid_disk* disk, block_off_t pos);
|
|||
/**
|
||||
* Get the block from the file position.
|
||||
*/
|
||||
static inline struct snapraid_block* fs_file2block_get(struct snapraid_file* file, block_off_t file_pos)
|
||||
{
|
||||
assert(file_pos < file->blockmax);
|
||||
|
||||
return &file->blockvec[file_pos];
|
||||
}
|
||||
struct snapraid_block* fs_file2block_get(struct snapraid_file* file, block_off_t file_pos);
|
||||
|
||||
/**
|
||||
* Like fs_file2par_get() but thread-safe.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue