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
[email protected]
http://www.beowulf-underground.org/mailman/listinfo/pvfs2-developers

Reply via email to