diff --git a/examples/smart/smart_main.c b/examples/smart/smart_main.c index 0504ec976..56df54d73 100644 --- a/examples/smart/smart_main.c +++ b/examples/smart/smart_main.c @@ -55,7 +55,8 @@ #include #include #include -#include + +#include "fsutils/mksmartfs.h" /**************************************************************************** * Pre-processor Definitions @@ -821,7 +822,7 @@ int smart_main(int argc, char *argv[]) /* Initialize to provide SMART on an MTD interface */ MTD_IOCTL(mtd, MTDIOC_BULKERASE, 0); - ret = smart_initialize(1, mtd); + ret = smart_initialize(1, mtd, "SmartTest"); if (ret < 0) { printf("ERROR: SMART initialization failed: %d\n", -ret); @@ -831,7 +832,11 @@ int smart_main(int argc, char *argv[]) /* Create a SMARTFS filesystem */ - (void)mksmartfs("/dev/smart1"); +#ifdef CONFIG_SMARTFS_MULTI_ROOT_DIRS + (void)mksmartfs("/dev/smart1", 1024, 1); +#else + (void)mksmartfs("/dev/smart1", 1024); +#endif /* Mount the file system */