[Tux3] Question on Tux3 Fuse

Pranith Kumar bobby.prani at gmail.com
Thu Sep 25 04:35:48 PDT 2008


Hi Tero,

On Thu, Sep 25, 2008 at 10:31 AM, Tero Roponen <tero.roponen at gmail.com>wrote:


> I haven't noticed any problems, it is working for me:
>
> mount as a normal user: ./tux3fuse /tmp/testdev -f mnt/
>

 I am getting the following problem on a 32 bit machine.. may be u can try
it out.

bobby at lappy:/tmp$ cd test
bobby at lappy:/tmp/test$ ls
bobby at lappy:/tmp/test$ touch hi
bobby at lappy:/tmp/test$ ls
hi
bobby at lappy:/tmp/test$ rm hi
bobby at lappy:/tmp/test$ ls
ls: cannot access �����: No such file or directory
??????
bobby at lappy:/tmp/test$ cd ..
bobby at lappy:/tmp$ !sudo
sudo umount test
bobby at lappy:/tmp$ cd test
bobby at lappy:/tmp/test$ ls
bobby at lappy:/tmp/test$ touch hi
bobby at lappy:/tmp/test$ ls
hi
bobby at lappy:/tmp/test$ ls
hi
bobby at lappy:/tmp/test$ ls
hi
bobby at lappy:/tmp/test$ cd ..
bobby at lappy:/tmp$ sudo umount test
bobby at lappy:/tmp$ cd test
bobby at lappy:/tmp/test$ ls
bobby at lappy:/tmp/test$ touch hello
bobby at lappy:/tmp/test$ ls
hello
bobby at lappy:/tmp/test$ rm hello
bobby at lappy:/tmp/test$ ls
ls: cannot access �����: No such file or directory
????????
bobby at lappy:/tmp/test$

The corresponding debug log is as follows:
bobby at lappy:~/tux3/user/test$ ./tux3fs /tmp/testdev -f /tmp/test
dev_bread: read [2]
dev_bread: read [3]
lookup inode 0x0, 0 + 0
open_inode: found inode 0x0
new_xcache: realloc xcache to 4
mode 0000000 uid 0 gid 0 root 4:1 ctime 0 size 20
lookup inode 0xd, 0 + d
open_inode: found inode 0xd
new_xcache: realloc xcache to 4
mode 0040755 uid 0 gid 0 root 8:1
---- get attr for '/.Trash' ----
---- get attr for '/.Trash-1000' ----
---- get attr for '/.Trash' ----
---- get attr for '/.Trash-1000' ----
---- get attr for '/' ----
---- get attr for '/' ----
---- readdir '/' at 0 ----
---- get attr for '/hello' ----
---- create file ----
resolve_path: resolved '/hello': dir inode 0xd, file: 'hello'
make_inode: create inode 0xd
find empty inode in [3] base 0
result inum is e, limit is ffffffffffffffff
file_bread: block read <0:0>
dev_bread: read [4]
dev_bread: read [5]
file_bread: found physical block c
balloc -> [d]
balloc -> [e]
root at d
leaf at e
resize inum 0xe at 0x70 from 0 to 18
---- get attr for '/hello' ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
---- utime ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
save_inode: save inode 0xe
lookup inode 0xe, 0 + e
resize inum 0xe at 0x70 from 18 to 18
set mtime to 1222342317, atime to 1222342317
---- get attr for '/hello' ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
---- get attr for '/' ----
---- readdir '/' at 0 ----
'hello'
---- get attr for 'hello' ----
---- get attr for '/hello' ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
---- readdir '/' at 1000 ----
---- get attr for '/hello' ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
---- delete file ----
lookup inode 0xe, 0 + e
open_inode: found inode 0xe
new_xcache: realloc xcache to 4
mode 0100666 uid 0 gid 0 root d:1
---- get attr for '/' ----
---- readdir '/' at 0 ----
---- get attr for '�����' ----
---- get attr for '/�����' ----
---- readdir '/' at 1000 ----

I think this is because the dirent buffer used in tux3_readdir function.
That is being used uninitialized. It is not being filled up in ext2_readdir
using the tux3_filler function.
This is as far as i got.  Hope this helps.

Thanks,
Pranith.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://phunq.net/pipermail/tux3/attachments/20080925/9d8c3fd6/attachment-0001.html>
-------------- next part --------------
_______________________________________________
Tux3 mailing list
Tux3 at tux3.org
http://tux3.org/cgi-bin/mailman/listinfo/tux3


More information about the Tux3 mailing list