Skip to content
GitLab
Menu
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
82a6351b
Commit
82a6351b
authored
May 04, 2022
by
Andrius Štikonas
Browse files
Fix location of GPT header on 4K LBA devices.
BUG: 453333
parent
b0ac99a0
Pipeline
#171800
passed with stage
in 3 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/sfdisk/sfdiskbackend.cpp
View file @
82a6351b
...
...
@@ -451,7 +451,8 @@ bool SfdiskBackend::updateDevicePartitionTable(Device &d, const QJsonObject &jso
// Read the maximum number of GPT partitions
qint32
maxEntries
;
QByteArray
gptHeader
;
CopySourceDevice
source
(
d
,
512
,
1023
);
qint64
sectorSize
=
d
.
logicalSize
();
CopySourceDevice
source
(
d
,
sectorSize
,
sectorSize
*
2
-
1
);
ExternalCommand
readCmd
;
gptHeader
=
readCmd
.
readData
(
source
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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