Jeroen van Wolffelaar <[EMAIL PROTECTED]> wrote: > I've done a bit more reading and googling, and I found statvfs(2): > > struct statvfs { > unsigned long f_bsize; /* file system block size */ > unsigned long f_frsize; /* fragment size */ > fsblkcnt_t f_blocks; /* size of fs in f_frsize units */ > fsblkcnt_t f_bfree; /* # free blocks */ > fsblkcnt_t f_bavail; /* # free blocks for non-root */ ... > So, since statfs seems deprecated, and statvfs more informative (it > actually carries the units in which free and total size of filesystems > is written), I think it would be useful for stat to support statvfs, > which provides a superset of the functionality of statfs(2).
Does stat's --file-system (-f) option do what you want? $ stat -f / File: "/" ID: 0 Namelen: 255 Type: ext2/ext3 Blocks: Total: 1032080 Free: 887328 Available: 834894 Size: 4096 Inodes: Total: 525312 Free: 490241 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]