[parisc-linux] Re: [fuse-devel] Example filesystem fail to init on parisc
Chris Frost
chris at frostnet.net
Sat Mar 18 21:39:39 MST 2006
The kernel output on my parisc machine using copy_to/from_user2() is a bit
different:
woozle:/home/frost/fuse_test# insmod copytest.ko
woozle:/home/frost/fuse_test# cat /proc/fs/test
woozle:/home/frost/fuse_test# echo hello > /proc/fs/test
woozle:/home/frost/fuse_test# dmesg | tail
program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO
test_read 000258a0 1024 0
dst: 000258a0 page: 10acb460 offset: 2208 mapaddr: 3b523000 ptr: 3b5238a0
test_read: 7
test_read 000258a0 1024 7
test_read: 0
test_write 000d6c08 6 0
src: 000d6c08 page: 108e9060 offset: 3080 mapaddr: 2c403000 ptr: 2c403c08
<ßßßßßß>
test_write: 6
woozle:/home/frost/fuse_test#
Changing the copy_to/from_user2() calls to copy_to/from_user1() changes
the output to include the "Hello!" and "<hello\n>" you see on an x86
(x86, I presume);
woozle:/home/frost/fuse_test# insmod copytest.ko
woozle:/home/frost/fuse_test# cat /proc/fs/test
Hello!
woozle:/home/frost/fuse_test# echo hello > /proc/fs/test
woozle:/home/frost/fuse_test# dmesg | tail -9
program smartd is using a deprecated SCSI ioctl, please convert it to SG_IO
test_read 000258a0 1024 0
test_read: 7
test_read 000258a0 1024 7
test_read: 0
test_write 000d6c08 6 0
<hello
>
test_write: 6
woozle:/home/frost/fuse_test#
--
Chris Frost | <http://www.frostnet.net/chris/>
-------------+----------------------------------
Public PGP Key:
Email chris at frostnet.net with the subject "retrieve pgp key"
or visit <http://www.frostnet.net/chris/about/pgp_key.phtml>
More information about the parisc-linux
mailing list