Rien que l'introduction donne une partie de la réponse :
Block devices are characterized by random access to data organized in fixed-size blocks. Examples of such devices are hard drives, CD-ROM drives, RAM disks, etc. The speed of block devices is generally much higher than the speed of character devices, and their performance is also important. This is why the Linux kernel handles differently these 2 types of devices (it uses a specialized API).
Working with block devices is therefore more complicated than working with character devices. Character devices have a single current position, while block devices must be able to move to any position in the device to provide random access to data. To simplify work with block devices, the Linux kernel provides an entire subsystem called the block I/O (or block layer) subsystem.
En théorie, la théorie et la pratique c'est pareil. En pratique c'est pas vrai.
# De la doc !
Posté par gUI (Mastodon) . En réponse au message Pourquoi mount (le syscall) n'accepte pas un fichier ordinaire. Évalué à 10.
La doc du kernel est une bonne source d'information générales :
https://linux-kernel-labs.github.io/refs/heads/master/labs/block_device_drivers.html
Rien que l'introduction donne une partie de la réponse :
En théorie, la théorie et la pratique c'est pareil. En pratique c'est pas vrai.