[lxc-devel] [lxc/master] Defines for container's file/directory names

Rachid-Koucha on Github lxc-bot at linuxcontainers.org
Thu Jun 20 15:59:47 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 448 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190620/296635b1/attachment.bin>
-------------- next part --------------
From 68e2ce556b73ef948c87183e14d02ec582d9dd66 Mon Sep 17 00:00:00 2001
From: Rachid Koucha <47061324+Rachid-Koucha at users.noreply.github.com>
Date: Thu, 20 Jun 2019 17:51:32 +0200
Subject: [PATCH] Defines for container's file/directory names

Gather the harcoded strings for container's specific file/directory names into one place.

Signed-off-by: Rachid Koucha <rachid.koucha at gmail.com>
---
 src/lxc/macro.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/lxc/macro.h b/src/lxc/macro.h
index 288f5a8e6f..9676c580d6 100644
--- a/src/lxc/macro.h
+++ b/src/lxc/macro.h
@@ -450,4 +450,11 @@ enum {
 		-1;                    \
 	})
 
+/* Container's specific file/directory names */
+#define LXC_CONFIG_FNAME      "config"
+#define LXC_PARTIAL_FNAME     "partial"
+#define LXC_ROOTFS_DNAME      "rootfs"
+#define LXC_TIMESTAMP_FNAME   "ts"
+#define LXC_COMMENT_FNAME     "comment"
+
 #endif /* __LXC_MACRO_H */


More information about the lxc-devel mailing list