bug#36291: od --skip-bytes reads everything from the very beginning

2019-06-19 Thread Paul Eggert
On 6/19/19 12:42 PM, Pádraig Brady wrote: Maybe we should relax the cases we do read() for, and try to seek in block/character special files, falling back to read() where that fails? Sure, that's easy enough. I installed the attached patch and am marking this bug report as done. From

bug#36291: od --skip-bytes reads everything from the very beginning

2019-06-19 Thread Pádraig Brady
On 19/06/19 09:20, Szőts Ákos wrote: > Dear List members, > > I've recently discovered that od "--skip-bytes" feature doesn't > actually seek into the file but rather it reads everything from the > very beginning until the given offset is reached. > > This can be problematic in two cases: > -

bug#36291: od --skip-bytes reads everything from the very beginning

2019-06-19 Thread Szőts Ákos
Dear List members, I've recently discovered that od "--skip-bytes" feature doesn't actually seek into the file but rather it reads everything from the very beginning until the given offset is reached. This can be problematic in two cases: - when speed matters, and - when parts of the file is