Module Part can be considered as the heart of Surprise Library. This module receives requests via library API and serves them. It calls functions of filesystem modules, general converter, on-line conversion module and partitioner module . This module is responsible for correct serving requests and for calling functions of other modules of Surprise Library with correct (and checked) parameters.
There are two types of requests currently supported.
The program can obtain by calling function
information about computer hard disks and partitioning of them.
The program process modification of partitioning by calling
commit_disks(). This function can be called in two
different modes - `check-only' mode and `modification' mode.
The function only performs checking for possible conflicts
in new partitioning of disks in `check-only' mode;
it modifies partition structure only in `modification' mode and
only in case that there are no fatal conflicts in the structure
proposed by calling program. The third type of requests,
currently not supported, is calling function
to obtain information about files stored on a certain partition.