Use QStringList to store fstab options.
This commit is contained in:
parent
687e3fc7d4
commit
4257021857
|
@ -47,11 +47,11 @@ FstabEntry::FstabEntry(const QString& fsSpec, const QString& mountPoint, const Q
|
|||
: m_fsSpec(fsSpec)
|
||||
, m_mountPoint(mountPoint)
|
||||
, m_type(type)
|
||||
, m_options(options)
|
||||
, m_dumpFreq(dumpFreq)
|
||||
, m_passNumber(passNumber)
|
||||
, m_comment(comment)
|
||||
{
|
||||
m_options = options.split(QLatin1Char(','));
|
||||
m_entryType = FstabEntryType::comment;
|
||||
if (fsSpec.startsWith(QStringLiteral("UUID="))) {
|
||||
m_entryType = FstabEntryType::uuid;
|
||||
|
|
|
@ -49,7 +49,7 @@ public:
|
|||
const QString& type() const {
|
||||
return m_type; /**< @return the type of the file system */
|
||||
}
|
||||
const QString& options() const {
|
||||
const QStringList& options() const {
|
||||
return m_options; /**< @return the mount options associated with the file system */
|
||||
}
|
||||
int dumpFreq() const {
|
||||
|
@ -70,7 +70,7 @@ private:
|
|||
QString m_deviceNode;
|
||||
QString m_mountPoint;
|
||||
QString m_type;
|
||||
QString m_options;
|
||||
QStringList m_options;
|
||||
int m_dumpFreq;
|
||||
int m_passNumber;
|
||||
QString m_comment;
|
||||
|
@ -79,7 +79,7 @@ private:
|
|||
|
||||
typedef QList<FstabEntry> FstabEntryList;
|
||||
|
||||
FstabEntryList readFstabEntries(const QString& fstabPath = QStringLiteral("/etc/fstab"));
|
||||
QStringList possibleMountPoints(const QString& deviceNode, const QString& fstabPath = QStringLiteral("/etc/fstab"));
|
||||
LIBKPMCORE_EXPORT FstabEntryList readFstabEntries(const QString& fstabPath = QStringLiteral("/etc/fstab"));
|
||||
LIBKPMCORE_EXPORT QStringList possibleMountPoints(const QString& deviceNode, const QString& fstabPath = QStringLiteral("/etc/fstab"));
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue