Re: [PATCH 07/15] mkfs: structify input parameter passing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux