[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with the pager of fatfs
From: |
Marco Gerards |
Subject: |
Problems with the pager of fatfs |
Date: |
Sat, 20 Apr 2002 22:53:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020316 |
Hi,
I'm working on fatfs now and noticed fat32 didn't work so I'm trying to
fix it.
I ran into a little problem, it only exists for fat32. When I try to
read a filelist
from the root directory (which is a "normal" file for fat32 and a
reserved continues
block for fat12/16) fatfs crashes.
The crash is in diskfs_get_directs. That function calls the function
diskfs_get_filemap.
It initializes the pager and returns the portrights for the pager.
vm_map is called, etc.
After reading from the pager there happens a weird thing:
Breakpoint 1, pager_read_page (pager=0x8055528, page=0,
buf=0x128bd7c, writelock=0x128bd80) at pager.c:554
554 {
(gdb) p pager
$1 = (struct user_pager_info *) 0x0
(gdb) p (struct user_pager_info *) pager_get_upi
(diskfs_root_node->dn->pager)
$2 = (struct user_pager_info *) 0x8055528
The value in pager seems to be random (now it is zero but sometimes it
has other values).
I compile with the following in CFLAGS: -O -g -D_GNU_SOURCE -Wall
If someone needs more information i can provide it :)
thanks,
Marco Gerards
- Problems with the pager of fatfs,
Marco Gerards <=