[Gluster-devel] Problems with symlinks at storage/posix

Filipe Maia filipe at xray.bmc.uu.se
Sun Jan 18 20:32:50 UTC 2009


You're welcome.
Yes it fixes all the problems I had.

Filipe

On Sun, Jan 18, 2009 at 20:30, Anand Avati <avati at zresearch.com> wrote:
> Just applied the patch, Thanks! Does this patch solve your problem
> completely or is there something else?
>
> avati
>
> 2009/1/16 Filipe Maia <filipe at xray.bmc.uu.se>:
>> Hi,
>>
>> I tried running unify to replace my current NFS setup for my home
>> directory but through unify I only saw 333 files on my home, compared
>> to a couple more than a 1000 using NFS.
>>
>> After much digging I think i know the problem. In my home directory
>> there is a link that points to a non-existing file (dangling symlink).
>> In the posix_setdents the correct symlink is created but then the
>> chmod right after it fails and setdents exists without creating any of
>> the others entries on the namespace.
>> The chmod fails because it tries to chmod the file pointed by the
>> symlink, which does not exist (it fails with errno=2).
>>
>> I did some more tests and this can occur even if the symlink points
>> somewhere as long as the symlink is created before the destination
>> point.
>>
>> Attached is a patch proposal that seemed to work in my system. The
>> patch is against 2.0.0rc1.
>>
>> Filipe
>>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>>
>>
>





More information about the Gluster-devel mailing list