frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

New Tool: lsds – List All Linux Block Devices and Settings in One Place

https://tanelpoder.com/posts/lsds-list-linux-block-devices-and-their-config/
101•mfiguiere•8mo ago

Comments

DonHopkins•8mo ago
I always wanted the /dev/zero character device driver, which you can map into memory to clear it, or use as an infinite source of nulls, to use the minor node number as the value that got mapped into memory or produced, so you could make an infinite source of beeps with:

mknod /dev/seven c 1 7

I wonder what would happen if you made a /dev/seven device in your http servers public_html directory? Would it dutifully serve it up?

Better yet, support for utf-8 unicode, so you can make an infinite source of poo emojis.

The "Everything Is A File" philosophy should be taken to its logical conclusion.

dlt713705•8mo ago
Awesome! That actually inspired me to code this: https://codeberg.org/mco-system/pooper
don-code•8mo ago
I challenge anyone to find another place on the Internet where one person's joke is another person's kernel module.
tanelpoder•8mo ago
Astute observation, but also CrowdStrike would like a word :-)
xerxes901•8mo ago
Question: what actually reads /etc/pooper to configure the character? I can’t work out how that file’s contents ends up as module parameters and I’d love to know!
dlt713705•8mo ago
You are absolutely right, the /etc/pooper file was never loaded.

The code has been updated and now you can change the pooped char on the fly with something like :

`echo "<WHATEVER UTF-8 CHAR>" | sudo tee /sys/module/pooper/parameters/char_utf8`

/etc/pooper file and module unload/reload are no more needed :)

xerxes901•8mo ago
Thanks for clarifying, and implementing this essential feature!
DonHopkins•8mo ago
Finally somebody who gives a shit! Thank you for dropping that generous contribution.

Now I can use that device as an RSS feed! That puts the log into blog.

I haven't seen that much shit emerge from a wormhole since the Ed the Happy Clown episode of Yummy Fur comics:

https://everything2.com/node/1485685?bookmark_site=twitter&o...

>We now skip back in time a little, where we find Ronald Reagan before his mysterious transformation. He presides over an America that has no concept of toilets, and piles of feces on every street corner are becoming a serious problem. Fortunately, science can help; a farmer has stumbled across a small portal to another dimension. The solution is clear; push America's mounting shit through the portal via a huge funnel. The exit point for the portal is in fact the anus of the gentleman who couldn't stop shitting back in the prison in Ed's world; so there is at least a good scientific explanation for that little episode.

>During the official opening of the shit disposer, Reagan tragically falls into the giant collection of pending waste. His body blocks the funnel, but not before his head has gone through the portal; a headless president is recovered. A scientist heads though the portal on a rescue mission.

