blob: d79d3c980d1b2680388dc820b07ab8bf0105ec31 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* This source code is released into the public domain.
*/
#ifndef LFJAIL_JAIL_ZFS_HH
#define LFJAIL_JAIL_ZFS_HH
#include "config_string.hh"
#include "context.hh"
#include "jail.hh"
namespace lfjail::zfs {
extern config::string_option filesystem;
extern config::string_option mountpoint;
// Create ZFS filesystems for the given jail.
void create_for_jail(context const &ctx, jail const &);
// Destroy ZFS filesystems for the given jail.
void destroy_for_jail(context const &ctx, jail const &);
// Return the Unix path under which jails will be created.
// This is the mountpoint of the ZFS filesystem 'filesystem'.
std::string jail_root(context const &ctx);
} // namespace lfjail::zfs
#endif // LFJAIL_JAIL_ZFS_HH
|