The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FreeBSD::FileSystem - Class representing a filesystem in a FreeBSD host

VERSION

version 0.107

SYNOPSIS

 my @fsystems = FreeBSD::FsStat::get_filesystems;
 for my $fs ( @fsystems ) {
   say $fs->mountpoint.' '.$fs->pct_avail
 }

DESCRIPTION

This class encapsulates a FreeBSD filesystem information.

METHODS

type

Returns string representation of the type of this filesystem

device

Returns the device corresponding to this filesystem.

mountpoint

Returns the directory where this filesystem is mounted.

blocksize

Returns the block size for this filesystem. Statfs(2) refers to this as the 'filesystem fragment size'.

iosize

Optimal transfer block size for this filesystem.

blocks

Returns the number of total data blocks in filesystem.

free_blocks

Returns the number of free blocks in filesystem.

avail_blocks

Returns the number of free blocks avail to non-superuser.

inodes

Returns the number of total file nodes in filesystem.

size

Returns the size of this filesystem in bytes.

free

Returns the number of free bytes in this filesystem.

avail

Returns the number of bytes in this filesystem which are available to a non-superuser.

pct_free

Percentage of filesystem size that is free.

pct_avail

Percentage of filesystem size that is available