Inconsistent naming of vfs_read in the VFS Function pointer structure ...

Jeremy Allison jra at samba.org
Fri Dec 2 09:30:18 MST 2011


On Fri, Dec 02, 2011 at 04:15:13AM -0800, Richard Sharpe wrote:
> On Fri, Dec 2, 2011 at 3:02 AM, Andrew Bartlett <abartlet at samba.org> wrote:
> > On Mon, 2011-11-28 at 13:02 -0800, Jeremy Allison wrote:
> >> On Sat, Nov 26, 2011 at 01:19:10PM -0800, Richard Sharpe wrote:
> >> > Hi folks,
> >> >
> >> > I came across this:
> >> >
> >> >         /* File operations */
> >> >
> >> >         .open_fn = vfswrap_open,
> >> >         .create_file = vfswrap_create_file,
> >> >         .close_fn = vfswrap_close,
> >> >         .vfs_read = vfswrap_read,
> >> >         .pread = vfswrap_pread,
> >> >         .write = vfswrap_write,
> >> >         .pwrite = vfswrap_pwrite,
> >> >         .lseek = vfswrap_lseek,
> >> >
> >> > Is there any reason that it is vfs_read and not just read?
> >>
> >> We should probably do a global rename to _fn for 4.0.0,
> >> to have consistent naming. It breaks all outside tree
> >> libraries though.
> >>
> >> Maybe out-of-tree folks can respond ? Would this be
> >> ok for 4.0.0 ?
> >
> > While this would be a bigger change, we already changed a number of
> > other things for out of tree modules (we even changed the init function
> > name!), so it seems like a good opportunity.
> 
> OK, let me raise a bug in bugzilla then. That would seem to be the first step.

Actually right now for master, you can just go ahead
and do it. We're not in feature-freeze yet.

Jeremy.


More information about the samba-technical mailing list