Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
KPMCore
Commits
08d2e3dc
Commit
08d2e3dc
authored
Jan 15, 2022
by
Andrius Štikonas
Browse files
Changing swap labels while swap is active does not seem to work anymore.
parent
7eb2ceed
Pipeline
#124101
passed with stage
in 1 minute and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fs/linuxswap.cpp
View file @
08d2e3dc
...
...
@@ -122,12 +122,6 @@ bool linuxswap::writeLabel(Report& report, const QString& deviceNode, const QStr
return
cmd
.
run
(
-
1
)
&&
cmd
.
exitCode
()
==
0
;
}
bool
linuxswap
::
writeLabelOnline
(
Report
&
report
,
const
QString
&
deviceNode
,
const
QString
&
mountPoint
,
const
QString
&
newLabel
)
{
Q_UNUSED
(
mountPoint
)
return
writeLabel
(
report
,
deviceNode
,
newLabel
);
}
QString
linuxswap
::
mountTitle
()
const
{
return
xi18nc
(
"@title:menu"
,
"Activate swap"
);
...
...
src/fs/linuxswap.h
View file @
08d2e3dc
...
...
@@ -40,7 +40,6 @@ public:
bool
create
(
Report
&
report
,
const
QString
&
deviceNode
)
override
;
bool
resize
(
Report
&
report
,
const
QString
&
deviceNode
,
qint64
length
)
const
override
;
bool
writeLabel
(
Report
&
report
,
const
QString
&
deviceNode
,
const
QString
&
newLabel
)
override
;
bool
writeLabelOnline
(
Report
&
report
,
const
QString
&
deviceNode
,
const
QString
&
mountPoint
,
const
QString
&
newLabel
)
override
;
bool
copy
(
Report
&
report
,
const
QString
&
targetDeviceNode
,
const
QString
&
sourceDeviceNode
)
const
override
;
bool
updateUUID
(
Report
&
report
,
const
QString
&
deviceNode
)
const
override
;
qint64
readUsedCapacity
(
const
QString
&
deviceNode
)
const
override
;
...
...
@@ -76,9 +75,6 @@ public:
CommandSupportType
supportSetLabel
()
const
override
{
return
m_SetLabel
;
}
CommandSupportType
supportSetLabelOnline
()
const
override
{
return
m_SetLabel
;
}
CommandSupportType
supportUpdateUUID
()
const
override
{
return
m_UpdateUUID
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment