mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 10:31:35 +00:00
LastLBA is only present for GPT table
Signed-off-by: Guillaume Rose <guillaume.rose@docker.com>
This commit is contained in:
parent
65f3d9bcc1
commit
518220ee44
@ -83,7 +83,7 @@ func extend(d, fsType string) error {
|
||||
return fmt.Errorf("Partition 1 on disk %s is not a Linux Partition", d)
|
||||
}
|
||||
|
||||
if partition.Start+partition.Size == f.PartitionTable.LastLBA {
|
||||
if f.PartitionTable.Label == "gpt" && partition.Start+partition.Size == f.PartitionTable.LastLBA {
|
||||
log.Printf("No free space on device to extend partition")
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user