HPlogo HP-UX Reference Volume 2 of 5 > d

df_vxfs(1M)

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

NAME

df (vxfs) — report number of free disk blocks on a VxFS file system

SYNOPSIS

/usr/bin/df [-F vxfs] [-V] [-egiklnvtfb] [-o specific_options] [special | directory ...]

DESCRIPTION

The df command prints the number of free 512-byte blocks and free inodes available for file systems by examining the counts kept in the superblock or superblocks. If a special or a directory is not specified, the free space on all of the mounted file systems is printed. If the arguments to df are pathnames, df produces a report on the file system containing the named file. If the argument to df is a special, the file system can be an unmounted or mounted file system.

On a Version 1 or 2 disk, layout extents smaller than 8 Kbytes may not be usable for all types of allocation, so df does not count free blocks in extents below 8 Kbytes when reporting the total number of free blocks.

On a Version 2 or 3 disk layout, VxFS dynamically allocates inodes from the pool of free blocks, so the number of free inodes and blocks reported by df is an estimate based on the number of free extents and the current ratio of allocated inodes to allocated blocks. Allocating additional blocks may therefore decrease the count of free inodes, and vice versa.

Options

df recognizes the following options:

-b

Report only the number of kilobytes free.

-e

Report the number of files free.

-f

Report only an actual count of the blocks in the free list (free inodes are not reported). When this option is specified, df reports on raw devices.

-F vxfs

Specifies the file system type (vxfs).

-g

Report the entire statvfs(2) structure.

-i

Report the total number of inodes, the number of free inodes, number of used inodes and the percentage of inodes in use.

-k

Report the allocation in Kbytes.

-l

Report on local file systems only.

-n

Report the file system name. If invoked with no other options this option prints a list of mounted file system types.

-o specific_options

Specifies options specific to the vxfs file system type. specific_options is a list of suboptions and/or keyword/attribute pairs intended for the vxfs-specific module of the command.

The available option is

s

Print the number of free extents of each size. Free extents are always an integral power of 2 in length, ranging from a minimum of 1 block to the maximum extent size supported by the file system.

-t

Report the total allocated block figures and the number of free blocks.

-v

Report the percentage of blocks used, the number of blocks used and the number of blocks free. This option cannot be used with other options.

-V

Echo the completed command line, but performs no other action. The command line is generated by incorporating the user-specified options and other information derived from /etc/fstab. This option allows the user to verify the command line.

There are a number of options that specify output formats, some combinations of which are incompatible. If an incompatible combination is specified, one of the options will override the other(s).

EXAMPLES

Report the number of free disk blocks for all mounted file systems:

df

Report the number of free extents of each size, for all mounted VxFS file systems:

df -F vxfs -o s

Report the number of free files for all mounted VxFS file systems:

df -F vxfs -e

Report the total allocated block figures and the number of free blocks, for all mounted file systems:

df -t

Report the total allocated block figures and the number of free blocks, for the file system mounted as /usr:

df -t /usr

FILES

/dev/vg00/*

File-system devices.

/dev/dsk/*

File-system devices.

/etc/fstab

Static information about the file systems.

/etc/mnttab

mounted-file-system table.

STANDARDS CONFORMANCE

df : SVID2, XPG2, XPG3

© Hewlett-Packard Development Company, L.P.