fio and zone support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Jens,

In __fill_io_u_zone() I found the following code (see also commit 224b3093cc21
("Fix zoning issue with seq-io and randommap issue")):

		/*
		 * Wrap from the beginning, if we exceed the file size
		 */
		if (f->file_offset >= f->real_file_size)
			f->file_offset = f->real_file_size - f->file_offset;

If f->file_offset > f->real_file_size then f->real_file_size - f->file_offset
will be negative and hence the above assignment will store a negative number
in f->file_offset. Is that what the above code is intended to do?

Thanks,

Bart.




��.n��������+%������w��{.n�������^n�r������&��z�ޗ�zf���h���~����������_��+v���)ߣ�

[Index of Archives]     [Linux Kernel]     [Linux SCSI]     [Linux IDE]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux