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

@@ -2,11 +2,12 @@
* This is just to allocate some memory as a block device.
*/
#include <l4/macros.h>
#include <memfs/memfs.h>
extern char _start_bdev[];
extern char _end_bdev[];
__attribute__((section(".data.memfs"))) char blockdevice[SZ_1MB*2];
__attribute__((section(".data.memfs"))) char blockdevice[MEMFS_TOTAL_SIZE];
void *vfs_rootdev_open(void)
{

View File

@@ -411,7 +411,6 @@ int memfs_vnode_filldir(void *userbuf, struct vnode *v, int count)
return 0;
}
struct vnode_ops memfs_vnode_operations = {
.readdir = memfs_vnode_readdir,
.filldir = memfs_vnode_filldir,

View File

@@ -36,8 +36,7 @@ int pager_sys_open(struct tcb *pager, l4id_t opener, int fd)
struct tcb *task;
struct vnode *v;
// printf("%s/%s\n", __TASKNAME__, __FUNCTION__);
//
//printf("%s/%s\n", __TASKNAME__, __FUNCTION__);
if (pager->tid != PAGER_TID)
return -EINVAL;
@@ -76,8 +75,6 @@ int pager_open_bypath(struct tcb *pager, char *pathname)
if (pager->tid != PAGER_TID)
return -EINVAL;
// printf("%s/%s\n", __TASKNAME__, __FUNCTION__);
/* Parse path data */
if (IS_ERR(pdata = pathdata_parse(pathname,
alloca(strlen(pathname) + 1),