[PATCH] Start moving lp_posix_pathnames out of utility functions.

Jeremy Allison jra at samba.org
Sun Dec 13 18:04:26 UTC 2015


On Sun, Dec 13, 2015 at 05:54:08PM +0100, Ralph Boehme wrote:
> On Sat, Dec 12, 2015 at 02:09:17PM -0800, Jeremy Allison wrote:
> > On Sat, Dec 12, 2015 at 10:46:01PM +0100, Ralph Boehme wrote:
> > > While we're at it, maybe we can start splitting out POSIX pathnames
> > > capability out of file_struct.posix_open.FSP_POSIX_FLAGS_OPEN and add
> > > FSP_POSIX_FLAGS_PATHNAMES, please see attached patchset.
> > > 
> > > Btw, it seems we somehow messed up the POSIX rename patchset and now
> > > open_file_ntcreate() doesn't set FSP_POSIX_FLAGS_RENAME when
> > > posix_open is true. I'll take a closer look tomorrow.
> 
> ah, I confused that with the same check we do in open_directory().
> 
> > Wouldn't that be fixed by changing your patch to be:
> > 
> > --- a/source3/smbd/open.c
> > +++ b/source3/smbd/open.c
> > @@ -2703,7 +2703,9 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
> >  	fsp->access_mask = open_access_mask; /* We change this to the
> >  					      * requested access_mask after
> >  					      * the open is done. */
> > -	fsp->posix_flags |= posix_open ? FSP_POSIX_FLAGS_OPEN : 0;
> > +	if (posix_open) {
> > +		fsp->posix_flags |= FSP_POSIX_FLAGS_ALL;
> > +	}
> >  
> >  	if (timeval_is_zero(&request_time)) {
> >  		request_time = fsp->open_time;
> 
> yes, I guess we should set FSP_POSIX_FLAGS_ALL here as well, as we do
> in open_directory().

OK, I'll push the (attached) on top.

> yes, for now. For SMB3 UNIX extension at least POSIX pathname
> behaviour must be negotiable seperately (for OS X clients that may want
> general POSIX behaviour *and* named streams, no no POSIX pathnames).

Can you re-create your extra pathnames flag patch on top
of what is pushed so we prepare for the changes for OS X
clients ?

Cheers,

	Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-smbd-When-requesting-posix-open-in-open_file_ntcr.patch
Type: text/x-diff
Size: 1085 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20151213/b25637c6/0001-s3-smbd-When-requesting-posix-open-in-open_file_ntcr.diff>


More information about the samba-technical mailing list