>(Now, I know what you're thinking, and I've no idea how Reagan's head became attached to the end of Ed's penis. It makes no sense, even within the logic of Ed's universe, and it's not explained. If you have any notions, please let me know - but for now, we'll just have to accept that somehow, it happened...)

The Chester Brown Interview:

https://www.tcj.com/the-chester-brown-interview/3/

Best NSFW Ronald Reagan Quote Ever:

https://the-comics-journal.sfo3.digitaloceanspaces.com/wp-co...

Support Indie Comics!

anonymousiam•8mo ago
Easy to get an infinite stream of bell codes with: yes ^V^G
bitbang•8mo ago
Very nice, needs option for json/jsonl output.
tanelpoder•8mo ago
Thanks! Yep I was thinking of doing that next, will be very easy as under the hood the data is stored in Python dictionaries.
appleaday1•8mo ago
can we package this for Arch? Arch Defense Taskforce where you at?
tanelpoder•8mo ago
I just added a little comment/errata regarding the NVME_QDEPTH column to the post (search for errata). I should probably rename that column to emphasize that (for now) it’s the Linux nvme module level max QD and not the hardware one (it’s complicated…)
nerflad•8mo ago
If you came to represent... https://wiki.archlinux.org/title/Creating_packages

Maintaining an AUR package can be great fun and an instructive glimpse into what FLOSS maintainers go through.

jayofdoom•8mo ago
I'll note, lsblk can return a heck of a lot more data than it does by default (and nvme drives show up there). lsblk -H will list for your system, and you can specify columns. You can also adjust output.

I guess with this in mind, I'm curious how this is different?

tanelpoder•8mo ago
Hi, yep lsblk targets a wider area of functionality, like showing mountpoints, device UUIDs, while lsds focuses only on block device settings.

Maybe the latest Linux versions have lsblk versions that support these columns, but in RHEL9 at least I don't see equivalents to lsds'es WBT_LAT, QDEPTH (not the same as lsblk's RQ-SIZE), WCACHE, FUA and some others. But these 4 are which I regularly need (especially when troubleshooting a yet another slow fsync() issue etc). I did and do use lsblk all the time too, but still end up catting and grepping various additional files and correlating the results, sometimes on systems with 100+ multipath block devices.

The other reason was that I wanted a tool that shows me where it gets these values too (for myself and sometimes for explaining stuff to others).

Edit: That being said, it shouldn't be hard at all to add the said extra fields to lsblk too.

strunz•8mo ago
Would be worth adding this as an FAQ on the page. Great job btw.

EDIT: Would also be really cool to define what each field means, if you're gonna reimplement everything anyways, why not make it as user friendly as possible.

tanelpoder•8mo ago
Thanks. Yep I have to revamp the whole 0x.tools webpage, right now it's a mix of older tools & prototypes and the "final stuff" and it's confusing what's what.

The lsds verbose option shows where in the Linux /sys fs each individual field comes from (lsds -lpv) so that's the ultimate source of what each field means. But I could pull each sysfs file's description from docs into a table on the webpage (I'm probably too lazy to create a manpage for now - help is appreciated)

Edit: Since there are not that many fields, it would be possible to add a -d option in addition to -v to get a human readable description for each field too. One of the main sources of confusion is the "queue_depth" vs. "nr_requests" fields. My ideal (which I usually don't reach) is to make these tools "explainable", so that they tell you from where they got their input data (and what basic math was applied).

jayofdoom•8mo ago
Thank you for the detailed response, even if I'm reading it late! This is exactly what I was trying to learn; what this tool exposed that lsblk is missing.
trillic•8mo ago
Rewrote most of the functionality in C as an exercise

https://gist.github.com/grahameger/2507019334f07036f84080a87...

Flying with Photons: Rendering Novel Views of Propagating Light

https://anaghmalik.com/FlyingWithPhotons/
1•pillars•3m ago•0 comments

The Paper 2

https://zenodo.org/records/18304357
1•KaoruAK•3m ago•0 comments

F-16 Falcon Strike, modern combat flight SIM for Atari XL/XE

https://webchrono.pl/F16FalconStrike/index.html
1•starkparker•4m ago•0 comments

Keeping 20k GPUs Healthy

https://modal.com/blog/gpu-health
1•aburan28•8m ago•0 comments

Show HN: Circe – Deterministic, offline-verifiable receipts for AI agent actions

https://github.com/wv26296-ux/circe-receipts
1•W_rey45•10m ago•1 comments

CoreSpeed: Agent Runtime Infrastructure

https://corespeed.io
1•handfuloflight•11m ago•0 comments

Open Reimplementation of Google Widevine Content Decryption Module for Browsers

https://github.com/tchebb/openwv
1•pabs3•13m ago•0 comments

Idiomatic Rust – A peer-reviewed collection of Rust articles/talks/repos

https://github.com/rust-lang-nursery/rust-cookbook
1•Brysonbw•13m ago•0 comments

Gary Marcus on the Problems Facing AI and LLM Scaling – The Real Eisman Playbook [video]

https://www.youtube.com/watch?v=aI7XknJJC5Q
1•nradov•13m ago•0 comments

Spotless-Keep your code spotless

https://github.com/diffplug/spotless
1•rammy1234•16m ago•0 comments

Show HN: Artificial Ivy in the Browser

https://da.nmcardle.com/grow
2•dnmc•16m ago•0 comments

Show HN: Foom.ist: When silicon surpasses human brainpower

https://foom.ist/
1•steffs•16m ago•0 comments

Hotcrp.com: Unauthorized document access at CCS 2026

https://hotcrp.com/news/2026/security-notice-202601
1•jiegec•18m ago•1 comments

The New York Stock Exchange Develops Tokenized Securities Platform

https://www.businesswire.com/news/home/20260119300589/en/The-New-York-Stock-Exchange-Develops-Tok...
3•serial_dev•23m ago•0 comments

Two thirds of the wheat is developed by CIMMYT

https://grist.org/food-and-agriculture/green-revolution-india-wheat-seeds-climate/
1•trojanalert•24m ago•2 comments

Firehound is a repository of App Store apps exposing data from users

https://9to5mac.com/2026/01/19/firehound-huge-repository-of-app-store-apps-exposing-data-from-mil...
2•mikehotel•28m ago•1 comments

Deliberate AI Use

https://www.joshribakoff.com/blog/deliberate-ai-use/
1•joshribakoff•39m ago•1 comments

Mario Bros. In CSS (No JavaScript)

https://codepen.io/t_afif/pen/JoKYwXO
3•qingcharles•40m ago•0 comments

LLMs Outperform Data Scientists (2025)

https://presentofcoding.substack.com/p/llms-already-outperform-data-scientists
1•pajtai•41m ago•0 comments

Show HN: PublisherLens – advertising platform intelligence and analytics

https://www.publisherlens.com/
1•SongDeYu•44m ago•1 comments

LogSentinel v3.9 – Ultra-Fast Enterprise Log Analyzer with Error Intelligence

https://gum.new/gum/cmkiotta6000t04l75xh0e0i9
1•Dev_Master•45m ago•1 comments

Show HN: Username Search – Free Username Checker and Generator

https://usernamesearch.io
1•SongDeYu•51m ago•0 comments

Built a Real Life Running Man Competition. Partner with Steve Will Do It?

https://runningman.live/
2•todaycompanies•51m ago•1 comments

Basis Universal v2

https://github.com/BinomialLLC/basis_universal
1•FrostKiwi•54m ago•1 comments

Hackers disrupt Iran state TV to support exiled crown prince

https://www.politico.com/news/2026/01/19/hackers-disrupt-iran-state-tv-to-support-exiled-crown-pr...
3•hentrep•54m ago•1 comments

NATS Console – Open-Source Web UI for Managing NATS JetStream

https://github.com/KLogicHQ/nats-console
1•makilan•54m ago•1 comments

Iran Death Toll Estimates

1•starkshift•55m ago•0 comments

Graphical Tricks in Classic Games

https://www.youtube.com/watch?v=w9dH7bfAznc
3•bane•1h ago•0 comments

DIY Paint Color Maker

https://old.reddit.com/r/Miniaturespainting/comments/1qgljpy/diy_paint_color_maker/
3•YeGoblynQueenne•1h ago•0 comments

How does a Mikrokator work [video]

https://www.youtube.com/watch?v=2zEeAzJq-CQ
2•o4c•1h ago•0 comments