Re: mount aufs test_add

2007-07-12 Thread sfjro

Tomas M:
> > I tried adding a branch which is mounted by
> > FUSE_CVS/fuse/example/fusexmp.c, and succeeded.
> > If you try fusexmp and it succeeds, then the posixovl should be fixed.
> 
> Thank you for the answer.

I noticed that you may be misunderstanding what I wrote.
It may depends upon the fuse version, kernel version or something else.
If you try fusexmp or another fuse and it succeeds, then you can check
the difference between the one and the posixovl.


Junjiro Okajima

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Re: mount aufs test_add

2007-07-12 Thread sfjro

Tomas M:
> Would you please explain briefly what does the code chcek for?
> I'll resend it to the developer of posixovl.
> 
>  // from branch.c, lines 377-380
>  if (unlikely(!inode->i_nlink)) {
>  Err("no existence %s\n", add->path);
>  goto out;
>  }

It tests the existence of the specified dir.
As you know, the link count of a removed dir (or file) is 0.
Aufs lookups and gets the inode, and then add it to aufs. During this
operation, aufs does not hold any lock. So someone else may remove the
dir.


Junjiro Okajima

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Re: mount aufs test_add

2007-07-12 Thread Tomas M
> I tried adding a branch which is mounted by
> FUSE_CVS/fuse/example/fusexmp.c, and succeeded.
> If you try fusexmp and it succeeds, then the posixovl should be fixed.

Thank you for the answer.

> Just a guess, executing 'stat /mnt' before mounting aufs may affect the
> result.

I executed stat after the attempt to mount aufs.

Would you please explain briefly what does the code chcek for?
I'll resend it to the developer of posixovl.

 // from branch.c, lines 377-380
 if (unlikely(!inode->i_nlink)) {
 Err("no existence %s\n", add->path);
 goto out;
 }

Thank you very much.

Tomas M


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Re: bug in kernel 2.6.22 with removing branches

2007-07-12 Thread sfjro

chris rogers:
> I try removing a branch and it crash the kernel 2.6.22. So the kernel 2.6.22 
> should not be supported yet. Add branches have no problems. It works like 
> normal. So i think its cause of the new mount option trunc_xib and 
> notrunc_xib that this is happen. But if its only in kernel 2.6.22 as far as 
> know. 

On my 2.6.22, aufs succeeded removing a branch.
Please show me how to reproduce it (and your stacktrace).


Junjiro Okajima

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Re: mount aufs test_add

2007-07-12 Thread sfjro

Tomas M:
> As I can read aufs/branch.c, line 377, there is a test if inode->i_nlink 
> ... nevertheless 'stat /mnt' outputs Links: 4. I have no idea if this 
> information is relevant though :)
> 
> Should the posixovl filesystem be fixed, or should aufs be fixed?

I tried adding a branch which is mounted by
FUSE_CVS/fuse/example/fusexmp.c, and succeeded.
If you try fusexmp and it succeeds, then the posixovl should be fixed.

Just a guess, executing 'stat /mnt' before mounting aufs may affect the
result.


Junjiro Okajima

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


Re: "au_new_inode: broken ino"

2007-07-12 Thread Jørgen P. Tjernø
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

[EMAIL PROTECTED] wrote:
>> "Jrgen P. Tjern":
>>> [2297447.631266] aufs 20070702
>>> [2297509.899071] aufs au_new_inode:347:smbd[27416]: Un-notified UDBA or
>>> directly renamed dir, b0, xfs, Simon - Garfunkel - The Best Of Simon -
>>> Garfunkel - Song For The Asking.mp3, hi1610612893, i16.
> 
> Please show me your /sys/fs/aufs/*/xino file, if it exists.
[EMAIL PROTECTED]:~$ cat /sys/fs/aufs/*/xino
0x4096 8192
0: 1, 0x4096 3821854336
1: 1, 0x4096 4037693024
2: 1, 0x4096 57868296
3: 1, 0x4096 494731296

> And please try this patch.
I'm updating to the latest monday release now (20070709). I'll let you
know if the problem is still there. :-)

Thanks!

Kindest regards, Jørgen P. Tjernø

Ps. Sorry for the slow reply, kinda busy.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGlgvywqQbW3my7pcRAjLvAKCErgexWWnQj6SVjlFlu9SWW/E+fACfcTQz
3kp7wS2c+sDK+Brs7c5V4D0=
=5uxn
-END PGP SIGNATURE-

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


mount aufs test_add

2007-07-12 Thread Tomas M
Hello,

my setup is following:

mount -t vfat /dev/sda1 /mnt/  # to mount vfat on /mnt/
mount.posixovl /mnt/   # to overmount vfat in order to support links
mount -t aufs -o br:/mnt=rw aufs /union

Aufs reports
aufs test_add:378:busybox[2922]: no existence /mnt

As I can read aufs/branch.c, line 377, there is a test if inode->i_nlink 
... nevertheless 'stat /mnt' outputs Links: 4. I have no idea if this 
information is relevant though :)

Should the posixovl filesystem be fixed, or should aufs be fixed?

Posixovl is a FUSE-based filesystem, source can be found here:
https://dev.computergmbh.de/svn/posixovl/trunk/


Thank you very much for answer.

Tomas M



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/