In FS0 filesystem image buffer was smaller than the memfs-defined maximum.

- Now fs size is in sync with memfs max size.
This commit is contained in:
Bahadir Balban
2009-05-13 16:09:20 +03:00
parent 680d20ff94
commit 2c01463482
11 changed files with 68 additions and 64 deletions

View File

@@ -21,14 +21,19 @@ int exectest(void)
unsigned long size = _end_test1 - _start_test1;
int left, cnt;
char *argv[5];
char filename[128];
memset(filename, 0, 128);
sprintf(filename, "/home/bahadir/execfile%d.txt", getpid());
/* First create a new file and write the executable data to that file */
if ((fd = open("/home/bahadir/test1.axf", O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) {
if ((fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, S_IRWXU)) < 0) {
test_printf("OPEN: %d\n", errno);
goto out_err;
}
left = size;
printf("Writing %d bytes to %s\n", left, filename);
while (left != 0) {
if ((cnt = write(fd, exec_start, left)) < 0)
goto out_err;