*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> prealloc (1)              
Title
Content
Arch
Section
 

Contents


 prealloc(1)                                                     prealloc(1)




 NAME    [Toc]    [Back]
      prealloc - preallocate disk storage

 SYNOPSIS    [Toc]    [Back]
      prealloc name size

 DESCRIPTION    [Toc]    [Back]
      prealloc 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.

      prealloc 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    [Toc]    [Back]
      prealloc 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    [Toc]    [Back]
      The following example preallocates 50000 bytes for the file myfile:

           prealloc myfile 50000

 WARNINGS    [Toc]    [Back]
      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    [Toc]    [Back]
      prealloc was developed by HP.

 SEE ALSO    [Toc]    [Back]
      prealloc(2), ulimit(2).


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
prealloc HP-UX preallocate fast disk storage
disk_destroy FreeBSD Kernel disk storage API
disk FreeBSD Kernel disk storage API
disk_create FreeBSD Kernel disk storage API
voldisksetup Tru64 Sets up a disk for use with the Logical Storage Manager (LSM)
voldg Tru64 Manages Logical Storage Manager disk groups
radisk Tru64 Digital Storage Architecture (DSA) disk maintenance program
lsmsetup Tru64 Initializes Logical Storage Manager (LSM) by creating the rootdg disk group
volsetup Tru64 Initializes Logical Storage Manager (LSM) by creating the rootdg disk group
preallocColors IRIX preallocate colors to minimize desktop colormap flashing
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service