prealloc man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

prealloc(1)							   prealloc(1)

NAME
       prealloc - preallocate disk storage

SYNOPSIS
       name size

DESCRIPTION
       preallocates  at	 least	size  bytes of disk space for an ordinary file
       name, creating the file if name does not already exist.	The  space  is
       allocated  in  an  implementation-dependent fashion for fast sequential
       reads and writes of the file.

       fails and no disk space is allocated if name already exists and is  not
       an ordinary file of zero length, if insufficient space is left on disk,
       or if size exceeds the maximum file size or the file size limit of  the
       process (see ulimit(2)).	 The file is zero-filled.

DIAGNOSTICS
       returns one of the following values upon completion:

	      0	      Successful completion.
	      1	      name  already exists and is not an ordinary file of zero
		      length.
	      2	      There is insufficient room on the disk.
	      3	      size exceeds file size limits.

EXAMPLES
       The following example preallocates 50000 bytes for the file

WARNINGS
       Allocation of file space is highly dependent on current disk usage.   A
       successful  return  does	 not indicate how fragmented the file actually
       might be if the disk is approaching its capacity.

AUTHOR
       was developed by HP.

SEE ALSO
       prealloc(2), ulimit(2).

								   prealloc(1)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net