Re: [PATCH] util-linux: add minimal lsblk implementation

Denys Vlasenko via busybox <[email protected]>
Newsgroups gmane.linux.busybox
Message-ID <CAK1hOcNf6xM4EOL7-67iADJH6+TxdjX7E2oqtu_DSDNESgPJyw@mail.gmail.com>
On Fri, Jan 30, 2026 at 2:11 AM Denys Vlasenko <[email protected]> wrote:
> On Thu, Jan 29, 2026 at 10:12 PM Osama Abdelkader via busybox
> <[email protected]> wrote:
> >
> > On Thu, Dec 04, 2025 at 10:08:46PM +0100, Osama Abdelkader wrote:
> > > Add a simple lsblk utility that lists information about block devices.
> > > Reads from /sys/block to enumerate devices and displays their size,
> > > type, and mount point.
> > >
> > > Features:
> > > - Lists all block devices or specific devices
> > > - Shows device size in human-readable format (B, K, M, G, T, P)
> > > - Shows device type (disk, loop, rom, etc.)
> > > - Shows mount point if device is mounted
> > > - Sorts devices alphabetically
> > > - Minimal implementation (~2.5 kb)

I mostly rewrote it, and committed to git.
Please try it.
_______________________________________________
busybox mailing list
[email protected]
https://lists.busybox.net/mailman/listinfo/busybox
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.