vfs_prealloc − preallocate matching files to a predetermined size


vfs objects = prealloc


This VFS module is part of the samba(7) suite.

The vfs_prealloc VFS module preallocates files to a specified size each time a new file is created. This is useful in environments where files are of a predetermined size will be written to a disk subsystem where extending file allocations is expensive.

This module is stackable.


prealloc:EXT = BYTES

Preallocate all files with the extension EXT to the size specified by BYTES.

The following suffixes may be applied to BYTES:

• K − BYTES is a number of kilobytes

• M − BYTES is a number of megabytes

• G − BYTES is a number of gigabytes


A process writes TIFF files to a Samba share, and the is known these files will almost always be around 4 megabytes (4194304 bytes):


path = /data/frames

vfs objects = prealloc

prealloc:tiff = 4M


vfs_prealloc is not supported on all platforms and filesystems. Currently only XFS filesystems on Linux and IRIX are supported.


This man page is correct for version 3.0.25 of the Samba suite.


The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.

More Linux Commands

gperf(1) - generate a perfect hash function from a key set
GNU gperf generates perfect hash functions. If a long option shows an argument as mandatory, then it is mandatory for the equivalent short option also. Output f

win_wchnstr(3ncurses) - get an array of complex characters a
These functions return an array of complex characters in wchstr, starting at the current cursor position in the named window. Attributes (rendition) are stored

erasechar(3ncurses) - curses environment query routines.....
The baudrate routine returns the output speed of the terminal. The number returned is in bits per second, for example 9600, and is an integer. The erasechar rou

wattroff(3ncurses) - curses character and window attribute c
These routines manipulate the current attributes of the named window. The current attributes of a window apply to all characters that are written into the windo

XStandardColormap(3) - allocate, set, or read a standard col
The XAllocStandardColormap function allocates and returns a pointer to a XStandardColormap structure. Note that all fields in the XStandardColormap structure ar

glGetTexGendv(3gl) - return texture coordinate generation pa
glGetTexGen returns in params selected parameters of a texture coordinate generation function that was specified using glTexGen. coord names one of the (s, t, r

time(1) - time a simple command or give resource usage......
The time command runs the specified program command with the given arguments. When command finishes, time writes a message to standard error giving timing stati

Carp(3pm) - alternative warn and die for modules (Man Page)
The Carp routines are useful in your own modules because they act like die() or warn(), but with a message which is more likely to be useful to a user of your m

perl587delta(1) - what is new for perl v5.8.7 (Man Page)....
This document describes differences between the 5.8.6 release and the 5.8.7 release. Incompatible Changes There are no changes incompatible with 5.8.6. Core Enh

UPower(7) - System-wide Power Management - Linux man page...
UPower provides an interface to enumerate power sources on the system and control system-wide power management. Any application can access the org.freedesktop.U

procinfo(8) - display system status gathered from /proc.....
procinfo gathers some system data from the /proc directory and prints it nicely formatted on the standard output device. The meanings of the fields are as follo

ksh(1ast) KornShell, a standard restricted command and progr
Ksh is a command and programming language that executes commands read from a terminal or a file. Rksh is a restricted version of the command interpreter ksh; it

We can't live, work or learn in freedom unless the software we use is free.