p4 diskspace

Synopsis

Display disk space information on the server.

Syntax

p4 [g-opts] diskspace [P4ROOT|P4JOURNAL|P4LOG|TEMP|journalPrefix|depot]

Description

Shows summary information about the current availability of disk space on the server.

The output of p4 diskspace is in the form:

name (type type) : xxx GB free, yyy GB used, zzz GB total (ff % full)

Where name can be either P4ROOT, P4JOURNAL, P4LOG, TEMP, a prefix to a non-default Perforce journal file location, or the name of a Perforce depot. The filesystem type is that reported by the operating system.

If no arguments are specified, disk space information is displayed for all objects.

Options

depot

Report disk space available for filesystem holding the specified depot.

journalPrefix

Report disk space available for filesystem holding a non-standard journal location.

P4JOURNAL

Report disk space available for filesystem holding P4JOURNAL.

P4LOG

Report disk space available for filesystem holding P4LOG (server log).

P4ROOT

Report disk space available for filesystem holding P4ROOT.

TEMP

Report disk space available for filesystem holding temporary files. If not defined, uses P4ROOT on Windows, and /tmp on Unix.

g-opts

See “Global Options”.

Usage Notes

Can File Arguments Use Revision Specifier?

Can File Arguments Use Revision Range?

Minimal Access Level Required

N/A

N/A

super

  • By default, Perforce rejects commands when free space on the filesystems housing the P4ROOT, P4JOURNAL, P4LOG, or TEMP fall below 10 megabytes. To change this behavior, set the filesys.P4ROOT.min (and corresponding) configurables to your desired limits.

    If the user account that runs the Perforce versioning service is subject to disk quotas, the filesys.*.min configurables reflect those quotas, regardless of how much physical space actually remains on the filesystem(s) in question.

  • p4 df is an alias for p4 diskspace.

Related Commands

To configure Perforce's behavior when diskspace is low

p4 configure