mirror of
https://github.com/opnsense/src.git
synced 2026-04-26 00:27:08 -04:00
Don't resize again prior to writing. Resizing may not be idempotent
and no scheme adjusts the size after the format resized the image the first time.
This commit is contained in:
parent
aa04413540
commit
4537ca4ef6
1 changed files with 1 additions and 5 deletions
|
|
@ -78,14 +78,10 @@ format_selected(void)
|
|||
int
|
||||
format_write(int fd)
|
||||
{
|
||||
lba_t size;
|
||||
int error;
|
||||
|
||||
if (format == NULL)
|
||||
return (ENOSYS);
|
||||
size = image_get_size();
|
||||
error = format->resize(size);
|
||||
if (!error)
|
||||
error = format->write(fd);
|
||||
error = format->write(fd);
|
||||
return (error);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue