bproc_nodechroot

Name

bproc_nodechroot -- ask a slave daemon to perform a chroot

Synopsis

#include <sys/bproc.h>

int bproc_nodechroot( int node, char *path );

Description

bproc_nodechroot asks a slave daemon to perform a chroot. This chroot will change the root directory for all processes migrated to that slave from then on.

Return value

On success, zero is returned. On error, -1 is returned and errno is set appropriately.

Errors

EPERM

The calling process does not have permission to move to node. You must be the superuser to use bproc_nodechroot.

EINVAL

node is an invalid node number or node is down.

EBUSY

The BProc system is not running.