There are only few data members in struct disk_info
containing
information about partition structure of a disk. The Partitioner Module
creates and deletes some disk parameters to allow the user to customize
the partition table setting as much as possible. There are four
functions designed for handling disk parameters. They are following:
int parget(int parcount, struct user_parameter *pars,int ID,ERR_PARAM);
returns the value of the disk parameter identified by ID
.
void parselect(int parcount, struct user_parameter *pars,int ID,int value,ERR_PARAM);
sets the value of the disk parameter identified by ID
to value
.
void paradd(int *parcount, struct user_parameter **pars,struct user_parameter *master,ERR_PARAM);
adds a new disk paramater which is a copy of the parameter specified by master
.
void pardelete(int *parcount, struct user_parameter **pars,int ID,ERR_PARAM);
deletes the parameter identified by ID
.
The list of disk parameters specific to the filesystems can be found in the partition table type specific sections.