Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.1
parted
always_print_geom.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File always_print_geom.diff of Package parted
--- parted/parted.c +++ parted/parted.c 2006/03/22 11:09:18 @@ -1231,7 +1231,21 @@ disk = ped_disk_new (*dev); if (!disk) + { + if (ped_unit_get_default () == PED_UNIT_CHS || + ped_unit_get_default () == PED_UNIT_CYLINDER) + { + PedCHSGeometry* chs = &(*dev)->bios_geom; + char* cyl_size = ped_unit_format_custom (*dev, + chs->heads * chs->sectors, + PED_UNIT_KILOBYTE); + printf (_("BIOS cylinder,head,sector geometry: %d,%d,%d. " + "Each cylinder is %s.\n"), + chs->cylinders, chs->heads, chs->sectors, cyl_size); + ped_free (cyl_size); + } goto error; + } peek_word = command_line_peek_word (); if (peek_word) {
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