Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 590418 Details for
Bug 829960
parted on ppc64 exits with error and no error message when writing GPT (but in fact writes it anyway)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
gpt patch to fix endianness issue
0001-gpt-Fix-endianness-issue-when-using-pth-FirstUsableL.patch (text/plain), 1.09 KB, created by
Richard W.M. Jones
on 2012-06-08 12:22:09 UTC
(
hide
)
Description:
gpt patch to fix endianness issue
Filename:
MIME Type:
Creator:
Richard W.M. Jones
Created:
2012-06-08 12:22:09 UTC
Size:
1.09 KB
patch
obsolete
>From 54bfe3fac90465b2b5150d8d8dac88511b869fd7 Mon Sep 17 00:00:00 2001 >From: Fedora Ninjas <parted-owner@fedoraproject.org> >Date: Fri, 8 Jun 2012 13:19:25 +0100 >Subject: [PATCH] gpt: Fix endianness issue when using pth->FirstUsableLBA. > >Signed-off-by: Richard W.M. Jones <rjones@redhat.com> >--- > libparted/labels/gpt.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/libparted/labels/gpt.c b/libparted/labels/gpt.c >index 4c72cd2..3c26489 100644 >--- a/libparted/labels/gpt.c >+++ b/libparted/labels/gpt.c >@@ -1792,12 +1792,12 @@ gpt_get_max_supported_partition_count (const PedDisk *disk, int *max_n) > > if (!_header_is_valid (disk, pth, 1)) > { >- pth->FirstUsableLBA = 34; >+ pth->FirstUsableLBA = PED_CPU_TO_LE64 (34); > pth->SizeOfPartitionEntry > = PED_CPU_TO_LE32 (sizeof (GuidPartitionEntry_t)); > } > >- *max_n = (disk->dev->sector_size * (pth->FirstUsableLBA - 2) >+ *max_n = (disk->dev->sector_size * (PED_LE64_TO_CPU (pth->FirstUsableLBA)-2) > / PED_LE32_TO_CPU (pth->SizeOfPartitionEntry)); > pth_free (pth); > return true; >-- >1.7.10.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 829960
: 590418