mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Fixes some error conditions reported by clang.
This commit is contained in:
parent
fceaa8a4cf
commit
0cffb46050
2 changed files with 3 additions and 3 deletions
2
parity.c
2
parity.c
|
|
@ -149,11 +149,11 @@ int parity_chsize(struct snapraid_parity* parity, data_off_t size, data_off_t* o
|
|||
const char* call;
|
||||
|
||||
#if HAVE_FALLOCATE
|
||||
call = "fallocate";
|
||||
if (!skip_fallocate) {
|
||||
/* allocate real space using the specific Linux fallocate() operation. */
|
||||
/* If the underline filesystem doesn't support it, this operation fails, */
|
||||
/* instead posix_fallocate() fallbacks to write the whole file. */
|
||||
call = "fallocate";
|
||||
ret = fallocate(parity->f, 0, 0, size);
|
||||
|
||||
/* fallocate() returns the error number as positive integer, */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue