Sure, yes, I was about to post this, your change sholld work too, will
test and let you know.



>
> *diff --git a/src/FSAL/commonlib.c b/src/FSAL/commonlib.c*
> *index f3137c9..8c26948 100644*
> *--- a/src/FSAL/commonlib.c*
> *+++ b/src/FSAL/commonlib.c*@@ -1080,7 +1080,8 @@ static void
> posix_find_parent(struct fsal_filesystem *this)
>                         continue;
>
>                 /* Check for sub-string match */
> -               if (strncmp(fs->path, this->path, fs->pathlen) != 0)
> +               if (strncmp(fs->path, this->path, fs->pathlen) != 0 ||
> +                               this->path[fs->pathlen] != '/')
>                         continue;



                this->parent = fs;

Regards.
Krishna Harathi

On Tue, May 5, 2015 at 4:19 PM, Frank Filz <[email protected]> wrote:

> Could you see if the top patch in this branch fixes the problem?
>
>
>
> https://github.com/ffilz/nfs-ganesha/commits/find-parent
>
>
>
> Thanks
>
>
>
> Frank
>
>
>
> *From:* Krishna Harathi [mailto:[email protected]]
> *Sent:* Tuesday, May 5, 2015 3:29 PM
> *To:* [email protected]
> *Subject:* [Nfs-ganesha-devel] posix_find_parent() routine logic error
>
>
>
> In  the outcome of this routine, "/exports/nfs10" is resulting as child of
> "/exports/nfs1"
>
> instead of child of "/exports" as seen in the log entries (shown below).
>
> Ganesha exits with CRIT error later, unable to claim /exports/nfs10.
>
>
>
> 05/05/2015 14:39:40 : epoch 5549389c : oneblox-40079 :
> ganesha.nfsd-20428[main] posix_find_parent :FSAL :INFO :File system
> /exports/nfs10 is a child of /exports/nfs1
>
> 05/05/2015 14:39:40 : epoch 5549389c : oneblox-40079 :
> ganesha.nfsd-20428[main] posix_find_parent :FSAL :INFO :File system
> /exports/nfs1 is a child of /exports
>
> We are using Ganesha 2.1.0, but this routine is not changed in 2.2.0.
>
> Any help in fixing this is appreciated.
>
>
> Regards.
>
> Krishna Harathi
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Nfs-ganesha-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to