tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Issues with lseek(2) on a block device
On Sun, 25 Feb 2024 07:21:07 -0300
Crystal Kolipe <kolipe.c%exoticsilicon.com@localhost> wrote:
> In most cases, unless we are talking about a low-level disk utility, if
> userland code is trying to find out the size of a raw block device then it
> seems like a design error.
There are many valid reason why applications may want to work with
block or raw devices directly. A design error is to place artificial
barriers which stop people from doing useful things with those devices.
The whole idea of Unix was "everything is a file" and the sooner people
get rid of magic ioctls the better.
Home |
Main Index |
Thread Index |
Old Index