make_ext4: Add strict prototypes. Removes some undefined behavior. Signed-off by: Rosen Penev <rosenp@gmail.com>
Allow creating empty filesystem images Support creating empty filesystem images by making the source directory argument optional. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
make_ext4fs: explicitly call setlocale() before creating image The alphasort(3) function, which is used as comparison function for scandir(3) is locale dependent (at least in glibc, in which it defers to strcoll(3)). This patch explicitly calls setlocale(3), setting the locale to "C". Currently, there are no other calls to setlocale(), so this does not change the behaviour. However, we'd like to be sure that in the future no-one will break that. Signed-off-by: Wojtek Porczyk <woju@invisiblethingslab.com>
Remove unused function Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Allow specifying reserved blocks percentage Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove unused mountpoint support Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove unused functions Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove MinGW support code Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove dead selinux code Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Fix fs configuration support Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove Android specific code paths Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove references to O_BINARY Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Implement support for block and char dev nodes, fifos and sockets. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Remove selinux support code Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Import make_ext4fs sources Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>