lkml.org 
[lkml]   [2007]   [Sep]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 03/24] create cleanup helper svc_msnfs()
From
Date
On Wed, 2007-09-19 at 10:45 -0700, Dave Hansen wrote:
> On Wed, 2007-09-19 at 19:39 +0200, Jan Engelhardt wrote:
> >
> > >+static inline int svc_msnfs(struct svc_fh *ffhp)
> > >+{
> > >+#ifdef MSNFS
> > >+ return (ffhp->fh_export->ex_flags & NFSEXP_MSNFS);
> > >+#else
> > >+ return 0;
> > >+#endif
> > >+}
> >
> > The name looks kinda confusing. msnfs? almost makes you think
> > what's got microsoft to do with it..
>
> I'd give it a better name if I had any idea what it means. :)
>
> The macros and names are all preexisting. I just took the liberty of
> pulling the #ifdef out into a function because the code got very
> unreadable with the other modifications that I need.
>
> If it were some kind of larger API, we could come up with something
> better. But, for a single isolated user, I think it is OK.

The msnfs option means enable the use of MS Windows share locks, so yes,
the name is appropriate.

Trond

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-09-19 19:57    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site