ublk: expose ublk device info in sysfs or support ioctls on ublk-control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

It would be great if there was a sysfs file which exposed "struct
ublksrv_ctrl_dev_info" so programs written in languages without
io_uring libraries (such as python) could easily read this information
for management, testing, or record keeping. Ideally if possible this
could be something like "/sys/block/ublkbX/ublk_info". Is this
possible?

Alternatively, the "/dev/ublk-control" file could support ioctls which
mimic the io_uring cmds such as UBLK_CMD_GET_DEV_INFO,
UBLK_CMD_ADD_DEV, etc. This would be more powerful as the block device
lifecycle management program could be completely independent of both
io_uring and the program which handles the block IO. However I'm
skeptical it's worth it in the long run to create a ioctl -> io_uring
adapter. (As opposed to languages natively supporting io_uring)

Thank you,
-Matthew Broomfield




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux