[PATCH] Fix Gluster bug - unable to create file/directory under root of the share due to empty dirpath during get_real_filename()

Jeremy Allison jra at samba.org
Wed Aug 22 16:50:25 UTC 2018


On Wed, Aug 22, 2018 at 06:48:24PM +0200, Michael Adam wrote:
> On 2018-08-22 at 12:45 -0400, Ira Cooper wrote:
> > Pardon.
> > 
> > It was me.
> > 
> > Reviewed-by: Ira Cooper <ira at samba.org>
> > 
> > I miss hit the reply/reply all button.
> 
> Ok, thanks for clarifying. :-)
> 
> Still, I see it does the job but don't understand
> (given the commit message) why the corresponding
> change at the vfs_glusterfs level wouldn't have been
> more appropriate.

Because other filesystems than gluster may have
the same problem. In filename.c it's done there
inside get_real_filename_full_scan(), so it also
needs adding to get_real_filename() (which may
or may not call get_real_filename_full_scan()).



More information about the samba-technical mailing list