Skip to content

Commit

Permalink
zynq7000-sdcard: add ext2 filesystem
Browse files Browse the repository at this point in the history
RTOS-630
  • Loading branch information
jmaksymowicz committed Nov 8, 2023
1 parent 986cbe7 commit 19bf57d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion storage/zynq7000-sdcard/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ include $(static-lib.mk)
NAME := zynq7000-sdcard
LOCAL_SRCS := sdstorage_dev.c sdstorage_srv.c
DEP_LIBS := libmbr libsdcard-zynq
LIBS := libstorage libcache libmtd libjffs2
LIBS := libstorage libcache libmtd libjffs2 libext2

include $(binary.mk)
7 changes: 7 additions & 0 deletions storage/zynq7000-sdcard/sdstorage_srv.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include <cache.h>
#include <storage/storage.h>
#include <libjffs2.h>
#include <libext2.h>

#include "sdstorage_dev.h"

Expand Down Expand Up @@ -324,6 +325,12 @@ int main(int argc, char *argv[])
exit(EXIT_FAILURE);
}

ret = storage_registerfs("ext2", libext2_storage_mount, libext2_storage_umount);
if (ret < 0) {
LOG_ERROR("failed to register ext2 filesystem, err: %d", ret);
exit(EXIT_FAILURE);
}

ret = sdstorage_runPresenceDetection();
if (ret < 0) {
LOG_ERROR("failed to start presence detection thread");
Expand Down

0 comments on commit 19bf57d

Please sign in to comment.