Re: [PATCH] seq_file: fix problem when seeking mid-record.

2019-08-06 Thread Andrew Morton
On Mon, 05 Aug 2019 14:26:08 +1000 NeilBrown wrote: > If you use lseek or similar (e.g. pread) to access > a location in a seq_file file that is within a record, > rather than at a record boundary, then the first read > will return the remainder of the record, and the second > read will return

[PATCH] seq_file: fix problem when seeking mid-record.

2019-08-04 Thread NeilBrown
If you use lseek or similar (e.g. pread) to access a location in a seq_file file that is within a record, rather than at a record boundary, then the first read will return the remainder of the record, and the second read will return the whole of that same record (instead of the next record). Whnn