.\" Automatically generated by Pod::Man 4.07 (Pod::Simple 3.32) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .if !\nF .nr F 0 .if \nF>0 \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} .\} .\" ======================================================================== .\" .IX Title "Filesys::DiskSpace 3pm" .TH Filesys::DiskSpace 3pm "2016-12-08" "perl v5.24.1" "User Contributed Perl Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" Filesys::DiskSpace \- Perl df .SH "SYNOPSIS" .IX Header "SYNOPSIS" .Vb 2 \& use Filesys::DiskSpace; \& ($fs_type, $fs_desc, $used, $avail, $fused, $favail) = df $dir; .Ve .SH "DESCRIPTION" .IX Header "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 \f(CW\*(C`syscall(SYS_statfs)\*(C'\fR and \f(CW\*(C`syscall(SYS_statvfs)\*(C'\fR in several ways. If all fails, it \f(CW\*(C`croak\*(C'\fRs. .SH "OPTIONS" .IX Header "OPTIONS" .ie n .IP "$fs_type" 4 .el .IP "\f(CW$fs_type\fR" 4 .IX Item "$fs_type" [number] type of the filesystem. .ie n .IP "$fs_desc" 4 .el .IP "\f(CW$fs_desc\fR" 4 .IX Item "$fs_desc" [string] description of this fs. .ie n .IP "$used" 4 .el .IP "\f(CW$used\fR" 4 .IX Item "$used" [number] size used (in Kb). .ie n .IP "$avail" 4 .el .IP "\f(CW$avail\fR" 4 .IX Item "$avail" [number] size available (in Kb). .ie n .IP "$ffree" 4 .el .IP "\f(CW$ffree\fR" 4 .IX Item "$ffree" [number] free inodes. .ie n .IP "$fused" 4 .el .IP "\f(CW$fused\fR" 4 .IX Item "$fused" [number] inodes used. .SH "Installation" .IX Header "Installation" See the \s-1INSTALL\s0 file. .SH "COPYRIGHT" .IX Header "COPYRIGHT" Copyright (c) 1996\-1999 Fabien Tassin. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. .SH "AUTHOR" .IX Header "AUTHOR" Fabien Tassin .SH "NOTES" .IX Header "NOTES" This module was formerly called File::Df. It has been renamed into Filesys::DiskSpace. It could have be Filesys::Df but unfortunatly another module created in the meantime uses this name. .PP Tested with Perl 5.003 under these systems : .PP .Vb 5 \& \- 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.*, 2.2.* .Ve .PP Note for HP-UX users : .PP .Vb 5 \& if you obtain this message : \& "Undefined subroutine &main::SYS_statfs called at Filesys/DiskSpace.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). .Ve