signon
8.58
|
#include <crypto-handlers.h>
Public Types | |
enum | { Ext2 = 0, Ext3, Ext4 } |
Static Public Member Functions | |
static bool | createPartitionFile (const QString &fileName, const quint32 fileSize) |
Creates a random data file of fileSize Mb. | |
static bool | formatPartitionFile (const QString &fileName, const quint32 fileSystemType) |
Formats a file (block device) for a specific file system type (ext2,ext3,ext4) |
Definition at line 91 of file crypto-handlers.h.
anonymous enum |
Definition at line 93 of file crypto-handlers.h.
bool PartitionHandler::createPartitionFile | ( | const QString & | fileName, |
const quint32 | fileSize | ||
) | [static] |
Creates a random data file of fileSize Mb.
fileName | The name of the file to be created. |
fileSize | The size of the file to be created (Mb) |
Definition at line 113 of file crypto-handlers.cpp.
References BLAME, MEGA_BYTE_SIZE, setFilePermissions(), signonFilePermissions, and TRACE.
Referenced by CryptoManager::setupFileSystem().
bool PartitionHandler::formatPartitionFile | ( | const QString & | fileName, |
const quint32 | fileSystemType | ||
) | [static] |
Formats a file (block device) for a specific file system type (ext2,ext3,ext4)
fileName | Name of the file to be formatted. |
fileSystemType | Type of the file syste |
Definition at line 142 of file crypto-handlers.cpp.
References Ext2, Ext3, Ext4, and SystemCommandLineCallHandler::makeCall().
Referenced by CryptoManager::setupFileSystem().