Fix real_file_size calculation when PI is enabled
When PI is enabled, the extended LBA (lba_ext) should be used to calculate
real_file_size instead of lba_size. This ensures FIO can access the entire
device area correctly.
Signed-off by: Suho Son <suho.son@samsung.com>
return ret;
}
- f->real_file_size = data->lba_size * nlba;
+ if (data->lba_ext)
+ f->real_file_size = data->lba_ext * nlba;
+ else
+ f->real_file_size = data->lba_size * nlba;
fio_file_set_size_known(f);
FILE_SET_ENG_DATA(f, data);