Man pages sections > man8 > vdevmap

vdevmap - manages device mappings

VDEVMAP(8) System Administration VDEVMAP(8)

NAME

vdevmap - manages device mappings

SYNOPSIS

vdevmap --xid <xid> {--set|--unset} [--flags <flags>] [ --open] [--create]

DESCRIPTION

[--device <dev>] [--remap --target <dev>]
--flags <flags>
Set the specified flags
--open
Allow opening of the device
--create
If CAP_MKNOD is given, allow mknod(2)
--device <dev>
Device to apply the command to
--remap
Remap the device to the target
--target <dev>
Target for --remap
EXAMPLES
Remap /dev/hda1 to /dev/vroot1 for xid 42
vdevmap --xid 42 --set --open --device /dev/hda1 --target /dev/vroot1 --remap
Let xid 42 create all device nodes
vdevmap --xid 42 --set --open --create --target /dev/null vdevmap --xid 42 --set --open --create --target /dev/root
Let xid 43 create just /dev/null
vdevmap --xid 43 --set --open --create --device /dev/null
Please report bugs to vserver@list.linux-vserver.org
This program is part of util-vserver Copyright © 2006 Daniel Hokka Zakrisson This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty.
May 2013 vdevmap -- manages device mappings