Unix and Linux Discussions Tagged with disk space |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
10 |
3,635 |
Solaris |
|
|
|
4 |
1,855 |
Solaris |
|
|
|
4 |
9,539 |
Solaris |
|
|
|
4 |
10,995 |
Filesystems, Disks and Memory |
|
|
|
4 |
23,587 |
AIX |
|
|
|
3 |
7,082 |
Filesystems, Disks and Memory |
|
|
|
0 |
1,921 |
UNIX and Linux RSS News |
|
|
|
4 |
28,283 |
AIX |
|
|
|
3 |
6,045 |
Shell Programming and Scripting |
|
|
|
2 |
6,591 |
Filesystems, Disks and Memory |
|
|
|
4 |
75,328 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
2,894 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,034 |
Programming |
|
|
|
4 |
5,127 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
6,044 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
15,654 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
2,932 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,999 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
5,033 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,935 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,892 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,396 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
34,939 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
19,074 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,651 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,573 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,826 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,547 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
10,925 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
5,550 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
86,610 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,171 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
13,223 |
UNIX for Dummies Questions & Answers |
prealloc(1) General Commands Manual 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)