Skip to content

Commit b9806de

Browse files
committed
exfatprogs: add exfat2img to dump a partition
Add exfat2img to dump metadata of an exFAT filesystem. It dump boot sector, FAT, bitmap, all metadata which can reach from root directory. exfat2img -o sda1.dump /dev/sda1 exfat2img -o - /dev/sda1 | bzip2 > sda1.dump.bz When restoring a partition from a dump image generated from stdout, exfat2img should be used like the following: bzip2 -dc sda1.dump.bz2 | exfat2img -o /dev/sdb1 - Signed-off-by: Hyunchul Lee <[email protected]>
1 parent a3da451 commit b9806de

File tree

6 files changed

+1102
-2
lines changed

6 files changed

+1102
-2
lines changed

Android.bp

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cc_library_headers {
99
"tune",
1010
"label",
1111
"dump",
12+
"exfat2img",
1213
],
1314
}
1415

Makefile.am

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@
22

33
ACLOCAL_AMFLAGS = -I m4
44

5-
SUBDIRS = lib mkfs fsck tune label dump
5+
SUBDIRS = lib mkfs fsck tune label dump exfat2img
66

77
# manpages
88
dist_man8_MANS = \
99
manpages/fsck.exfat.8 \
1010
manpages/tune.exfat.8 \
1111
manpages/mkfs.exfat.8 \
1212
manpages/exfatlabel.8 \
13-
manpages/dump.exfat.8
13+
manpages/dump.exfat.8 \
14+
manpages/exfat2img.8
1415

1516
# other stuff
1617
EXTRA_DIST = \
@@ -22,4 +23,5 @@ EXTRA_DIST = \
2223
fsck/Android.bp \
2324
label/Android.bp \
2425
dump/Android.bp \
26+
exfat2img/Android.bp \
2527
README.md

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ AC_CONFIG_FILES([
3232
tune/Makefile
3333
label/Makefile
3434
dump/Makefile
35+
exfat2img/Makefile
3536
])
3637

3738
AC_OUTPUT

exfat2img/Makefile.am

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AM_CFLAGS = -Wall -Wextra -include $(top_builddir)/config.h -I$(top_srcdir)/include -fno-common
2+
exfat2img_LDADD = $(top_builddir)/lib/libexfat.a
3+
4+
sbin_PROGRAMS = exfat2img
5+
6+
exfat2img_SOURCES = exfat2img.c

0 commit comments

Comments
 (0)