Skip to contentSkip to conversation

btrfs addition to uboot

PATCH Superseded Adnan Ali 1 participant 2 messages Feb 15, 2013

Subsystems (3)
lore
Share & tools
lore

Adnan Ali

author
#0 lore raw

PATCH v3 1/1 btrfs addition to uboot

Adnan Ali (1):
Introduced btrfs file-system with btrload command

 Makefile                   |    1 +
 common/Makefile            |    1 +
 common/cmd_btr.c           |   53 +++
 fs/btrfs/Makefile          |   51 ++
 fs/btrfs/btrfs.c           | 1131 ++++++++++++++++++++++++++++++++++++++++++++
 fs/fs.c                    |   86 +++-
 include/btrfs.h            |  398 ++++++++++++++++
 include/config_fallbacks.h |    4 +
 include/crc32c.h           |   48 ++
 include/fs.h               |    1 +
 10 files changed, 1769 insertions(+), 5 deletions(-)
 create mode 100644 common/cmd_btr.c
 create mode 100644 fs/btrfs/Makefile
 create mode 100644 fs/btrfs/btrfs.c
 create mode 100644 include/btrfs.h
 create mode 100644 include/crc32c.h
Signature · 1 line
1.7.9.5
author
#1 lore raw

PATCH v3 1/1 Introduced btrfs file-system with btrload command

Introduces btrfs file-system to read file from volume/sub-volumes with btrload command. This implementation has read-only support.
This btrfs implementation is based on syslinux btrfs code, commit 269ebc845ebc8b46ef4b0be7fa0005c7fdb95b8d.

---
 Makefile                   |    1 +
 common/Makefile            |    1 +
 common/cmd_btr.c           |   53 +++
 fs/btrfs/Makefile          |   51 ++
 fs/btrfs/btrfs.c           | 1131 ++++++++++++++++++++++++++++++++++++++++++++
 fs/fs.c                    |   86 +++-
 include/btrfs.h            |  398 ++++++++++++++++
 include/config_fallbacks.h |    4 +
 include/crc32c.h           |   48 ++
 include/fs.h               |    1 +
 10 files changed, 1769 insertions(+), 5 deletions(-)
 create mode 100644 common/cmd_btr.c
 create mode 100644 fs/btrfs/Makefile
 create mode 100644 fs/btrfs/btrfs.c
 create mode 100644 include/btrfs.h
 create mode 100644 include/crc32c.h
Makefile +1 -0
index 3305e8c..cc35e7b 100644
@@ -261,6 +261,7 @@ endif
 LIBS-$(CONFIG_OF_EMBED) += dts/libdts.o
 LIBS-y += arch/$(ARCH)/lib/lib$(ARCH).o
 LIBS-y += fs/libfs.o \
+        fs/btrfs/libbtrfs.o \
 	fs/cbfs/libcbfs.o \
 	fs/cramfs/libcramfs.o \
 	fs/ext4/libext4fs.o \
common/Makefile +1 -0
index 54fcc81..093dd35 100644
@@ -73,6 +73,7 @@ COBJS-$(CONFIG_CMD_BEDBUG) += bedbug.o cmd_bedbug.o
 COBJS-$(CONFIG_CMD_BMP) += cmd_bmp.o
 COBJS-$(CONFIG_CMD_BOOTLDR) += cmd_bootldr.o
 COBJS-$(CONFIG_CMD_BOOTSTAGE) += cmd_bootstage.o
+COBJS-$(CONFIG_CMD_BTR) += cmd_btr.o
 COBJS-$(CONFIG_CMD_CACHE) += cmd_cache.o
 COBJS-$(CONFIG_CMD_CBFS) += cmd_cbfs.o
 COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o
common/cmd_btr.c new file +53 -0

53 lines not on this page · raw message

fs/btrfs/Makefile new file +51 -0

51 lines not on this page · raw message

fs/btrfs/btrfs.c new file +1131 -0

1,131 lines not on this page · raw message

fs/fs.c +81 -5

139 lines not on this page · raw message

include/btrfs.h new file +398 -0

398 lines not on this page · raw message

include/config_fallbacks.h +4 -0
index bfb9680..28a0a66 100644
@@ -26,4 +26,8 @@
 #define CONFIG_EXT4_WRITE
 #endif
 
+#if defined(CONFIG_CMD_BTR) && !defined(CONFIG_FS_BTR)
+#define CONFIG_FS_BTR
+#endif
+
 #endif	/* __CONFIG_FALLBACKS_H */
include/crc32c.h new file +48 -0

48 lines not on this page · raw message

include/fs.h +1 -0
index 4f30a38..3a0e7d4 100644
@@ -21,6 +21,7 @@
 #define FS_TYPE_ANY	0
 #define FS_TYPE_FAT	1
 #define FS_TYPE_EXT	2
+#define FS_TYPE_BTR	3
 
 /*
  * Tell the fs layer which block device an partition to use for future
Signature · 1 line
1.7.9.5