Package VMBuilder :: Module disk :: Class Filesystem
[frames] | no frames]

Class Filesystem

source code

object --+
         |
        Filesystem

Instance Methods
 
__init__(self, vm=None, size=0, type=None, mntpnt=None, filename=None, devletter='a', device='', dummy=False)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
create(self) source code
 
mkfs(self) source code
 
mkfs_fstype(self) source code
 
fstab_fstype(self) source code
 
fstab_options(self) source code
 
mount(self, rootmnt) source code
 
umount(self) source code
 
get_suffix(self)
Returns 'a4' for a device that would be called /dev/sda4 in the guest..
source code
string
devletters(self)
Returns: the series of letters that ought to correspond to the device inside the VM.
source code
 
get_index(self)
Index of the disk (starting from 0)
source code
 
set_type(self, type) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables
  preallocated
Whether the file existed already (True if it did, False if we had to create it).
Properties

Inherited from object: __class__

Method Details

__init__(self, vm=None, size=0, type=None, mntpnt=None, filename=None, devletter='a', device='', dummy=False)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

get_suffix(self)

source code 

Returns 'a4' for a device that would be called /dev/sda4 in the guest.. This allows other parts of VMBuilder to set the prefix to something suitable.

devletters(self)

source code 
Returns: string
the series of letters that ought to correspond to the device inside the VM. E.g. the first filesystem of a VM would return 'a', while the 702nd would return 'zz'