2 * YAFFS: Yet another FFS. 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 General Public License version 2 as
11 * published by the Free Software Foundation.
22 struct bovver_context *bc = (struct bovver_context *)x;
36 i = rand() % BOVVER_HANDLES;
37 op = rand() % bc->opMax;
38 pos = rand() & 20000000;
44 sprintf(name, "%s/xx%d",bc->baseDir,n);
45 sprintf(name1,"%s/xx%d",bc->baseDir,n1);
53 yaffs_close(bc->h[i]);
62 bc->h[i] = yaffs_open(name,O_CREAT| O_RDWR, 0666);
68 yaffs_lseek(bc->h[i],pos,SEEK_SET);
69 yaffs_write(bc->h[i],name,n);
80 yaffs_rename(name,name1);
85 yaffs_mkdir(name,0666);
94 bc->opMax = (start_op - op -1);