summaryrefslogtreecommitdiff
path: root/mkfs/mkfs.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-26 22:44:45 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-26 22:45:02 +0200
commitc42d8e4ead7c20d29bf3996a6a87db0b348f8692 (patch)
treed54116413fef92c4b542e9083e13eed2809c9278 /mkfs/mkfs.h
parent20a29fab6382850ac9912c1a44d2cd8101a64184 (diff)
gensquashfs: add option to simply pack an input directory
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs/mkfs.h')
-rw-r--r--mkfs/mkfs.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mkfs/mkfs.h b/mkfs/mkfs.h
index ca998ac..67dc994 100644
--- a/mkfs/mkfs.h
+++ b/mkfs/mkfs.h
@@ -9,6 +9,7 @@
#include "config.h"
#include "table.h"
+#include <assert.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
@@ -16,6 +17,12 @@
#include <fcntl.h>
#include <errno.h>
+typedef enum {
+ PACK_NONE,
+ PACK_FILE,
+ PACK_DIR,
+} E_PACK_MODE;
+
typedef struct {
unsigned int def_uid;
unsigned int def_gid;
@@ -30,6 +37,7 @@ typedef struct {
const char *outfile;
const char *selinux;
char *comp_extra;
+ E_PACK_MODE mode;
} options_t;
typedef struct {