statfs(2)/statvfs(2): meaning of f_blocks

statfs(2)/statvfs(2): meaning of f_blocks

Post by w » Wed, 04 Sep 1991 23:36:28



To be more specific:

This is a question about the data structure for the  statfs(2)
system call for  SVR3.2  or  MIPS RISC/OS 4.52B  and that for
statvfs(2)  for  SVR4.  All these structures contain a field

ulong   f_blocks;        /* total # of blocks on file system
                         in units of f_frsize */

For all systems I was able to check (see list above) this field
gives the number of  _data_  blocks, not the  _total_  number of
blocks of the file system.

* Is this behaviour correct?

* Is there a "portable" way to determine the total size of a file
  system?  Unfortunately such a field is missing in the  statfs /
  statvfs  data structures.

[Please reply by mail, I'll summarize if there is any interest.]

Thanks in advance,

Wolfgang

==================================================================
Name    : Wolfgang Denk
Company : PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Munich W-Germany.
UUCP    : ..[pyramid ;uunet!unido]!pcsbst!wd  (PYRAMID PREFERRED!!)

###################################################################
#  "UNIX was not designed to stop you from doing stupid things,   #
#   because that would  also stop you from doing clever things."  #
#   -- Doug Gwyn                                                  #
###################################################################

 
 
 

1. Win 95 app's on hpux; Using statfs or statvfs

Hi all!

I have downloaded a win95 library (twin-libraries from willows.com) in
order to allow users to run their win95-specific applications on our
hpux 10.20.
To install the libraries I need a utility named statfs or statvfs to be
present on our system. I do have some include files named statfs.h and
stavfs.h but I cannot run the commands or find them with find.

Should the programs statfs or statvfs exist on our system, i.e. do we
have a misconfiguration, or can I compile statfs.h to have access to
statfs?

--
Brian Elmegaard
Dept. of Energy Engineering, Technical University of Denmark

2. How to copy

3. Bug in either statvfs man page or <sys/statvfs.h>

4. "rsh" question

5. statvfs's f_frsize element...

6. fig2dev required for Xfig under solaris

7. statfs and reiserfs

8. JavaDesktop / Gnome on Ultra Solaris 10

9. How to find out filesystem type (differences with statvfs)

10. statfs

11. Shift BKL into ->statfs()

12. HELP! statfs error 116

13. strange behaviour with statfs() call, looking for advice