aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-23Add //visibility:any_system_partitionHEADmastermainJeongik Cha
system image which is declared in Android.bp should include the module. Bug: 321000103 Test: m nothing Change-Id: I3eda915b494c652205302b392829194790220f46
2023-10-11Fix hybrid MBR recognition on --android-dump am: 20a492d803 am: 5029a9c6b3 ↵android-u-qpr3-beta-2-gpl3l H4ck3r C0mf0r7
am: c0ab9a36ac am: e7d823bb48 am: 92000ece0f Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2781737 Change-Id: Ib1913afc80f2b8a727a151048e40bb404a3710f5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11Fix hybrid MBR recognition on --android-dump am: 20a492d803 am: 5029a9c6b3 ↵android-u-qpr3-beta-1-gplandroid-u-qpr2-beta-2-gpl3l H4ck3r C0mf0r7
am: c0ab9a36ac am: e7d823bb48 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2781737 Change-Id: Ia353770de2aece08db510eb09f746891be9263b0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11Fix hybrid MBR recognition on --android-dump am: 20a492d803 am: 5029a9c6b3 ↵3l H4ck3r C0mf0r7
am: c0ab9a36ac Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2781737 Change-Id: Ic2930771a2749ab3b2cb431467fcbaf5c9f3d58e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11Fix hybrid MBR recognition on --android-dump am: 20a492d803 am: 5029a9c6b33l H4ck3r C0mf0r7
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2781737 Change-Id: I04e85a40f948bdf63eb8a65084cf9cd7be070c2e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11Fix hybrid MBR recognition on --android-dump am: 20a492d8033l H4ck3r C0mf0r7
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2781737 Change-Id: Ic909a99e3e9d6bc6e216a49714a3dacb6b24b368 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-10-11Fix hybrid MBR recognition on --android-dumpandroid-u-rb-dp-10-gplandroid-u-rb-dp-10-gpl3l H4ck3r C0mf0r7
Android parses the output of 'sgdisk --android-dump <blockdev>' to detect the partition table of external storage devices (SD cards, USB storage devices, etc.) This function exclusive to Android's fork of sgdisk is missing a switch case handling devices that use hybrid MBR as their partitioning scheme. In Linux, devices using hybrid MBR are handled by simply ignoring the MBR table, and using GPT. Android should do the same. This commit fixes external storage devices formatted with hybrid GPT being treated by Android as unknown. Change-Id: I7a06e1f24674e7566edc834b95e4e1898e28ea75
2023-09-09[automerger skipped] Build sgdisk with _FILE_OFFSET_BITS=64. am: 1fedcd9d5f ↵Elliott Hughes
-s ours am: 1e14892bad -s ours am skip reason: Merged-In Icc740cbcf2a0e8747876d1e725f5439c5795a9b2 with SHA-1 f123bad00c is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/gptfdisk/+/24682072 Change-Id: Iee7aa9707ac616e830f3371d0106ace5b193d0ad Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-08[automerger skipped] Build sgdisk with _FILE_OFFSET_BITS=64. am: 1fedcd9d5f ↵Elliott Hughes
-s ours am skip reason: Merged-In Icc740cbcf2a0e8747876d1e725f5439c5795a9b2 with SHA-1 f123bad00c is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/external/gptfdisk/+/24682072 Change-Id: I848a6727e1441c92bc2bb7ab399c4dc3d438bafd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-09-06Build sgdisk with _FILE_OFFSET_BITS=64.Elliott Hughes
Since https://sourceforge.net/p/gptfdisk/code/ci/7dfa8984f5a30f313d8675ff6097c8592d636d10/ upstream assumes that it's being built with _FILE_OFFSET_BITS=64. This is true for 64-bit Android, but not for 32-bit Android. We can't change that globally because it would be a source-incompatible ABI change (_all_ code that uses off_t or an associated function would have to be recompiled with _FILE_OFFSET_BITS=64, including code not in our tree). We can safely make this change here, though, because the "library" is actually just to reduce duplication between the sgdisk binary and the fuzzer. We could probably get rid of the library completely and just rely on cc_defaults or a filegroup for this, but the less invasive change is just to add visibility clauses (and a comment!) to ensure that no-one starts exporting anything from here (even though the GPL license makes that unlikely anyway). While I'm here, we can remove the Darwin special case (which was a bit weird, tbh, given that Darwin has _always and only_ had a 64-bit off_t). Bug: https://issuetracker.google.com/298312533 (cherrypick request) Bug: https://issuetracker.google.com/294327337 Test: mm for both a 32-bit lunch and a 64-bit lunch (cherry picked from https://android-review.googlesource.com/q/commit:f123bad00c455f602e7e26e2d6f5ec58ab2754a7) Merged-In: Icc740cbcf2a0e8747876d1e725f5439c5795a9b2 Change-Id: Icc740cbcf2a0e8747876d1e725f5439c5795a9b2
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00c am: 8f28f1ba13 am: ↵Elliott Hughes
bdd2ff508d am: 4fa3acb792 am: 849cff1229 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070 Change-Id: I78a40761661f7925f7c1ce5bf910574332ffaa2d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00c am: 8f28f1ba13 am: ↵Elliott Hughes
bdd2ff508d am: 4fa3acb792 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070 Change-Id: Id55ea6f7b9bc1c7be90640753007fa7365af18cd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00c am: 8f28f1ba13 am: ↵Elliott Hughes
bdd2ff508d Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070 Change-Id: I9b35517c255e0ce8268e1943f157bc3989a6a319 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00c am: 8f28f1ba13Elliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070 Change-Id: I9d23fc8e3e97b1da60c2fc25118c1ff6c1c00022 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64. am: f123bad00cElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2693070 Change-Id: I3124e2ced30ab8e14b0eea8011eb44a06880a70f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-08-03Build sgdisk with _FILE_OFFSET_BITS=64.Elliott Hughes
Since https://sourceforge.net/p/gptfdisk/code/ci/7dfa8984f5a30f313d8675ff6097c8592d636d10/ upstream assumes that it's being built with _FILE_OFFSET_BITS=64. This is true for 64-bit Android, but not for 32-bit Android. We can't change that globally because it would be a source-incompatible ABI change (_all_ code that uses off_t or an associated function would have to be recompiled with _FILE_OFFSET_BITS=64, including code not in our tree). We can safely make this change here, though, because the "library" is actually just to reduce duplication between the sgdisk binary and the fuzzer. We could probably get rid of the library completely and just rely on cc_defaults or a filegroup for this, but the less invasive change is just to add visibility clauses (and a comment!) to ensure that no-one starts exporting anything from here (even though the GPL license makes that unlikely anyway). While I'm here, we can remove the Darwin special case (which was a bit weird, tbh, given that Darwin has _always and only_ had a 64-bit off_t). Bug: https://issuetracker.google.com/294327337 Test: mm for both a 32-bit lunch and a 64-bit lunch Change-Id: Icc740cbcf2a0e8747876d1e725f5439c5795a9b2
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94 am: 4b8353eda7 am: ↵Elliott Hughes
5a5b691f74 am: 73a4849ca2 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: Iedd67b14978e8504425736dc786570fd3373e4e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba am: eafd110250 am: ccf7001d77 am: 3b870bbea5 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: I6e116fadf79afbdc49d51bea6c725f2319aa6c3e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94 am: 4b8353eda7 am: ↵Elliott Hughes
5a5b691f74 am: 2e9d2f4622 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: Ieae7f4a40a23447c75b3334e31c75a2600f41bb6 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba am: eafd110250 am: ccf7001d77 am: a403df7a8e Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: Icca0a5e3ef8257f61acb223d24895745e3be797a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94 am: 4b8353eda7 am: 5a5b691f74Elliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: Ifb9a5508af8ae5f040135983918148e88adf34de Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba am: eafd110250 am: ccf7001d77 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: I1e35a5841cb40b3df20af4b8910adb26f7bec2ee Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94 am: 4b8353eda7 am: 5a5b691f74android-u-qpr1-beta-1-gplElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: I91bd0c9f86cc245df47a1f7da5f29d572913fa54 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba am: eafd110250 am: ccf7001d77 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: Id7f0099769efd931028874e21ba575cd45ff4ad0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94 am: 4b8353eda7android14-devElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: Iacb5a4cba03a21af675c1e91c604992338aa7bef Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba am: eafd110250 Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: Ibcc4227661ea93c0dd8e67c11ad74b6ec6def15b Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56 am: 8780d07b94android-u-beta-4-gplElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: Ib3d5ffa8703f05a9fb42955c322a50ac1593edd4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54a ↵Elliott Hughes
am: 3c6f74c5ba Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: Ied093b396634aeffb8c656058025596b0cffd435 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS." am: 801b546a56Elliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2492736 Change-Id: I357a24df3e2f47e982f8418e0ef8ddcd80843581 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bd am: 2d39d3e54aElliott Hughes
Original change: https://android-review.googlesource.com/c/platform/external/gptfdisk/+/2490477 Change-Id: Id23688f256759a0f091d8c3c4a2140ddcfadcd69 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-03-16Merge "Fix OWNERS."android-u-beta-3-gplandroid-u-beta-2-gplandroid-u-beta-1-gplElliott Hughes
2023-03-16Fix OWNERS.Elliott Hughes
adelva doesn't use/need this, so he doesn't own it. bohu (and the emulator team) only care about the host, so anything that affects them is NSI anyway. So it seems like the "interesting" user here from a security perspective is vold, and OWNERS should probably reflect that (rather than just being what a script once said were the two most recent humans to have touched a file in here). Bug: http://b/271932190 Test: treehugger Change-Id: Ib872a324b68809b2c7404b3a02193b261aa9ad01
2023-03-15Upgrade gptfdisk to cb4bf320748f701a0ed835d4a410f2960f1ce0bdElliott Hughes
This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update gptfdisk For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Test: TreeHugger Change-Id: Ie0d104dec8963b4a0c698f97843fdbf76d0d6fda
2023-03-10Minor code cleanup based on valgrind analysisRod Smith
2023-03-06Document previous mergeRod Smith
2023-03-06Truncate decimal inputs (e.g., '9.5G' becomes '9G')Rod Smith
2023-03-06Do some explicit casts in gptcurses.cc to eliminate compiler warnings.Rod Smith
2023-03-05Document recent mergestRod Smith
2023-03-05Merge /u/djsp/gptfdisk/ branch fix-largest-new into masterb'Roderick W. Smith
https://sourceforge.net/p/gptfdisk/code/merge-requests/31/
2023-03-05Merge /u/khemraj/gptfdisk/ branch master into masterb'Roderick W. Smith
https://sourceforge.net/p/gptfdisk/code/merge-requests/29/
2023-03-05Document recent merge.Rod Smith
2023-01-28Allow partition dynamically allocated by --largest-new to be referenced by ↵David Joaquín Shourabi Porcel
other options The documentation for the option --new explains that: > [a] partnum value of 0 causes the program to use the first available > partition number. Subsequent uses of the -A (--attributes), -c > (--change-name), -t (--typecode), and -u (--partition-guid) options > may also use 0 to refer to the same partition. Although the documentation for the option --largest-new does not mention such functionality, I expected it, and was puzzled when it didn't work.
2022-12-12Use 64bit time_t on linux as wellKhem Raj
Alias 64bit version of stat functions to original functions we are already passing -D_FILE_OFFSET_BITS=64 in linux Makefile Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-07Fix NULL dereference when duplicating string argumentDamian Kurek
poptGetArg can return NULL if there are no additional arguments, which makes strdup dereference NULL on strlen
2022-04-26Updated URLs in man pages to HTTPS rather than HTTPRod Smith
2022-04-16Updated guid.cc to deal with minor change in libuuidRod Smith
2022-04-15Fix failure & crash of sgdisk when compiled with latest popt (commit 740; ↵Rod Smith
presumably eventually release 1.19)
2022-04-14GPT fdisk version 1.0.9Rod Smith
2022-04-12Added several new partition type codesRod Smith
2022-04-12Introduction of unified (multi-OS) MakefileRod Smith
Forgot something!