Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Partition Class Reference

#include <Partition.h>

Inheritance diagram for Partition:

Ext2_Partition Fat_Partition Jfs_Partition Reiser_Partition Xfs_Partition List of all members.

Public Member Functions

 Partition (string partition_name)
virtual ~Partition ()
virtual int status ()
virtual void kill_format ()
virtual bool get_progress_status (double &percent)
virtual void format (YCPList options, ExternalProgram::Stderr_Disposition stderr_disp=ExternalProgram::Stderr_To_Stdout)=0

Protected Attributes

string partition_name
ExternalProgramprocess
int exit_code

Constructor & Destructor Documentation

Partition::Partition string  partition_name  )  [inline]
 

Create an new instance.

virtual Partition::~Partition  )  [inline, virtual]
 

Clean up.


Member Function Documentation

virtual void Partition::format YCPList  options,
ExternalProgram::Stderr_Disposition  stderr_disp = ExternalProgram::Stderr_To_Stdout
[pure virtual]
 

Run mke2fs with the specified arguments and handle stderr.

Implemented in Ext2_Partition, Fat_Partition, Jfs_Partition, Reiser_Partition, and Xfs_Partition.

bool Partition::get_progress_status double &  percent  )  [virtual]
 

Read progress indicator of the makefs process. Range of percent is from 0.0 to 100.0.

Reimplemented in Ext2_Partition, Fat_Partition, Jfs_Partition, Reiser_Partition, and Xfs_Partition.

void Partition::kill_format  )  [virtual]
 

Forcably kill the makefs process

int Partition::status  )  [virtual]
 

Return the exit status of the makefs process, closing the connection if not already done.


Member Data Documentation

int Partition::exit_code [protected]
 

The exit code of the makefs process, or -1 if not yet known.

string Partition::partition_name [protected]
 

The name of the partition.

ExternalProgram* Partition::process [protected]
 

The connection to the makefs process.


The documentation for this class was generated from the following files:
Generated on Tue Jul 17 04:36:08 2007 for yast2-storage by doxygen 1.3.6