oweals/fstools.git
10 years agofix jffs2reset on ubifs overlay
Daniel Golle [Sat, 21 Jun 2014 20:07:26 +0000 (22:07 +0200)]
fix jffs2reset on ubifs overlay

change find_mount_point parameter to match either all or only
jffs2 and ubifs, which are typically used on embedded mtd devices.
For now, find_mount_point was used without the fstype parameter
except for a single occurance in jffs2reset. There it is desireable
to apply the same logic as previously hard-coded to jffs2 also in the
case of a ubifs overlay, so firstboot aka. factory-reset works as
expected.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 years agolibfstools: be more consistent with other existing code
Daniel Golle [Thu, 22 May 2014 12:32:17 +0000 (14:32 +0200)]
libfstools: be more consistent with other existing code

just cosmetics

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 years agosnapshot: add explicit cast to fix warning on x86_64 and switch to unsigned
Felix Fietkau [Mon, 2 Jun 2014 09:38:18 +0000 (11:38 +0200)]
snapshot: add explicit cast to fix warning on x86_64 and switch to unsigned

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agosnapshot: use cross-platform macros for fprintf on 64-bit values to fix build for...
Felix Fietkau [Sat, 31 May 2014 12:44:27 +0000 (14:44 +0200)]
snapshot: use cross-platform macros for fprintf on 64-bit values to fix build for 64 bit targets

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agolibfstools/ubi: some more clean-up
Daniel Golle [Wed, 21 May 2014 14:41:26 +0000 (16:41 +0200)]
libfstools/ubi: some more clean-up

10 years agoubi: fix false positive in volume_find
Daniel Golle [Wed, 21 May 2014 02:42:29 +0000 (04:42 +0200)]
ubi: fix false positive in volume_find

An off-by-one made the string compare check only the string
length and not the terminating \0 which lead to rootfs being
found as rootfs_data.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 years agocosmetic: fix indentation
Luka Perkov [Wed, 21 May 2014 00:12:04 +0000 (02:12 +0200)]
cosmetic: fix indentation

Signed-off-by: Luka Perkov <luka@openwrt.org>
10 years agolibubi-utils: export static library
Daniel Golle [Tue, 20 May 2014 00:43:51 +0000 (02:43 +0200)]
libubi-utils: export static library

uboot-envtools will use parts of libubi-utils in the near future
to allow native r/w support of ubi-volume backed environments.

Install libubi-utils.a as well as the headers needed so uboot-envtools
can link libubi-utils.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 years agoskip ubi volume detection if ubifs is not present (fall back to mtd in that case)
Felix Fietkau [Mon, 19 May 2014 21:02:56 +0000 (23:02 +0200)]
skip ubi volume detection if ubifs is not present (fall back to mtd in that case)

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 years agoadd ubi detach support, fix handling for kernel/rootfs ubi partitions
Felix Fietkau [Mon, 19 May 2014 20:30:43 +0000 (22:30 +0200)]
add ubi detach support, fix handling for kernel/rootfs ubi partitions

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agomatch full mtd partition names
Felix Fietkau [Mon, 19 May 2014 20:25:30 +0000 (22:25 +0200)]
match full mtd partition names

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agoubi: remove voltype left-over variable
daniel [Tue, 13 May 2014 04:41:46 +0000 (06:41 +0200)]
ubi: remove voltype left-over variable

10 years agosupport for ubifs overlay
daniel [Mon, 12 May 2014 19:19:11 +0000 (21:19 +0200)]
support for ubifs overlay

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
10 years agocosmetics
daniel [Mon, 7 Apr 2014 17:16:01 +0000 (19:16 +0200)]
cosmetics

fix and copy&paste mistake in an error message
images to flash to volumes are of type ubifs rather than ubi

10 years agoblock: detect /dev/ubiblock*
daniel [Mon, 12 May 2014 19:48:13 +0000 (21:48 +0200)]
block: detect /dev/ubiblock*

10 years agoset LD_LIBRARY_PATH when invoking block extroot from temporary overlay
Jo-Philipp Wich [Thu, 17 Apr 2014 17:56:31 +0000 (19:56 +0200)]
set LD_LIBRARY_PATH when invoking block extroot from temporary overlay

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
10 years agosplit snapshot tool properly
John Crispin [Mon, 7 Apr 2014 10:50:48 +0000 (11:50 +0100)]
split snapshot tool properly

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agojffs2mark did not check the return code properly
John Crispin [Mon, 7 Apr 2014 10:53:59 +0000 (11:53 +0100)]
jffs2mark did not check the return code properly

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agosplit fs-state back into seperate tools
John Crispin [Sun, 6 Apr 2014 02:16:05 +0000 (03:16 +0100)]
split fs-state back into seperate tools

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agoadd ubi flashing tool
John Crispin [Thu, 3 Apr 2014 17:14:51 +0000 (18:14 +0100)]
add ubi flashing tool

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agomove files around
John Crispin [Thu, 3 Apr 2014 17:38:18 +0000 (18:38 +0100)]
move files around

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agoadd gitignore
John Crispin [Thu, 3 Apr 2014 14:56:30 +0000 (15:56 +0100)]
add gitignore

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agovarious updates
John Crispin [Sun, 23 Mar 2014 10:25:25 +0000 (10:25 +0000)]
various updates

Signed-off-by: John Crispin <blogic@openwrt.org>
10 years agoinitial import of fs-tools package
John Crispin [Tue, 18 Feb 2014 00:55:53 +0000 (00:55 +0000)]
initial import of fs-tools package

Signed-off-by: John Crispin <blogic@openwrt.org>