[Pvfs2-developers] pvfs2.ko and 2.6.21

Sam Lang slang at mcs.anl.gov
Thu May 10 13:41:27 EDT 2007


How's this?  I've only tried building against 2.6.21 yet.  Seems to  
work there.

-sam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-2-6-21-fixes.patch
Type: application/octet-stream
Size: 10862 bytes
Desc: not available
Url : http://www.beowulf-underground.org/pipermail/pvfs2-developers/attachments/20070510/1e4370d1/kernel-2-6-21-fixes.obj
-------------- next part --------------


On May 10, 2007, at 10:44 AM, Robert Latham wrote:

> Well looks like we've got another kernel API change to deal with.  Our
> kerel module no longer compiles against 2.6.21.  There are two API
> changes we have to accomodate in pvfs2-proc.c:
>
> easy:  register_sysctl_table() now takes just one argument, not two,
> so something like this does the trick:
>
> #ifdef HAVE_TWO_ARG_REGISTER_SYSCTL_TABLE
>         fs_table_header = register_sysctl_table(fs_table, 0);
> #else
>         fs_table_header = register_sysctl_table(fs_table);
> #endif
>
>
> harder: 'struct ctl_table' still has the same number of members,  
> but now
> instead of this:
>
> struct ctl_table  /* old (2.6.20 and earlier) version */
> {
>         int ctl_name;                   /* Binary ID */
>         const char *procname;           /* Text ID for /proc/sys,  
> or zero */
>         void *data;
>         int maxlen;
>         mode_t mode;
>         ctl_table *child;
>         proc_handler *proc_handler;     /* Callback for text  
> formatting */
>         ctl_handler *strategy;          /* Callback function for  
> all r/w */
>         struct proc_dir_entry *de;      /* /proc control block */
>         void *extra1;
>         void *extra2;
> };
>
> it looks like this:
> struct ctl_table  /* new 2.6.21 version */
> {
>         int ctl_name;                   /* Binary ID */
>         const char *procname;           /* Text ID for /proc/sys,  
> or zero */
>         void *data;
>         int maxlen;
>         mode_t mode;
>         ctl_table *child;
>         ctl_table *parent;              /* Automatically set */
>         proc_handler *proc_handler;     /* Callback for text  
> formatting */
>         ctl_handler *strategy;          /* Callback function for  
> all r/w */
>         void *extra1;
>         void *extra2;
> };
>
> There is now a 'parent' member and no longer a 'de' member.   Anybody
> want to field this one?  I can't get to it for a few days.
>
> ==rob
>
> -- 
> Rob Latham
> Mathematics and Computer Science Division    A215 0178 EA2D B059 8CDF
> Argonne National Lab, IL USA                 B29D F333 664A 4280 315B
> _______________________________________________
> Pvfs2-developers mailing list
> Pvfs2-developers at beowulf-underground.org
> http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers
>



More information about the Pvfs2-developers mailing list