2020-09-28 00:45:21 +01:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2008-2010 Volker Lanz <vl@fidra.de>
|
|
|
|
SPDX-FileCopyrightText: 2012-2018 Andrius Štikonas <andrius@stikonas.eu>
|
|
|
|
SPDX-FileCopyrightText: 2015 Chris Campbell <c.j.campbell@ed.ac.uk>
|
|
|
|
SPDX-FileCopyrightText: 2020 Arnaud Ferraris <arnaud.ferraris@collabora.com>
|
|
|
|
SPDX-FileCopyrightText: 2020 Gaël PORTAY <gael.portay@collabora.com>
|
2019-06-12 17:41:11 +01:00
|
|
|
|
2020-09-28 00:45:21 +01:00
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef KPMCORE_EXT4_H
|
2017-09-10 20:12:52 +01:00
|
|
|
#define KPMCORE_EXT4_H
|
2015-06-04 01:29:22 +01:00
|
|
|
|
|
|
|
#include "util/libpartitionmanagerexport.h"
|
|
|
|
|
|
|
|
#include "fs/ext2.h"
|
|
|
|
|
2019-06-12 17:41:11 +01:00
|
|
|
#include <QtGlobal>
|
|
|
|
|
2015-06-04 01:29:22 +01:00
|
|
|
class Report;
|
|
|
|
|
2019-06-12 17:41:11 +01:00
|
|
|
class QString;
|
|
|
|
|
2015-06-04 01:29:22 +01:00
|
|
|
namespace FS
|
|
|
|
{
|
2015-07-13 15:16:36 +01:00
|
|
|
/** An ext4 file system.
|
|
|
|
|
|
|
|
Basically the same as ext2.
|
|
|
|
|
|
|
|
@author Volker Lanz <vl@fidra.de>
|
|
|
|
*/
|
|
|
|
class LIBKPMCORE_EXPORT ext4 : public ext2
|
|
|
|
{
|
|
|
|
public:
|
2020-03-21 13:18:13 +00:00
|
|
|
ext4(qint64 firstsector, qint64 lastsector, qint64 sectorsused, const QString& label, const QVariantMap& features = {});
|
2015-07-13 15:16:36 +01:00
|
|
|
|
|
|
|
public:
|
2016-09-05 12:10:56 +01:00
|
|
|
bool create(Report& report, const QString& deviceNode) override;
|
2016-08-08 02:01:35 +01:00
|
|
|
bool resizeOnline(Report& report, const QString& deviceNode, const QString& mountPoint, qint64 length) const override;
|
2016-05-17 18:01:31 +01:00
|
|
|
qint64 maxCapacity() const override;
|
2016-08-08 02:01:35 +01:00
|
|
|
|
|
|
|
CommandSupportType supportGrowOnline() const override {
|
|
|
|
return m_Grow;
|
|
|
|
}
|
2015-07-13 15:16:36 +01:00
|
|
|
};
|
2015-06-04 01:29:22 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|