[parisc-linux] Re: [fuse-devel] Example filesystem fail to init on parisc
Miklos Szeredi
miklos at szeredi.hu
Thu Mar 16 06:13:04 MST 2006
Jick, Chris,
Can you please try the following module containing the simplified
versions of the fuse device read/write routines?
Copy the attached files into an empty directory, then do 'make' and
'insmod copytest.ko'.
Then do
cat /proc/fs/test
echo hello > /proc/fs/test
dmesg | tail
I get something like this:
~$ cat /proc/fs/test
Hello!
~$ echo hello > /proc/fs/test
~$ dmesg | tail
test_read 0804d848 1024 0
dst: 0804d848 page: c13a9f40 offset: 2120 mapaddr: dd4fa000 ptr: dd4fa848
test_read: 7
test_read 0804d848 1024 7
test_read: 0
test_write 080e9008 6 0
src: 080e9008 page: c1167560 offset: 8 mapaddr: cb3ab000 ptr: cb3ab008
<hello
>
test_write: 6
~$
You could also try changing the calls to my_copy_{to,from}_user2()
to my_copy_..._user1() and see if it makes a difference.
Thanks,
Miklos
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-csrc
Size: 3678 bytes
Desc: not available
Url : http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/20060316/97de70dc/attachment-0002.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 136 bytes
Desc: not available
Url : http://lists.parisc-linux.org/pipermail/parisc-linux/attachments/20060316/97de70dc/attachment-0002.obj
More information about the parisc-linux
mailing list