Lennart Poettering on Nostr: …character devices. For example the size of a regular file you query with fstat(). ...
…character devices. For example the size of a regular file you query with fstat(). The size of of a block device you query with the BLKGETSIZE64 ioctl() and a character device generally has infinite size. What's more important though is that block devices operate in multiples of some block size, and you better respect that when doing IO on them. Regular files and character devices however operate byte-exact. And there's more.
Anyway, that's it for today.
Published at
2024-12-12 09:45:17Event JSON
{
"id": "b8b0ff71bbf6eb650daf7aa51830f0b68f39d91a6222c070d8752be993e5325c",
"pubkey": "1d95c32d9a9d95a54f98eb2eaa156f3d3a71dc49eca2c960b2b89962758f1cc0",
"created_at": 1733996717,
"kind": 1,
"tags": [
[
"e",
"c54b1b124976bbe2858ac768da3d521ff4144fb6fcd2c77e09e833b26b972f07",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.social/users/pid_eins/statuses/113639208850090764",
"activitypub"
]
],
"content": "…character devices. For example the size of a regular file you query with fstat(). The size of of a block device you query with the BLKGETSIZE64 ioctl() and a character device generally has infinite size. What's more important though is that block devices operate in multiples of some block size, and you better respect that when doing IO on them. Regular files and character devices however operate byte-exact. And there's more.\n\nAnyway, that's it for today.",
"sig": "168ee4d92d60684d999920a60d9d6be4177cc7931d879827dde8cb7d89c83e5e52c4185e9916d7158d3fc8c496653e9babecd442460d831f4c48291e3194c60d"
}