[Toybox] [PATCH] df: -a should even show mounts we couldn't stat.

enh enh at google.com
Fri Feb 12 17:37:29 PST 2021


In xgetmountlist(), keep track of whether we could stat or not, so we
can distinguish an actual device 0:0 from a failed stat/statvfs.

Also switch to FLAG() and capitalize POSIX.
---
 lib/lib.h         |  1 +
 lib/portability.c | 12 ++++-------
 toys/posix/df.c   | 55 ++++++++++++++++++++++++++++-------------------
 3 files changed, 38 insertions(+), 30 deletions(-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210212/412975fc/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-df-a-should-even-show-mounts-we-couldn-t-stat.patch
Type: text/x-patch
Size: 7733 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20210212/412975fc/attachment.bin>


More information about the Toybox mailing list