bug#29259: tail does not seek to the end of block device

2018-10-29 Thread Assaf Gordon
tags 29259 fixed close 29259 stop (triaging old bugs) Pushed here: tail: seek to the end of block devices https://git.savannah.gnu.org/cgit/coreutils.git/commit/?id=31dd7a0de272affa1120ba1fbc7db3445c548aa5 so closing as "fixed". -assaf

bug#29259: tail does not seek to the end of block device

2017-11-13 Thread Jim Meyering
On Mon, Nov 13, 2017 at 12:03 AM, Pádraig Brady wrote: > On 12/11/17 22:21, Pádraig Brady wrote: >> On 12/11/17 21:52, Paul Eggert wrote: >>> Why doesn't lseek work for this? >> >> Good call, it probably would. >> Something like the following is more acceptable >> since it adds very little complex

bug#29259: tail does not seek to the end of block device

2017-11-13 Thread Pádraig Brady
On 12/11/17 22:21, Pádraig Brady wrote: > On 12/11/17 21:52, Paul Eggert wrote: >> Why doesn't lseek work for this? > > Good call, it probably would. > Something like the following is more acceptable > since it adds very little complexity: Full patch attached with tests. cheers, Pádraig >From 6

bug#29259: tail does not seek to the end of block device

2017-11-12 Thread Pádraig Brady
On 12/11/17 21:52, Paul Eggert wrote: > Why doesn't lseek work for this? Good call, it probably would. Something like the following is more acceptable since it adds very little complexity: diff --git a/src/tail.c b/src/tail.c index 1c7418d..a10470b 100644 --- a/src/tail.c +++ b/src/tail.c @@ -184

bug#29259: tail does not seek to the end of block device

2017-11-12 Thread Paul Eggert
Why doesn't lseek work for this?

bug#29259: tail does not seek to the end of block device

2017-11-12 Thread Pádraig Brady
On 11/11/17 12:08, David Durham wrote: > sudo tail -c 1024 /dev/sda2 | hd the entire /dev/sda2 device rather than > seeking to the end. This takes a very long time with large disks. Deltik > gives a nice explanation here - > https://superuser.com/questions/1267402/how-do-i-tail-a-block-device-in-l

bug#29259: tail does not seek to the end of block device

2017-11-11 Thread David Durham
sudo tail -c 1024 /dev/sda2 | hd the entire /dev/sda2 device rather than seeking to the end. This takes a very long time with large disks. Deltik gives a nice explanation here - https://superuser.com/questions/1267402/how-do-i-tail-a-block-device-in-linux - of how ioctl can be used to obtain the s