From a48340c335daba441c1f01a0cfce4d2ac6b2c9e1 Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Tue, 26 May 2009 15:08:36 +0200 Subject: mkfs.ubifs: use libubi to format UBI volume libubi is now used to format directly UBI volume. Typing mkfs.ubifs /dev/ubi0_0 is now possible. dtypes should be ok as they are taken from UBIFS code. Signed-off-by: Corentin Chary Signed-off-by: Artem Bityutskiy --- mkfs.ubifs/mkfs.ubifs.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mkfs.ubifs/mkfs.ubifs.h') diff --git a/mkfs.ubifs/mkfs.ubifs.h b/mkfs.ubifs/mkfs.ubifs.h index 6460bd5..16b34c7 100644 --- a/mkfs.ubifs/mkfs.ubifs.h +++ b/mkfs.ubifs/mkfs.ubifs.h @@ -46,7 +46,9 @@ #include #include #include +#include +#include "libubi.h" #include "crc32.h" #include "defs.h" #include "crc16.h" @@ -128,7 +130,7 @@ extern struct ubifs_info info_; struct hashtable_itr; -int write_leb(int lnum, int len, void *buf); +int write_leb(int lnum, int len, void *buf, int dtype); int parse_devtable(const char *tbl_file); struct path_htbl_element *devtbl_find_path(const char *path); struct name_htbl_element *devtbl_find_name(struct path_htbl_element *ph_elt, -- cgit v1.2.3