Path: utzoo!utgpu!news-server.csri.toronto.edu!dgp.toronto.edu!ckchee Newsgroups: comp.unix.xenix.sco From: ckchee@dgp.toronto.edu (Chuan Chee) Subject: capacity of a file partition Message-ID: <1990Sep22.002432.5687@jarvis.csri.toronto.edu> Organization: CSRI, University of Toronto Distribution: na Date: 22 Sep 90 04:24:32 GMT Lines: 14 Ok, the subject is no 100% correct. Here's my problem. Suppose you have several partitions in your hard disk (all Xenix partitions). From inside a C program, I'd like to find out what percentage is used. What I mean is the equivalent of "df -v" where it tells me that there is, for example, 75% usage. Yes I can calculate it is I knew how many i-nodes are allocated in the partition and how many i-nodes are unused. Thanks very much. If it matters, I'm using SCO Xenix 2.2.3. ...Chuan Chee ckchee@dgp.utoronto.ca ckchee@dgp.toronto.edu (internet) ckchee@dgp.utoronto (bitnet)