+++ /dev/null
-# Makefile for YAFFS direct stress tests
-#
-#
-# YAFFS: Yet another Flash File System. A NAND-flash specific file system.
-#
-# Copyright (C) 2003-2010 Aleph One Ltd.
-#
-#
-# Created by Charles Manning <charles@aleph1.co.uk>
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License version 2 as
-# published by the Free Software Foundation.
-#
-# NB Warning this Makefile does not include header dependencies.
-#
-# $Id: Makefile,v 1.7 2010-02-25 22:34:47 charles Exp $
-
-#EXTRA_COMPILE_FLAGS = -DYAFFS_IGNORE_TAGS_ECC
-
-CFLAGS = -DCONFIG_YAFFS_DIRECT -DCONFIG_YAFFS_SHORT_NAMES_IN_RAM -DCONFIG_YAFFS_YAFFS2
-CFLAGS += -DCONFIG_YAFFS_PROVIDE_DEFS -DCONFIG_YAFFSFS_PROVIDE_VALUES
-CFLAGS += -Wall -g $(EXTRA_COMPILE_FLAGS) -Wstrict-aliasing
-#CFLAGS += -fno-strict-aliasing
-CFLAGS += -O0
-CFLAGS += -Wextra -Wpointer-arith
-#CFLAGS += -DCONFIG_YAFFS_VALGRIND_TEST
-
-#CFLAGS+= -Wshadow -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations
-#CFLAGS+= -Wmissing-prototypes -Wredundant-decls -Wnested-externs -Winline
-
-
-COMMONTESTOBJS = yaffscfg2k.o yaffs_ecc.o yaffs_fileem.o yaffs_fileem2k.o yaffsfs.o yaffs_guts.o \
- yaffs_packedtags1.o yaffs_ramdisk.o yaffs_ramem2k.o \
- yaffs_tagscompat.o yaffs_packedtags2.o yaffs_tagsvalidity.o yaffs_nand.o \
- yaffs_checkptrw.o yaffs_qsort.o\
- yaffs_nameval.o \
- yaffs_norif1.o ynorsim.o \
- yaffs_allocator.o \
- yaffs_bitmap.o \
- yaffs_yaffs1.o \
- yaffs_yaffs2.o \
- yaffs_verify.o
-
-# yaffs_checkptrwtest.o\
-
-YAFFSTESTOBJS = $(COMMONTESTOBJS) yaffs_tester.o message_buffer.o error_handler.o
-
-
-ALLOBJS = $(sort $(YAFFSTESTOBJS))
-
-YAFFSSYMLINKS = devextras.h yaffs_ecc.c yaffs_ecc.h yaffs_guts.c yaffs_guts.h yaffsinterface.h yportenv.h yaffs_tagscompat.c yaffs_tagscompat.h \
- yaffs_packedtags1.c yaffs_packedtags1.h yaffs_packedtags2.c yaffs_packedtags2.h \
- yaffs_nand.c yaffs_nand.h yaffs_getblockinfo.h yaffs_list.h \
- yaffs_tagsvalidity.c yaffs_tagsvalidity.h yaffs_checkptrw.h yaffs_checkptrw.c \
- yaffs_nameval.c yaffs_nameval.h \
- yaffs_qsort.h yaffs_trace.h \
- yaffs_allocator.c yaffs_allocator.h \
- yaffs_yaffs1.c yaffs_yaffs1.h \
- yaffs_yaffs2.c yaffs_yaffs2.h \
- yaffs_bitmap.c yaffs_bitmap.h \
- yaffs_verify.c yaffs_verify.h
-
-YAFFSDIRECTSYMLINKS = yaffsfs.c yaffs_flashif.h yaffs_flashif2.h\
- yaffsfs.h yaffs_malloc.h ydirectenv.h \
- yaffs_flashif.c yaffscfg.h yaffs_qsort.c\
- yaffs_nandif.c yaffs_nandif.h yaffs_nandemul2k.h
-
-
-DIRECTEXTRASYMLINKS = yaffscfg2k.c yaffs_fileem2k.c yaffs_fileem2k.h\
- yaffs_fileem.c yaffs_norif1.c yaffs_norif1.h \
- yaffs_ramdisk.c yaffs_ramdisk.h yaffs_ramem2k.c \
- ynorsim.h ynorsim.c
-
-SYMLINKS = $(YAFFSSYMLINKS) $(YAFFSDIRECTSYMLINKS) $(DIRECTEXTRASYMLINKS)
-#all: directtest2k boottest
-
-all: yaffs_tester
-
-$(ALLOBJS): %.o: %.c
- gcc -c $(CFLAGS) -o $@ $<
-
-
-$(YAFFSSYMLINKS):
- ln -s ../../../$@ $@
-
-$(YAFFSDIRECTSYMLINKS):
- ln -s ../../$@ $@
-
-$(DIRECTEXTRASYMLINKS):
- ln -s ../../basic-test/$@ $@
-
-
-yaffs_tester: $(SYMLINKS) $(YAFFSTESTOBJS)
- gcc $(CFLLAG) -o $@ $(YAFFSTESTOBJS)
-
-
-
-
-
-
-clean:
- rm -f yaffs_tester $(ALLOBJS) core $(SYMLINKS) log.txt
+++ /dev/null
-/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- *
- * Copyright (C) 2002-2010 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
- *
- * Created by Timothy Manning <timothy@yaffs.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-/*
- * message_buffer.c contains code for a message buffer .
- */
-
-#include "message_buffer.h"
-
-void append_to_buffer(buffer *p_Buffer, char *message,char message_level,char print){
- /*wrapper function for add_to_buffer_root_function*/
- add_to_buffer_root_function(p_Buffer,message, message_level,APPEND_MESSAGE,print);
-}
-
-void add_to_buffer(buffer *p_Buffer, char *message,char message_level,char print){
- /*wrapper function for add_to_buffer_root_function*/
- add_to_buffer_root_function(p_Buffer,message, message_level,DO_NOT_APPEND_MESSAGE,print);
-}
-
-void add_int_to_buffer(buffer *p_Buffer, int num,char message_level,char print){
- char message[20];
- sprintf(message, "%d",num);
- add_to_buffer_root_function(p_Buffer,message, message_level,DO_NOT_APPEND_MESSAGE,print);
-}
-
-void append_int_to_buffer(buffer *p_Buffer, int num,char message_level,char print){
- char message[20];
- sprintf(message, "%d",num);
- add_to_buffer_root_function(p_Buffer,message, message_level,APPEND_MESSAGE,print);
-}
-
-
-void add_to_buffer_root_function(buffer *p_Buffer, char *message,char message_level,char append,char print){
- FILE *log_handle;
-
- if (append==APPEND_MESSAGE){ /* append current message*/
- strncat(p_Buffer->message[p_Buffer->head],message,BUFFER_MESSAGE_LENGTH);
- }
- else {
-
- /*move the head up one. the head always points at the last written data*/
- p_Buffer->head++;
-
- /*printf("p_Buffer->tail=%d\n",p_Buffer->tail);*/
- /*printf("p_Buffer->head=%d\n",p_Buffer->head);*/
- if (p_Buffer->head >=BUFFER_SIZE-1) {
- /*printf("buffer overflow\n");*/
- p_Buffer->head -= (BUFFER_SIZE-1); /*wrap the head around the buffer*/
- /*printf("new p_Buffer->head=%d\n",p_Buffer->head);*/
- }
- /*if the buffer is full then delete last entry by moving the tail*/
- if (p_Buffer->head==p_Buffer->tail){
- /*printf("moving buffer tail from %d to ",p_Buffer->tail);*/
- p_Buffer->tail++;
- if (p_Buffer->tail >=BUFFER_SIZE) p_Buffer->tail -= BUFFER_SIZE;/*wrap the tail around the buffer*/
- /*printf("%d\n",p_Buffer->tail);*/
-
- }
-
- p_Buffer->message_level[p_Buffer->head]=message_level; /*copy the message level*/
- strncpy(p_Buffer->message[p_Buffer->head],message,BUFFER_MESSAGE_LENGTH); /*copy the message*/
- /*printf("copied %s into p_Buffer->message[p_Buffer->head]: %s\n",message,p_Buffer->message[p_Buffer->head]);
- printf("extra %s\n",p_Buffer->message[p_Buffer->head]);*/
- }
- if ((p_Buffer->message_level[p_Buffer->head]<=DEBUG_LEVEL)&& (print==PRINT)){
- /*printf("printing buffer 1\n");
- // the print buffer function is not working this is just a quick fix
- print_buffer(p_Buffer,1); //if the debug level is higher enough then print the new message
- */
- printf("%s\n",p_Buffer->message[p_Buffer->head]);
- log_handle=fopen(LOG_FILE,"a");
- if (log_handle!=NULL){
- fputs(p_Buffer->message[p_Buffer->head],log_handle);
- fputs("\n",log_handle);
- fclose(log_handle);
- }
- }
-}
-
-
-
-void print_buffer(buffer *p_Buffer, int number_of_messages_to_print){
- int x=0;
- int i=0;
- printf("print buffer\n");
- printf("buffer head:%d\n",p_Buffer->head);
- printf("buffer tail:%d\n",p_Buffer->tail);
-
- if (number_of_messages_to_print==PRINT_ALL) number_of_messages_to_print=BUFFER_SIZE;
-// printf("number_of_messages_to_print=%d\n",number_of_messages_to_print);
- for (i=0,x=0; (x>=p_Buffer->tail) && (i<number_of_messages_to_print); i++, x--){
-// printf("printing buffer\n");
-// printf("x:%d\n",x);
- if (x<0) x = BUFFER_SIZE-1; /*wrap x around buffer*/
- printf("%s\n",p_Buffer->message[p_Buffer->head]);
- printf("printed buffer\n");
- }
-
-}
-
-
-
+++ /dev/null
-/*
- * YAFFS: Yet another FFS. A NAND-flash specific file system.
- *
- * Copyright (C) 2002-2010 Aleph One Ltd.
- * for Toby Churchill Ltd and Brightstar Engineering
- *
- * Created by Timothy Manning <timothy@yaffs.net>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
-/*
- * yaffs_tester.c designed to stress test yaffs2 direct.
- */
-
-
-#include "yaffs_tester.h"
-
-
-
-int random_seed;
-int simulate_power_failure = 0;
-
-
-buffer message_buffer; /*create message_buffer */
-
-
-struct handle_regster{
- int handle[MAX_NUMBER_OF_OPENED_HANDLES];
- char path[MAX_NUMBER_OF_OPENED_HANDLES][100];
- int number_of_open_handles;
-};
-
-
-int main(int argc, char *argv[]){
- char yaffs_test_dir[] ="/yaffs2/test_dir"; /*the path to the directory where all of the testing will take place*/
- char yaffs_mount_dir[]="/yaffs2/"; /*the path to the mount point which yaffs will mount*/
-
- init(yaffs_test_dir,yaffs_mount_dir,argc,argv);
- test(yaffs_test_dir);
- yaffs_unmount(yaffs_mount_dir);
- return 0;
-}
-
-
-
-void init(char *yaffs_test_dir,char *yaffs_mount_dir,int argc, char *argv[]){
- char output=0;
- int x=0;
- int seed=-1;
- FILE *log_handle;
- /*these variables are already set to zero, but it is better not to take chances*/
- message_buffer.head=0;
- message_buffer.tail=0;
-
-
- log_handle=fopen(LOG_FILE,"w");
- if (log_handle!=NULL){
- fputs("log file for yaffs tester\n",log_handle);
- fclose(log_handle);
- }
- add_to_buffer(&message_buffer,"welcome to the yaffs tester",MESSAGE_LEVEL_BASIC_TASKS,PRINT);/* print boot up message*/
- yaffs_start_up();
- yaffs_mount(yaffs_mount_dir);
- for (x=0;x<argc;x++){
-// add_to_buffer(&message_buffer,"argv ",MESSAGE_LEVEL_BASIC_TASKS,PRINT);
-// add_to_buffer(&message_buffer,argv[x],MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- if (strcmp("-seed",argv[x])==0){ /*warning only compares the length of the strings, quick fix*/
- seed= atoi(argv[x+1]);
- /*add_to_buffer(&message_buffer,"setting seed to ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,seed,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer,"\n",MESSAGE_LEVEL_BASIC_TASKS,PRINT);*/
- }
- }
- if (seed==-1){
- seed=time(NULL);
- srand(seed);
- }
- else {
- srand(seed);
- }
- add_to_buffer(&message_buffer,"setting seed to ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,seed,MESSAGE_LEVEL_BASIC_TASKS,PRINT);/* print boot up message*/
-
- if (yaffs_access(yaffs_test_dir,0)) /* if the test folder does not exist then create it */
- {
- add_to_buffer(&message_buffer,"creating dir: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer,yaffs_test_dir,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- output=yaffs_mkdir(yaffs_test_dir,S_IREAD | S_IWRITE);
- yaffs_check_for_errors(output, &message_buffer,"could not create dir","created dir\n\n");
- }
-
-}
-void join_paths(char *path1,char *path2,char *new_path ){
-
-/* printf("strlen path1:%d\n",strlen(path1));
- printf("strlen path2:%d\n",strlen(path2));
- printf("path1; %s\n",path1);
-*/
- add_to_buffer(&message_buffer, "joining paths:",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer,path1,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer, " and ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer, path2,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- if ( (path1[(sizeof(path1)/sizeof(char))-2]=='/') && path2[0]!='/') {
- /*paths are compatiable. concatanate them. note -2 is because of \0*/
- strcat(new_path,path1);
- strcat(new_path,path2);
- //char new_path[(sizeof(path1)/sizeof(char))+(sizeof(path2)/sizeof(char))];
- //strcpy(new_path,strcat(path1,path2));
- //return new_path;
- }
- else if ((path1[(sizeof(path1)/sizeof(char))-2]!='/') && path2[0]=='/') {
- /*paths are compatiable. concatanate them*/
- strcat(new_path,path1);
- strcat(new_path,path2);
- //char new_path[(sizeof(path1)/sizeof(char))+(sizeof(path2)/sizeof(char))];
- //strcpy(new_path,strcat(path1,path2));
- //return new_path;
- }
- else if ((path1[(sizeof(path1)/sizeof(char))-2]!='/') && path2[0]!='/') {
- /*need to add a "/". */
- strcat(new_path,path1);
- strcat(new_path,"/");
- strcat(new_path,path2);
- //strcpy(new_path,strcat(path1,strcat("/\0",path2)));
-
-#if 0
- copy_array(path1,new_path,0,0);
- copy_array('\0',new_path,0,(sizeof(path1)/sizeof(char)));
- copy_array(path2,new_path,0,(sizeof(path1)/sizeof(char))+1);
- old method now trying to use copy_array
- //char new_path[(sizeof(path1)/sizeof(char))+(sizeof(path2)/sizeof(char))+1];
- for (x=0;x<=(sizeof(path1)/sizeof(char))-1;x++){
- new_path[x]=path1[x];
- }
- new_path[x+1]='/';
- for (x=(sizeof(path1)/sizeof(char)) ,i=0 ;i<=(sizeof(path2)/sizeof(char));x++,i++){
- new_path[x]=path2[i];
- }
-#endif
-
- //return new_path;
- }
- else if ((path1[(sizeof(path1)/sizeof(char))-2]=='/') && path2[0]=='/') {
- /*need to remove a "/". */
- /*yaffs does not mind the extra slash. */
- //char new_path[(sizeof(path1)/sizeof(char))+(sizeof(path2)/sizeof(char))-1];
-
- strcat(new_path,path1);
- strcat(new_path,path2);
- //strcpy(new_path,strcat(path1,strncat("",path2,(sizeof(path1)/sizeof(char))-1)));
- //return new_path;
- }
- else{
- //error
- //return -1;
- }
-}
-
-
-
-void test(char*yaffs_test_dir){
- struct yaffs_stat stat;
- int output=0;
- char name[MAX_FILE_NAME_SIZE+3 ]="apple\0";
- char path[MAX_FILE_NAME_SIZE];
- struct handle_regster open_handles_array;
- //int handle_pointers[MAX_NUMBER_OF_OPENED_HANDLES];
- //int number_of_opened_handles=0;
- int x=0;
- join_paths(yaffs_test_dir,name,path);
-
- open_handles_array.number_of_open_handles=0;
- for (x=0;x<MAX_NUMBER_OF_OPENED_HANDLES;x++){
- open_handles_array.handle[x]=-1;
- open_handles_array.path[x][0]='\0';
-
- }
- while(1)
- {
- path[0]='\0';// this should clear the path
- add_to_buffer(&message_buffer,"number of opened handles: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,open_handles_array.number_of_open_handles,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- if (open_handles_array.number_of_open_handles<MAX_NUMBER_OF_OPENED_HANDLES)
- {
- generate_random_string(name);
- join_paths(yaffs_test_dir,name,path);
- add_to_buffer(&message_buffer,"trying to open file: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer,path,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- if (yaffs_access(path,0)==0){
- /*if the file already exists then stat the file*/
- add_to_buffer(&message_buffer,"file exists, trying to stat the file ",MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- output=yaffs_lstat(path,&stat);
- yaffs_check_for_errors(output, &message_buffer,"failed to stat file","statted file");
- //stat.st_ino,(int)stat.st_size,stat.st_mode
- add_to_buffer(&message_buffer,"yaffs inode: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,stat.st_ino,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer," file size: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,(int)stat.st_size,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer," file mode: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,stat.st_mode,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- }
- else {
- add_to_buffer(&message_buffer,"file does not exists, creating file",MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- }
-
- output=yaffs_open(path,O_CREAT | O_TRUNC| O_RDWR, S_IREAD | S_IWRITE);
- x=rand() % (MAX_NUMBER_OF_OPENED_HANDLES-1); //set x to a random handle
- add_to_buffer(&message_buffer,"handle array id ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,x,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
-
- //for (x=0;handle_pointers[x]!=NULL;x++){}
- open_handles_array.handle[x]=output;
- open_handles_array.path[x][0]='\0';
- strcat(open_handles_array.path[x],path);
- add_to_buffer(&message_buffer,"yaffs handle: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,output,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- add_to_buffer(&message_buffer,"stored handle: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,open_handles_array.handle[x],MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- //yaffs_open will return a null pointer if it cannot open a file. check for errors will not work.
- yaffs_check_for_errors(output, &message_buffer,"failed to open file","opened file");
- open_handles_array.number_of_open_handles++;
- }
- else{ /*run out of space on the handle pointer array*/
- /*make space*/
- while (open_handles_array.handle[x]==-1){
- x=rand() % MAX_NUMBER_OF_OPENED_HANDLES-1;
- }
- add_to_buffer(&message_buffer,"trying to close file: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer,open_handles_array.path[x],MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- add_to_buffer(&message_buffer,"file handle: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,open_handles_array.handle[x],MESSAGE_LEVEL_BASIC_TASKS,PRINT);
-
- output=yaffs_close(open_handles_array.handle[x]);
-
- if (output==-1) yaffs_check_for_errors(output, &message_buffer,"failed to close file","closed file");
- else {
- yaffs_check_for_errors(output, &message_buffer,"failed to close file","closed file");
- open_handles_array.handle[x]=-1;
- open_handles_array.path[x][0]='\0';
- open_handles_array.number_of_open_handles--;
- }
- }
- }
-}
-void generate_random_string(char *ptr){
- unsigned int x;
- unsigned int length=((rand() %MAX_FILE_NAME_SIZE)+1); /*creates a int with the number of charecters been between 1 and 51*/
- char letter='\0';
-
- //printf("generating string\n");
- //printf("string length is %d\n",length);
- for (x=0; x <= (length-2) &&length>2 ; x++)
- {
- //printf("x=%d\n",x);
- /* keep generating a charecter until the charecter is legal*/
- while((letter=='\0' )||(letter=='/')||(letter=='\\')){
- letter=(rand() % 126-32)+32; /*generate a number between 32 and 126 and uses it as a charecter (letter) */
- }
- ptr[x]=letter;
- //printf("charecter generated is %c\n",ptr[x]);
- }
- ptr[x+1]='\0'; /*adds NULL charecter to turn it into a string*/
-
-}
-
-void stat_file(char *path){
- int output=0;
- struct yaffs_stat stat;
- if (yaffs_access(path,0)==0){
- add_to_buffer(&message_buffer,"file exists, trying to stat: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- add_to_buffer(&message_buffer,path,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- output=yaffs_lstat(path,&stat);
- yaffs_check_for_errors(output, &message_buffer,"failed to stat file","statted file");
- //stat.st_ino,(int)stat.st_size,stat.st_mode
- add_to_buffer(&message_buffer,"yaffs inode: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,stat.st_ino,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer," file size: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,(int)stat.st_size,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer," file mode: ",MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_int_to_buffer(&message_buffer,stat.st_mode,MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- }
- else{
- add_to_buffer(&message_buffer,path,MESSAGE_LEVEL_BASIC_TASKS,NPRINT);
- append_to_buffer(&message_buffer," does not exist,could not stat",MESSAGE_LEVEL_BASIC_TASKS,PRINT);
- }
-}
-