NAME

File::Df - Perl df

SYNOPSYS

use File::Df;
($fs_type, $fs_desc, $used, $avail, $fused, $favail) = df ($dir);

DESCRIPTION

This routine displays information on a file system such as its type, the amount of disk space occupied, the total disk space and the number of inodes. It Tries syscall(SYS_statfs) and syscall(SYS_statvfs) in several way. If all fails, it croaks.

OPTIONS

$fs_type

[number] type of the filesystem.

$fs_desc

[string] description of this fs.

$used

[number] size used (in Kb).

$avail

[number] size available (in Kb).

$ffree

[number] free inodes.

$fused

[number] inodes used.

Installation

See the INSTALL file.

COPYRIGHT

This module is copyright 1996, 1997 by Fabien TASSIN.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

AUTHOR

Fabien TASSIN <tassin@eerie.fr>

NOTES

Tested with Perl 5.003 under these systems :

- Solaris 2.[4/5]
- SunOS 4.1.[2/3/4]
- HP-UX 9.05, 10.[1/20] (see below)
- OSF1 3.2, 4.0
- Linux 2.0.*

Note for HP-UX users :

if you got this message :
"Undefined subroutine &main::SYS_statfs called at File/Df.pm line XXX"
and if you are using a hp9000s700, then edit the syscall.ph file
(in the Perl lib tree) and copy the line containing "SYS_statfs {196;}"
outside the "if (defined &__hp9000s800)" block (around line 356).