On 22.09.2019 15:39, Christos Zoulas wrote: > In article <[email protected]>, > Christos Zoulas <[email protected]> wrote: >> In article <[email protected]>, >> Michael van Elst <[email protected]> wrote: >>> [email protected] (Christos Zoulas) writes: >>> >>>> I added that to df, but it needs root/operator in order to access the >>>> device node to get wedge info. I also wrote a patch to expose the >>>> wedge info via sysctl: >>> >>> Alternatives ? >>> >>> Expose via an enhanced statvfs() syscall. After all df is a user interface >>> for that syscall. It would at least allow in theory to return a copy >>> of the exact mount path. >> >> Yes, this is the first thing I thought. I will see how feasible it it. > > I've implemented this but the patch is fairly long (due to the 4 syscalls > that need to be versioned). Anyway it works, and once I get a successful > build I will post the pstch here. > > christos >
What's wrong with sysctl? It works nicely and this use-case is not performance sensitive.
signature.asc
Description: OpenPGP digital signature
