mknodc(1)
NAME
mknodc - create file and allocate contiguous space to it
SYNOPSIS
mknodc [ −d ] [ −s alloc_size ] file ...
DESCRIPTION
The mknodc utility creates a file and allocates contiguous space to it. If file does not exist, it is created.
If file already exists, has a non-zero size and the −d option is specified, the file is truncated to zero size. If the −d option is not specified and the file initially has a non-zero size, a warning will be printed.
If alloc_size is specified, the file is extended to size alloc_size on a Contiguous Best Try basis. That is, space will be allocated with as few separate contiguous extents as possible. If more than one such extent is required, mknodc informs the user of the number of extents required.
The allocation size is rounded up to the file system’s block size (see stat(2)). The file size is updated to be the allocation size.
If an existing file is being extended and the existing file currently ends with a fragment, the fragment is extended to a block boundary before contiguous allocation begins. mknodc warns the user before extending such a file.
EXAMPLE
In this example a file is created with 3K bytes of contiguous disk space. Notice the use of the −d option. If the file already exists it will be truncated to zero size before any space is allocated to it.
mknodc -d -s 3072 contig_file
SEE ALSO
stat(2), fcntl(2)
The I/O Processing chapter of the CX/UX Programmer’s Guide.
CX/UX User’s Reference Manual