[PATCH] Update VFS mknod to use struct smb_filename.

Jeremy Allison jra at samba.org
Fri May 19 22:27:25 UTC 2017


Hi all,

In order to do the things we need to do in the VFS
moving forward and modernize it, we need to remove
all uses of pathnames passed in as const char *, and
replace them with const struct smb_filename *. This
will allow us to do all the fancy timestamp stuff etc.
I mentioned in my previous patch.

The functions we need to fix are:

disk_free
rename
link
symlink
chdir
readlink
mknod
realpth
getxattr
listxattr
removexattr
setxattr
get_real_filename
chflags

So here is a start, fixing the VFS mknod call
(it was an easy one to start with :-). Most of
these fixups are boilerplate, as most of the
other calls already use const struct smb_filename *.

This is independent of my other patch fixing
up the flags in pathname processing so can
be reviewed and pushed independently of that.

Please review and push if happy !

Cheers,

	Jeremy.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-VFS-Change-SMB_VFS_MKNOD-to-use-const-struct-smb_.patch
Type: text/x-diff
Size: 19618 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170519/a069becb/0001-s3-VFS-Change-SMB_VFS_MKNOD-to-use-const-struct-smb_.diff>


More information about the samba-technical mailing list