sfdisk: inform about failed fsync() [coverity scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
7eb23d8435
commit
8e642aa0dc
|
@ -566,8 +566,9 @@ static int move_partition_data(struct sfdisk *sf, size_t partno, struct fdisk_pa
|
||||||
ioerr++;
|
ioerr++;
|
||||||
goto next;
|
goto next;
|
||||||
}
|
}
|
||||||
if (sf->movefsync)
|
if (sf->movefsync && fsync(fd) != 0)
|
||||||
fsync(fd);
|
fdisk_warn(sf->cxt,
|
||||||
|
_("cannot fsync at offset: %ju; continue"), dst);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* write log */
|
/* write log */
|
||||||
|
|
Loading…
Reference in New Issue