summaryrefslogtreecommitdiff
path: root/include/btrfs.h
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2017-09-03 15:00:29 (GMT)
committerTom Rini <trini@konsulko.com>2017-10-03 01:52:18 (GMT)
commit0c936ee3194ac5b533a18fcd08e5d285853af5fe (patch)
tree8ddff8ab0988890b3672c6fe3bfa5a5e89318945 /include/btrfs.h
parent21a14facb1494592c3ad4874c6a00539d15a29cf (diff)
downloadu-boot-0c936ee3194ac5b533a18fcd08e5d285853af5fe.tar.xz
fs: btrfs: Add U-Boot fs handlers.
Signed-off-by: Marek Behun <marek.behun@nic.cz> create mode 100644 fs/btrfs/Kconfig create mode 100644 fs/btrfs/Makefile create mode 100644 fs/btrfs/btrfs.c create mode 100644 include/btrfs.h
Diffstat (limited to 'include/btrfs.h')
-rw-r--r--include/btrfs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/btrfs.h b/include/btrfs.h
new file mode 100644
index 0000000..7390975
--- /dev/null
+++ b/include/btrfs.h
@@ -0,0 +1,21 @@
+/*
+ * BTRFS filesystem implementation for U-Boot
+ *
+ * 2017 Marek Behun, CZ.NIC, marek.behun@nic.cz
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __U_BOOT_BTRFS_H__
+#define __U_BOOT_BTRFS_H__
+
+int btrfs_probe(struct blk_desc *, disk_partition_t *);
+int btrfs_ls(const char *);
+int btrfs_exists(const char *);
+int btrfs_size(const char *, loff_t *);
+int btrfs_read(const char *, void *, loff_t, loff_t, loff_t *);
+void btrfs_close(void);
+int btrfs_uuid(char *);
+void btrfs_list_subvols(void);
+
+#endif /* __U_BOOT_BTRFS_H__ */