CFLAGS+=-std=gnu89 -O2 -g -MMD -Wall \
-Wno-pointer-sign \
-fno-strict-aliasing \
- -I. -Iinclude -Ilibbcachefs \
+ -I. -Iinclude \
-D_FILE_OFFSET_BITS=64 \
-D_GNU_SOURCE \
-D_LGPL_SOURCE \
#include <string.h>
#include <sys/ioctl.h>
-#include "bcachefs_ioctl.h"
+#include "libbcachefs/bcachefs_ioctl.h"
#include "cmds.h"
int cmd_assemble(int argc, char *argv[])
#include "qcow2.h"
#include "tools-util.h"
-#include "bcachefs.h"
-#include "alloc.h"
-#include "btree_cache.h"
-#include "btree_iter.h"
-#include "buckets.h"
-#include "error.h"
-#include "journal.h"
-#include "super.h"
+#include "libbcachefs/bcachefs.h"
+#include "libbcachefs/alloc.h"
+#include "libbcachefs/btree_cache.h"
+#include "libbcachefs/btree_iter.h"
+#include "libbcachefs/buckets.h"
+#include "libbcachefs/error.h"
+#include "libbcachefs/journal.h"
+#include "libbcachefs/super.h"
static void dump_usage(void)
{
#include <sys/types.h>
#include <unistd.h>
-#include "bcachefs_ioctl.h"
+#include "libbcachefs/bcachefs_ioctl.h"
#include "cmds.h"
#include "libbcachefs.h"
-#include "opts.h"
+#include "libbcachefs/opts.h"
#include "tools-util.h"
/* This code belongs under show_fs */
#include "cmds.h"
#include "libbcachefs.h"
#include "crypto.h"
-#include "opts.h"
-#include "super-io.h"
-#include "util.h"
+#include "libbcachefs/opts.h"
+#include "libbcachefs/super-io.h"
+#include "libbcachefs/util.h"
#define OPTS \
t("bcachefs format - create a new bcachefs filesystem on one or more devices") \
#include "cmds.h"
-#include "error.h"
+#include "libbcachefs/error.h"
#include "libbcachefs.h"
-#include "super.h"
+#include "libbcachefs/super.h"
#include "tools-util.h"
static void usage(void)
#include <uuid/uuid.h>
#include "cmds.h"
-#include "checksum.h"
+#include "libbcachefs/checksum.h"
#include "crypto.h"
#include "libbcachefs.h"
-#include </usr/include/dirent.h>
+#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <getopt.h>
#include <linux/dcache.h>
#include <linux/generic-radix-tree.h>
#include <linux/xattr.h>
-#include "bcachefs.h"
-#include "btree_update.h"
-#include "buckets.h"
-#include "dirent.h"
-#include "fs.h"
-#include "inode.h"
-#include "io.h"
-#include "str_hash.h"
-#include "super.h"
-#include "xattr.h"
+#include "libbcachefs/bcachefs.h"
+#include "libbcachefs/btree_update.h"
+#include "libbcachefs/buckets.h"
+#include "libbcachefs/dirent.h"
+#include "libbcachefs/fs.h"
+#include "libbcachefs/inode.h"
+#include "libbcachefs/io.h"
+#include "libbcachefs/str_hash.h"
+#include "libbcachefs/super.h"
+#include "libbcachefs/xattr.h"
static char *dev_t_to_path(dev_t dev)
{
#include <uuid/uuid.h>
-#include "bcachefs_ioctl.h"
+#include "libbcachefs/bcachefs_ioctl.h"
#include "cmds.h"
int cmd_run(int argc, char *argv[])
#include <libscrypt.h>
#include <uuid/uuid.h>
-#include "checksum.h"
+#include "libbcachefs/checksum.h"
#include "crypto.h"
char *read_passphrase(const char *prompt)
#include <uuid/uuid.h>
-#include "bcachefs_format.h"
-#include "checksum.h"
+#include "libbcachefs/bcachefs_format.h"
+#include "libbcachefs/checksum.h"
#include "crypto.h"
#include "libbcachefs.h"
-#include "opts.h"
-#include "super-io.h"
+#include "libbcachefs/opts.h"
+#include "libbcachefs/super-io.h"
#define NSEC_PER_SEC 1000000000L
#include <linux/uuid.h>
#include <stdbool.h>
-#include "bcachefs_format.h"
+#include "libbcachefs/bcachefs_format.h"
#include "tools-util.h"
-#include "vstructs.h"
+#include "libbcachefs/vstructs.h"
struct format_opts {
char *label;
#include <blkid.h>
#include <uuid/uuid.h>
-#include "bcachefs_ioctl.h"
+#include "libbcachefs/bcachefs_ioctl.h"
#include "linux/sort.h"
#include "tools-util.h"
-#include "util.h"
+#include "libbcachefs/util.h"
void die(const char *fmt, ...)
{