Monday, May 01, 2023

Re: [new] sysutils/lsblk

On Sun, 30 Apr 2023 20:58:07 +0200, Benjamin Stürz wrote:

> this my first time submitting a port to OpenBSD.
>
> DESCR: Clone of util-linux's lsblk(8) for OpenBSD.
>
> I have tested it on amd64 and it works with my SATA SSD and USB HDD.
> Please test it on your hardware and give me feedback.

Build and tests OK on current/amd64.

Output with a simple 40 GB disk (VirtualBox VM for OpenBSD-current) :

$ dmesg|grep wd
wd0 at pciide0 channel 0 drive 0: <VBOX HARDDISK>
wd0: 128-sector PIO, LBA, 40960MB, 83886080 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
root on wd0a (529caee212cb24a4.a) swap on wd0b dump on wd0b

$ doas lsblk
wd0 40G ESDI/IDE disk
wd0a 1.0G 4.2BSD /
wd0b 2.2G swap
wd0c 40G unused
wd0d 2.4G 4.2BSD /tmp
wd0e 3.9G 4.2BSD /var
wd0f 4.4G 4.2BSD /usr
wd0g 1.0G 4.2BSD /usr/X11R6
wd0h 5.4G 4.2BSD /usr/local
wd0i 1.8G 4.2BSD /usr/src
wd0j 6.0G 4.2BSD /usr/obj
wd0k 11G 4.2BSD /home

Thanks for this tool and OpenBSD port.

Laurent

No comments:

Post a Comment