diff options
author | Corentin Chary <corentincj@iksaif.net> | 2009-05-26 15:08:36 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2009-05-27 17:01:00 +0300 |
commit | a48340c335daba441c1f01a0cfce4d2ac6b2c9e1 (patch) | |
tree | f93104f64d9f20befbd2d76e6da193b5cbda0116 /mkfs.ubifs/mkfs.ubifs.h | |
parent | 7c5cb0d07c0cb9c08285027fe08d86a863b0df7d (diff) |
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 <corentincj@iksaif.net>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'mkfs.ubifs/mkfs.ubifs.h')
-rw-r--r-- | mkfs.ubifs/mkfs.ubifs.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 <libgen.h> #include <ctype.h> #include <uuid/uuid.h> +#include <sys/file.h> +#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, |