Menu

#139 dskPercentNode support for FreeBSD4

closed
None
5
2012-11-08
2002-08-27
No

Here's a patch (againt todays cvs) to add
dskPercentNode for (at least) FreeBSD.

Freebsd doesn't have a statvfs function or a f_favail
(free inodes avail to non-superuser)
structure member.

I've tried to make the patch generic so it _may_ work
on other platforms that also only have a statfs function.

(FreeBSD layout seems unusual - statfs struct is
defined in sys/mount.h)

I've read PORTING doc but this is my first attempt at
using autoconf tools and "system" programming so
forgive me if the patch is not 100%.
Any tips/feedback would be welcome.

All I can say it that it works for me on FreeBSD46 :-)

Hope this helps and thank you for providing such a
useful tool.

Donal

Discussion

  • Donal Diamond

    Donal Diamond - 2002-08-27

    dskPercentNode support for statfs only systems

     
  • Wes Hardaker

    Wes Hardaker - 2002-10-11

    Logged In: YES
    user_id=76242

    Man, I wish *everyone* read the PORTING file. Very nice job making a very
    clean patch. Thank you! Applied!

     

Log in to post a comment.