Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
parted.14698
parted-print-max-partitions-for-yast.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File parted-print-max-partitions-for-yast.patch of Package parted.14698
From: Anna Maresova <anicka@suse.cz> Date: Wed Mar 25 18:17:28 CET 2020 Subject: parted: print maximum number of partitions for yast Patch-mainline: no, custom SUSE patch Index: parted-3.2/parted/parted.c =================================================================== --- parted-3.2.orig/parted/parted.c +++ parted-3.2/parted/parted.c @@ -1118,10 +1118,13 @@ _print_disk_info (const PedDevice *dev, break; } - printf ("%s:%s:%s:%lld:%lld:%s:%s:%s;\n", + printf ("%s:%s:%s:%lld:%lld:%s:%s:%s", path, end, transport[dev->type], dev->sector_size, dev->phys_sector_size, pt_name, dev->model, disk_flags); + if (getenv("PARTED_PRINT_NUMBER_OF_PARTITION_SLOTS")) + printf(":%lld", diskp && diskp->type->ops->get_max_primary_partition_count ? diskp->type->ops->get_max_primary_partition_count(diskp) : 0); + printf(";\n"); free(path); } else { printf (_("Model: %s (%s)\n"),
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor