set FS support for parted backend only if the file system code itself hasn't

set support

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=1274431
This commit is contained in:
Volker Lanz 2012-01-18 10:47:42 +00:00
parent 835d7c0844
commit a77c0fe4a7
1 changed files with 17 additions and 6 deletions

View File

@ -290,12 +290,23 @@ LibPartedBackend::LibPartedBackend(QObject*, const QList<QVariant>&) :
void LibPartedBackend::initFSSupport()
{
#if defined LIBPARTED_FILESYSTEM_SUPPORT
FS::fat16::m_Shrink = FileSystem::cmdSupportBackend;
FS::fat16::m_Grow = FileSystem::cmdSupportBackend;
FS::hfs::m_Shrink = FileSystem::cmdSupportBackend;
FS::hfsplus::m_Shrink = FileSystem::cmdSupportBackend;
FS::hfs::m_GetUsed = FileSystem::cmdSupportBackend;
FS::hfsplus::m_GetUsed = FileSystem::cmdSupportBackend;
if (FS::fat16::m_Shrink == FileSystem::cmdSupportNone)
FS::fat16::m_Shrink = FileSystem::cmdSupportBackend;
if (FS::fat16::m_Grow == FileSystem::cmdSupportNone)
FS::fat16::m_Grow = FileSystem::cmdSupportBackend;
if (FS::hfs::m_Shrink == FileSystem::cmdSupportNone)
FS::hfs::m_Shrink = FileSystem::cmdSupportBackend;
if (FS::hfsplus::m_Shrink == FileSystem::cmdSupportNone)
FS::hfsplus::m_Shrink = FileSystem::cmdSupportBackend;
if (FS::hfs::m_GetUsed == FileSystem::cmdSupportNone)
FS::hfs::m_GetUsed = FileSystem::cmdSupportBackend;
if (FS::hfsplus::m_GetUsed == FileSystem::cmdSupportNone)
FS::hfsplus::m_GetUsed = FileSystem::cmdSupportBackend;
#endif
}