License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
<literal>NOTICE</literal>, <literal>INFO</literal>,
<literal>DEBUG</literal>.
-->
- ログの優先度を <replaceable>LEVEL</replaceable> に設定します.デフォルトの優先度は <literal>ERROR</literal> です.以下の値を設定可能です:
+ ログの優先度を <replaceable>LEVEL</replaceable> に設定します.デフォルトの優先度は <literal>ERROR</literal> です.以下の値を設定可能です:
<literal>FATAL</literal>, <literal>CRIT</literal>,
<literal>WARN</literal>, <literal>ERROR</literal>,
<literal>NOTICE</literal>, <literal>INFO</literal>,
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
The option 'btrfs' need not be specified as it will be used
automatically if the <filename>@LXCPATH@</filename> filesystem is found to
be btrfs. If backingstore is 'lvm', then an lvm block device will be
- used and the following further options are available:
+ used and the following further options are available:
<replaceable>--lvname lvname1</replaceable> will create an LV
named <filename>lvname1</filename> rather than the default, which
is the container name. <replaceable>--vgname vgname1</replaceable>
<replaceable>--fstype FSTYPE</replaceable> will create an FSTYPE
filesystem on the LV, rather than the default, which is ext4.
<replaceable>--fssize SIZE</replaceable> will create a LV (and
- filesystem) of size SIZE rather than the default, which is 1G.
+ filesystem) of size SIZE rather than the default, which is 1G.
-->
<replaceable>backingstore</replaceable> には 'none' か 'dir' か 'lvm' か 'btrfs' のいずれかを指定します.デフォルトは 'none' で,コンテナのルートファイルシステムが <filename>@LXCPATH@/container/rootfs</filename> 以下のディレクトリであることを意味します.
'dir' は 'none' と同じ意味ですが,オプションとして <replaceable>--dir ROOTFS</replaceable> を指定することも可能です.このオプションは,デフォルトの代わりに特定のパス以下にコンテナの rootfs を置くということになります.
メッセージの通り,コンテナを作成しようとしたけれども,同じ名前のコンテナが存在しています.<command>lxc-ls -l</command> コマンドを使って,システム上に存在する利用可能なコンテナのリストが表示できます.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
</variablelist>
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
破壊するために指定したコンテナが見つかりません.おそらくそのコンテナが存在しないのか,既に破壊された後なのでしょう.<command>lxc-ls -l</command> コマンドを使って,システム上に存在するコンテナのリストを得ることができます.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
</variablelist>
-
<!--
(C) Copyright Canonical Ltd. 2013
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
<refsect1>
<title>See Also</title>
- <simpara>
+ <simpara>
<citerefentry>
<refentrytitle>ls</refentrytitle>
<manvolnum>1</manvolnum>
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
<!--
specify the container <replaceable>NAME</replaceable>
to limit the output to the processes belonging
- to this container name.
+ to this container name.
-->
<replaceable>name</replaceable> で指定したコンテナに属するプロセスのみ出力する.
</para>
<listitem>
<para>
<!--
- limit the output to the processes belonging
+ limit the output to the processes belonging
to all lxc containers.
-->
全ての lxc コンテナに属するプロセスを出力する.
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-->
ネットワークに対して行うアクションを指定します.
</para>
-
+
<para>
<!--
<option>up:</option> activates the interface.
<option>macvlan</option> network types.
-->
コンテナでゲートウェイとして使う IPv6 アドレスを指定します.アドレスは x::y というフォーマットです.例えば,2003:db8:1:0::1.
-
+
<option>auto</option> という特別な値を記述する事も可能です.これは (<option>lxc.network.link</option> で指定した) ブリッジインターフェースの最初のアドレスを使用し,それをゲートウェイに使うという意味になります.<option>auto</option> はネットワークタイプとして <option>veth</option> と <option>macvlan</option> を指定している時だけ有効となります.
</para>
</listitem>
-<!--
+<!--
lxc: linux Container library
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-Translated into Japanese
+Translated into Japanese
by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
tab1 = strchr(line, '\t');
if (!tab1)
- continue;
+ continue;
*tab1++ = '\0';
tab2 = strchr(tab1, '\t');
if (!tab2)
colon1 = strchr(line, ':');
if (!colon1)
- continue;
+ continue;
*colon1++ = '\0';
colon2 = strchr(colon1, ':');
if (!colon2)
* 1: parent id
* 2: device major:minor
* 3: mount prefix
- * 4: mount point
+ * 4: mount point
* 5: per-mount options
* [optional X]: additional data
* X+7: "-"
if (!info)
return NULL;
if (info->designated_mount_point) {
- mp = info->designated_mount_point;
+ mp = info->designated_mount_point;
} else {
mp = lxc_cgroup_find_mount_point(info->hierarchy, info->cgroup_path, true);
if (!mp)
if (!info)
return NULL;
if (info->designated_mount_point) {
- mp = info->designated_mount_point;
+ mp = info->designated_mount_point;
} else {
mp = lxc_cgroup_find_mount_point(info->hierarchy, info->cgroup_path, true);
if (!mp)
* will be returned
* @name : name of container to connect to
* @lxcpath : the lxcpath in which the container is running
- *
+ *
* This is the exported function, which determines cgpath from the
* lxc-start of the @name container running in @lxcpath.
*
}
if (info->designated_mount_point) {
- mp = info->designated_mount_point;
+ mp = info->designated_mount_point;
} else {
mp = lxc_cgroup_find_mount_point(info->hierarchy, info->cgroup_path, false);
if (!mp)
colon1 = strchr(line, ':');
if (!colon1)
- continue;
+ continue;
*colon1++ = '\0';
colon2 = strchr(colon1, ':');
if (!colon2)
char *token, *str, *saveptr = NULL;
char **result = NULL;
size_t result_capacity = 0;
- size_t result_count = 0;
+ size_t result_count = 0;
int saved_errno;
int r;
len = strlen(mp->mount_point) + strlen(path) + (suffix ? strlen(suffix) : 0);
buf = calloc(len + 1, 1);
rv = snprintf(buf, len + 1, "%s%s%s", mp->mount_point, path, suffix ? suffix : "");
- if (rv > len) {
+ if (rv > len) {
free(buf);
errno = ENOMEM;
- return NULL;
+ return NULL;
}
return buf;
{
char *path;
FILE *devices_list;
- char *line = NULL;
+ char *line = NULL;
size_t sz = 0;
bool ret = !for_allow;
const char *parts[3] = {
goto out;
} else if (for_allow && strcmp(line, v) == 0) {
ret = true;
- goto out;
+ goto out;
}
}
DIR *d;
struct dirent *dent_buf;
struct dirent *dent;
- ssize_t name_max;
+ ssize_t name_max;
int n = 0, r;
/* see man readdir_r(3) */
return n;
}
-int count_lines(const char *fn)
+int count_lines(const char *fn)
{
FILE *f;
char *line = NULL;
* will be returned
* @name : name of container to connect to
* @lxcpath : the lxcpath in which the container is running
- *
+ *
* This is the exported function, which determines cgpath from the
* lxc-start of the @name container running in @lxcpath.
*
if (req->datalen < 1)
return -1;
-
+
path = lxc_cgroup_get_hierarchy_path_handler(req->data, handler);
if (!path)
return -1;