2 * YAFFS: Yet another Flash File System . A NAND-flash specific file system.
4 * Copyright (C) 2002-2010 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Timothy Manning <timothy@yaffs.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU Lesser General Public License version 2.1 as
11 * published by the Free Software Foundation.
13 * Note: Only YAFFS headers are LGPL, YAFFS C code is covered by GPL.
24 #define YAFFS_MOUNT_POINT "/yaffs2/"
25 #define FILE_NAME "foo"
28 #define FILE_MODE (S_IREAD | S_IWRITE)
29 #define FILE_SIZE_TRUNCATED 100
30 #define FILE_TEXT "file foo " /* keep space at end of string */
31 #define FILE_TEXT_NBYTES 10
33 #define DIR_PATH "/yaffs2/new_directory"
35 #define SYMLINK_PATH "/yaffs2/sym_foo"
37 #define HARD_LINK_PATH "/yaffs2/hard_link"
39 #define NODE_PATH "/yaffs2/node"
41 #define RENAME_PATH "/yaffs2/foo2"
43 #define RENAME_DIR_PATH "/yaffs2/dir2"
45 #define ELOOP_PATH "/yaffs2/ELOOP"
46 #define ELOOP2_PATH "/yaffs2/ELOOP2"
48 /* warning do not define anything as FILE because there seems to be a conflict with stdio.h */
49 #define FILE_PATH "/yaffs2/foo"
51 void join_paths(char *path1,char *path2,char *new_path );
52 void print_message(char *message,char print_level);
53 void set_print_level(int new_level);
54 void set_exit_on_error(int num);
55 int get_exit_on_error(void);
56 int set_up_ELOOP(void);
57 int EROFS_setup(void);
58 int EROFS_clean(void);