[Toybox] [PATCH] blkdiscard (for review)

Patrick Oppenlander patrick.oppenlander at gmail.com
Wed Apr 8 22:54:58 PDT 2020


Hi Rob,

I needed blkdiscard for an embedded job so had a go at putting it together.

Length & offset parsing don't match util-linux where MB, GB are powers
of 1000 and M, MiB, G, GiB are powers of 1024.

I didn't use xioctl to avoid leaking fd if CFG_TOYBOX_FREE is set. Is
there a better solution to this?

Hope you find this helpful,

Patrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-blkdiscard-new-command.patch
Type: text/x-patch
Size: 2598 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20200409/6a6b1547/attachment-0002.bin>


More information about the Toybox mailing list