On Mon, Dec 02, 2013 at 09:11:03AM -0800, Christoph Hellwig wrote: > > + const char name; > > + const char *subopts[MAX_SUBOPTS]; > > + struct subopt_param { > > + int index; > > + long long minval; > > + long long maxval; > > + } subopt_params[MAX_SUBOPTS]; > > +}; > > Any reason to have a separate array for subopts instead of > moving it into struct subopt_param? getsubopt() requires a array of tokens for it's parsing, hence the separation of the subopts names and the related parameters. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs