aboutsummaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-19 21:15:40 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-19 21:15:40 +0100
commit13772226a13cf6a8cce30db841946d29c9952c9a (patch)
treed11ff6deca99985066831d444f1e8b9803c382f1 /mkfs
parent3497201ce66f35401bd02109c06c110671493ad8 (diff)
Disable gensquashfs directory scanning on Windows
- We can only pack directories and files anyway. - What file modes should we use? Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/dirscan.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mkfs/dirscan.c b/mkfs/dirscan.c
index 0a019ec..824fba5 100644
--- a/mkfs/dirscan.c
+++ b/mkfs/dirscan.c
@@ -121,6 +121,15 @@ fail:
}
#endif
+#ifdef _WIN32
+int fstree_from_dir(fstree_t *fs, const char *path, void *selinux_handle,
+ sqfs_xattr_writer_t *xwr, unsigned int flags)
+{
+ (void)fs; (void)path; (void)selinux_handle; (void)xwr; (void)flags;
+ fputs("Packing a directory is not supported on Windows.\n", stderr);
+ return -1;
+}
+#else
static int xattr_xcan_dfs(const char *path_prefix, void *selinux_handle,
sqfs_xattr_writer_t *xwr, unsigned int flags,
tree_node_t *node)
@@ -309,3 +318,4 @@ int fstree_from_dir(fstree_t *fs, const char *path, void *selinux_handle,
return 0;
}
+#endif