X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=direct%2Ftimothy_tests%2Fquick_tests%2Flib.c;h=50723c3e1e6efbb907f64e836757706e51479a4e;hp=bc004043d11b33b87006fbe941feac8e220ac166;hb=6648cbf52d6695755941ff8607fd7a0cda542e05;hpb=f1fdae08ffdfaa5d1a31b9c4303dc317fe95ded4 diff --git a/direct/timothy_tests/quick_tests/lib.c b/direct/timothy_tests/quick_tests/lib.c index bc00404..50723c3 100644 --- a/direct/timothy_tests/quick_tests/lib.c +++ b/direct/timothy_tests/quick_tests/lib.c @@ -1,7 +1,7 @@ /* * YAFFS: Yet another FFS. A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Timothy Manning @@ -34,6 +34,29 @@ int get_exit_on_error(void) } +int EROFS_setup(void) +{ + int output= -1; + output=yaffs_remount(YAFFS_MOUNT_POINT,1,1); + if (output<0){ + print_message("failed to remount yaffs\n",2); + return -1; + } + return 1; +} + +int EROFS_clean(void) +{ + int output=-1; + output= yaffs_remount(YAFFS_MOUNT_POINT,1,0); + if (output<0){ + print_message("failed to remount yaffs\n",2); + return -1; + } + return 1; +} + + int set_up_ELOOP(void){ int output1=1; int output2=1;