[Previous] [Contents] [Next]

vdir

Create virtual directories (QNX)

Syntax:

vdir [options]... &

Options:

-D
Dynamic (page allocator) mode. If you specify this option, vdir can return memory to the system when it's no longer in use.
-M
Memory allocator mode. This mode is marginally faster than dynamic mode. (-M is the default.)
-m n[KMG]
Maximum size of ramdisk. If you simply give a number (e.g.-m32768) without specifying Kilobytes, Megabytes, or Gigabytes, the size will be in bytes. (Default is no limit.)
-n
Name of virtual directory.

Description:

The vdir utility lets you create a "virtual" directory that exists entirely in RAM.

This small utility is especially useful, for example, with spool files or temporary data in a memory-restricted environment. In such cases, vdir can be used with the -D option in order to increase/decrease its size as necessary.


Note: Since vdir modifies the prefix tree, root privileges are necessary to use it.

Examples:

Create a virtual directory in "malloc" mode:

vdir &

Create a virtual directory named /tmp with a maximum size of 1 megabyte in dynamic mode:

vdir -D -m1M -n /tmp &

Caveats:

The vdir utility doesn't handle hard links or symbolic links.


[Previous] [Contents] [Next]