--- parted-1.6.25.1.orig/debian/patches/sparc-no-chs-in-udeb.dpatch +++ parted-1.6.25.1/debian/patches/sparc-no-chs-in-udeb.dpatch @@ -0,0 +1,26 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## sparc-no-chs-in-udeb.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: No description. + +@DPATCH@ +diff -urNad parted-1.6.25.1~/libparted/disk_sun.c parted-1.6.25.1/libparted/disk_sun.c +--- parted-1.6.25.1~/libparted/disk_sun.c 2005-11-11 13:35:53.000000000 +0100 ++++ parted-1.6.25.1/libparted/disk_sun.c 2006-02-28 10:17:29.000000000 +0100 +@@ -255,6 +255,7 @@ + if (PED_BE16_TO_CPU(label->nsect) != dev->bios_geom.sectors || + PED_BE16_TO_CPU(label->ntrks) != dev->bios_geom.heads) { + #ifndef DISCOVER_ONLY ++#ifndef NOCHSEXCEPTION + if (ped_exception_throw ( + PED_EXCEPTION_WARNING, + PED_EXCEPTION_IGNORE_CANCEL, +@@ -271,6 +272,7 @@ + == PED_EXCEPTION_CANCEL) + return 0; + #endif ++#endif + dev->bios_geom.sectors = PED_BE16_TO_CPU(label->nsect); + dev->bios_geom.heads = PED_BE16_TO_CPU(label->ntrks); + dev->bios_geom.cylinders = PED_BE16_TO_CPU(label->pcylcount); --- parted-1.6.25.1.orig/debian/patches/errors-to-stderr.dpatch +++ parted-1.6.25.1/debian/patches/errors-to-stderr.dpatch @@ -0,0 +1,112 @@ +#!/bin/sh -e +## errors_to_stderr.dpatch by Timshel Knoll-Miller +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Sends error output to stderr instead of stdout. +## DP: Candidate for upstream inclusion. + +. `dirname $0`/DPATCH + +@DPATCH@ +diff -urNad /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/strlist.c parted-1.6.6/parted/strlist.c +--- /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/strlist.c 2004-02-24 12:02:11.000000000 +1100 ++++ parted-1.6.6/parted/strlist.c 2004-02-24 12:03:32.000000000 +1100 +@@ -196,13 +196,19 @@ + #endif /* !ENABLE_NLS */ + + static void +-print_wchar (const wchar_t* str, size_t count) ++fprint_wchar (FILE *fd, const wchar_t* str, size_t count) + { + char* tmp = wchar_to_str (str, count); +- printf ("%s", tmp); ++ fprintf (fd, "%s", tmp); + free (tmp); + } + ++static void ++print_wchar (const wchar_t* str, size_t count) ++{ ++ fprint_wchar (stdout, str, count); ++} ++ + static StrList* + str_list_alloc () + { +@@ -450,8 +456,8 @@ + } + + void +-str_list_print_wrap (const StrList* list, int line_length, int offset, +- int indent) ++str_list_fprint_wrap (FILE *fd, const StrList* list, int line_length, ++ int offset, int indent) + { + const StrList* walk; + const wchar_t* str; +@@ -504,25 +510,32 @@ + cut_right++); + + if (cut_left > 0) +- print_wchar (str, cut_left + 1); ++ fprint_wchar (fd, str, cut_left + 1); + + str += cut_right; + str_len -= cut_right; + line_left = line_length - indent; + + if (walk->next || *str) +- printf ("\n%s", spaces); ++ fprintf (fd, "\n%s", spaces); + else if (line_break) +- printf ("\n"); ++ fprintf (fd, "\n"); + } + +- print_wchar (str, 0); ++ fprint_wchar (fd, str, 0); + line_left -= wchar_strlen (str); + } + + free (spaces); + } + ++void ++str_list_print_wrap (const StrList* list, int line_length, int offset, ++ int indent) ++{ ++ str_list_fprint_wrap (stdout, list, line_length, offset, indent); ++} ++ + static int + _str_list_match_node (const StrList* list, const wchar_t* str) + { +diff -urNad /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/strlist.h parted-1.6.6/parted/strlist.h +--- /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/strlist.h 2004-02-24 12:02:11.000000000 +1100 ++++ parted-1.6.6/parted/strlist.h 2004-02-24 12:02:20.000000000 +1100 +@@ -47,6 +47,8 @@ + extern char* str_list_convert_node (const StrList* list); + + extern void str_list_print (const StrList* list); ++extern void str_list_fprint_wrap (FILE *fd, const StrList* list, ++ int line_length, int offset, int indent); + extern void str_list_print_wrap (const StrList* list, int line_length, + int offset, int indent); + extern int str_list_match_any (const StrList* list, const char* str); +diff -urNad /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/ui.c parted-1.6.6/parted/ui.c +--- /home/timshel/src/debian/dpatch/parted/parted-1.6.6/parted/ui.c 2004-02-24 12:02:11.000000000 +1100 ++++ parted-1.6.6/parted/ui.c 2004-02-24 12:02:20.000000000 +1100 +@@ -257,7 +257,12 @@ + ": ", ex->message, "\n", NULL); + } + +- str_list_print_wrap (text, screen_width (), 0, 0); ++ /* print exception to stderr if in script mode */ ++ if (opt_script_mode) { ++ str_list_fprint_wrap (stderr, text, screen_width (), 0, 0); ++ } else { ++ str_list_print_wrap (text, screen_width (), 0, 0); ++ } + str_list_destroy (text); + } + --- parted-1.6.25.1.orig/debian/patches/UPSTREAM +++ parted-1.6.25.1/debian/patches/UPSTREAM @@ -0,0 +1,8 @@ +These are the patches we want to include upstream : + +s390.dpatch * copyright * + +# Should be already merged on 1.6.25 + +# Backport from 1.6.26 +fix_rescue_segfault.dpatch --- parted-1.6.25.1.orig/debian/patches/doc-package.dpatch +++ parted-1.6.25.1/debian/patches/doc-package.dpatch @@ -0,0 +1,96 @@ +#! /bin/sh -e +## doc-package.dpatch by Timshel Knoll +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Some small debian parted-doc fixup. +## DP: Will stay as debian specific change. + +. `dirname $0`/DPATCH + +@DPATCH@ +diff -urNda parted-1.6.12.orig/doc/parted.8 parted-1.6.12/doc/parted.8 +--- parted-1.6.12.orig/doc/parted.8 2004-08-31 11:43:35.000000000 +0200 ++++ parted-1.6.12/doc/parted.8 2004-08-31 11:45:35.000000000 +0200 +@@ -23,8 +23,8 @@ + .SH DESCRIPTION + This manual page documents briefly the + .BR parted +-command. Complete documentation is distributed with the package in +-GNU Info format; see below. ++command. Complete documentation is distributed with the parted-doc Debian ++package in GNU Info format; see below. + .PP + .B parted + is a disk partitioning and partition resizing program. It allows you to +@@ -37,10 +37,10 @@ + displays a help message. + .TP + .B -i, --interactive +-where necessary, prompts for user intervention. ++prompt the user where necessary. + .TP + .B -s, --script +-never prompts for user intervention. ++never prompt the user. + .TP + .B -v, --version + displays the version. +diff -urNda parted-1.6.12.orig/doc/parted.info parted-1.6.12/doc/parted.info +--- parted-1.6.12.orig/doc/parted.info 2004-08-31 11:43:35.000000000 +0200 ++++ parted-1.6.12/doc/parted.info 2004-08-31 11:46:05.000000000 +0200 +@@ -477,11 +477,11 @@ + + `-i' + `--interactive' +- where necessary, prompt for user intervention ++ prompt the user where necessary + + `-s' + `--script' +- never prompt for user intervention ++ never prompt the user + + `-v' + `--version' +diff -urNda parted-1.6.12.orig/doc/parted.texi parted-1.6.12/doc/parted.texi +--- parted-1.6.12.orig/doc/parted.texi 2004-08-31 11:43:35.000000000 +0200 ++++ parted-1.6.12/doc/parted.texi 2004-08-31 11:44:43.000000000 +0200 +@@ -556,11 +556,11 @@ + + @item -i + @itemx --interactive +-where necessary, prompt for user intervention ++prompt the user where necessary + + @item -s + @itemx --script +-never prompt for user intervention ++never prompt the user + + @item -v + @itemx --version +@@ -987,7 +987,7 @@ + completely contains all logical partitions. + + Note that Parted can manipulate partitions whether or not they have been +-defragmented, so you do not need to both defragmenting the disk before ++defragmented, so you do not need to defragment the disk before + using Parted. + + Supported file systems: +diff -urNda parted-1.6.12.orig/docpt_BR-parted.8 parted-1.6.12/doc/pt_BR-parted.8 +--- parted-1.6.12.orig/docpt_BR-parted.8 2004-08-31 11:43:35.000000000 +0200 ++++ parted-1.6.12/doc/pt_BR-parted.8 2004-08-31 11:44:43.000000000 +0200 +@@ -59,10 +59,10 @@ + .\" displays a help message. + .\" .TP + .\" .B -i, --interactive +-.\" where necessary, prompts for user intervention. ++.\" prompt the user where necessary + .\" .TP + .\" .B -s, --script +-.\" never prompts for user intervention. ++.\" never prompt the user + .\" .TP + .\" .B -v, --version + .\" displays the version. --- parted-1.6.25.1.orig/debian/patches/s390.dpatch +++ parted-1.6.25.1/debian/patches/s390.dpatch @@ -0,0 +1,2340 @@ +#! /bin/sh -e +## s390.dpatch by Lucius Leland +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Another s390 bigger sector size patch, replaces Bastian's +## DP: more limited sector-size pactch. +## DP: Closes: #243554 +## DP: Candidate for upstream inclusion. + +. `dirname $0`/DPATCH + +@DPATCH@ +diff -urNad parted-1.6.24~/include/parted/device.h parted-1.6.24/include/parted/device.h +--- parted-1.6.24~/include/parted/device.h 2005-10-10 15:50:40.433548848 -0300 ++++ parted-1.6.24/include/parted/device.h 2005-10-10 15:53:57.626570952 -0300 +@@ -33,7 +33,8 @@ + PED_DEVICE_FILE = 5, + PED_DEVICE_ATARAID = 6, + PED_DEVICE_I2O = 7, +- PED_DEVICE_UBD = 8 ++ PED_DEVICE_UBD = 8, ++ PED_DEVICE_DASD = 9 + } PedDeviceType; + + typedef struct _PedDevice PedDevice; +diff -urNad parted-1.6.24~/libparted/disk_s390.c parted-1.6.24/libparted/disk_s390.c +--- parted-1.6.24~/libparted/disk_s390.c 1969-12-31 21:00:00.000000000 -0300 ++++ parted-1.6.24/libparted/disk_s390.c 2004-09-01 09:22:33.000000000 -0300 +@@ -0,0 +1,1739 @@ ++/* ++ libparted - a library for manipulating disk partitions ++ Copyright (C) 2004 Free Software Foundation, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 2 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program; if not, write to the Free Software ++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ ++ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ++ Portions of this file were copied from the s390-tools package and modified ++ for use in libparted. Those portions held the following copyright: ++ ++ (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999-2002 ++ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ++ */ ++ ++#include "config.h" ++ ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include ++#include "disk_s390.h" ++ ++#if ENABLE_NLS ++# include ++# define _(String) dgettext (PACKAGE, String) ++#else ++# define _(String) (String) ++#endif /* ENABLE_NLS */ ++ ++static PedDiskType s390_disk_type; ++ ++/* ++ * IPL1 record ++*/ ++static bootstrap1_t _ipl1 = { ++ 0xC9D7D3F1, { ++ 0x000A0000, 0x0000000F, 0x03000000, ++ 0x00000001, 0x00000000, 0x00000000 ++ } ++}; ++ ++/* ++ * IPL2 record ++ */ ++static bootstrap2_t _ipl2 = { ++ 0xC9D7D3F2, { ++ 0x07003AB8, 0x40000006, 0x31003ABE, ++ 0x40000005, 0x08003AA0, 0x00000000, ++ 0x06000000, 0x20000000, 0x00000000, ++ 0x00000000, 0x00000400, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000, ++ 0x00000000, 0x00000000, 0x00000000 ++ } ++}; ++ ++/* ++ * EBCDIC <-> ASCII conversion tables ++ */ ++static u_int8_t _e2atab[256] = ++{ ++/* 0x00 NUL SOH STX ETX *SEL HT *RNL DEL */ ++ 0x00, 0x01, 0x02, 0x03, 0x07, 0x09, 0x07, 0x7F, ++/* 0x08 -GE -SPS -RPT VT FF CR SO SI */ ++ 0x07, 0x07, 0x07, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, ++/* 0x10 DLE DC1 DC2 DC3 -RES -NL BS -POC ++ -ENP ->LF */ ++ 0x10, 0x11, 0x12, 0x13, 0x07, 0x0A, 0x08, 0x07, ++/* 0x18 CAN EM -UBS -CU1 -IFS -IGS -IRS -ITB ++ -IUS */ ++ 0x18, 0x19, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, ++/* 0x20 -DS -SOS FS -WUS -BYP LF ETB ESC ++ -INP */ ++ 0x07, 0x07, 0x1C, 0x07, 0x07, 0x0A, 0x17, 0x1B, ++/* 0x28 -SA -SFE -SM -CSP -MFA ENQ ACK BEL ++ -SW */ ++ 0x07, 0x07, 0x07, 0x07, 0x07, 0x05, 0x06, 0x07, ++/* 0x30 ---- ---- SYN -IR -PP -TRN -NBS EOT */ ++ 0x07, 0x07, 0x16, 0x07, 0x07, 0x07, 0x07, 0x04, ++/* 0x38 -SBS -IT -RFF -CU3 DC4 NAK ---- SUB */ ++ 0x07, 0x07, 0x07, 0x07, 0x14, 0x15, 0x07, 0x1A, ++/* 0x40 SP RSP ä ---- */ ++ 0x20, 0xFF, 0x83, 0x84, 0x85, 0xA0, 0x07, 0x86, ++/* 0x48 . < ( + | */ ++ 0x87, 0xA4, 0x9B, 0x2E, 0x3C, 0x28, 0x2B, 0x7C, ++/* 0x50 & ---- */ ++ 0x26, 0x82, 0x88, 0x89, 0x8A, 0xA1, 0x8C, 0x07, ++/* 0x58 ß ! $ * ) ; */ ++ 0x8D, 0xE1, 0x21, 0x24, 0x2A, 0x29, 0x3B, 0xAA, ++/* 0x60 - / ---- Ä ---- ---- ---- */ ++ 0x2D, 0x2F, 0x07, 0x8E, 0x07, 0x07, 0x07, 0x8F, ++/* 0x68 ---- , % _ > ? */ ++ 0x80, 0xA5, 0x07, 0x2C, 0x25, 0x5F, 0x3E, 0x3F, ++/* 0x70 --- ---- ---- ---- ---- ---- ---- */ ++ 0x07, 0x90, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, ++/* 0x78 * ` : # @ ' = " */ ++ 0x70, 0x60, 0x3A, 0x23, 0x40, 0x27, 0x3D, 0x22, ++/* 0x80 * a b c d e f g */ ++ 0x07, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, ++/* 0x88 h i ---- ---- ---- */ ++ 0x68, 0x69, 0xAE, 0xAF, 0x07, 0x07, 0x07, 0xF1, ++/* 0x90 ° j k l m n o p */ ++ 0xF8, 0x6A, 0x6B, 0x6C, 0x6D, 0x6E, 0x6F, 0x70, ++/* 0x98 q r ---- ---- */ ++ 0x71, 0x72, 0xA6, 0xA7, 0x91, 0x07, 0x92, 0x07, ++/* 0xA0 ~ s t u v w x */ ++ 0xE6, 0x7E, 0x73, 0x74, 0x75, 0x76, 0x77, 0x78, ++/* 0xA8 y z ---- ---- ---- ---- */ ++ 0x79, 0x7A, 0xAD, 0xAB, 0x07, 0x07, 0x07, 0x07, ++/* 0xB0 ^ ---- § ---- */ ++ 0x5E, 0x9C, 0x9D, 0xFA, 0x07, 0x07, 0x07, 0xAC, ++/* 0xB8 ---- [ ] ---- ---- ---- ---- */ ++ 0xAB, 0x07, 0x5B, 0x5D, 0x07, 0x07, 0x07, 0x07, ++/* 0xC0 { A B C D E F G */ ++ 0x7B, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, ++/* 0xC8 H I ---- ö ---- */ ++ 0x48, 0x49, 0x07, 0x93, 0x94, 0x95, 0xA2, 0x07, ++/* 0xD0 } J K L M N O P */ ++ 0x7D, 0x4A, 0x4B, 0x4C, 0x4D, 0x4E, 0x4F, 0x50, ++/* 0xD8 Q R ---- ü */ ++ 0x51, 0x52, 0x07, 0x96, 0x81, 0x97, 0xA3, 0x98, ++/* 0xE0 \ S T U V W X */ ++ 0x5C, 0xF6, 0x53, 0x54, 0x55, 0x56, 0x57, 0x58, ++/* 0xE8 Y Z ---- Ö ---- ---- ---- */ ++ 0x59, 0x5A, 0xFD, 0x07, 0x99, 0x07, 0x07, 0x07, ++/* 0xF0 0 1 2 3 4 5 6 7 */ ++ 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, ++/* 0xF8 8 9 ---- ---- Ü ---- ---- ---- */ ++ 0x38, 0x39, 0x07, 0x07, 0x9A, 0x07, 0x07, 0x07 ++}; ++ ++static u_int8_t _a2etab[256] = ++{ ++ /*00 NL SH SX EX ET NQ AK BL */ ++ 0x00, 0x01, 0x02, 0x03, 0x37, 0x2D, 0x2E, 0x2F, ++ /*08 BS HT LF VT FF CR SO SI */ ++ 0x16, 0x05, 0x15, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, ++ /*10 DL D1 D2 D3 D4 NK SN EB */ ++ 0x10, 0x11, 0x12, 0x13, 0x3C, 0x15, 0x32, 0x26, ++ /*18 CN EM SB EC FS GS RS US */ ++ 0x18, 0x19, 0x3F, 0x27, 0x1C, 0x1D, 0x1E, 0x1F, ++ /*20 SP ! " # $ % & ' */ ++ 0x40, 0x5A, 0x7F, 0x7B, 0x5B, 0x6C, 0x50, 0x7D, ++ /*28 ( ) * + , - . / */ ++ 0x4D, 0x5D, 0x5C, 0x4E, 0x6B, 0x60, 0x4B, 0x61, ++ /*30 0 1 2 3 4 5 6 7 */ ++ 0xF0, 0xF1, 0xF2, 0xF3, 0xF4, 0xF5, 0xF6, 0xF7, ++ /*38 8 9 : ; < = > ? */ ++ 0xF8, 0xF9, 0x7A, 0x5E, 0x4C, 0x7E, 0x6E, 0x6F, ++ /*40 @ A B C D E F G */ ++ 0x7C, 0xC1, 0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xC7, ++ /*48 H I J K L M N O */ ++ 0xC8, 0xC9, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6, ++ /*50 P Q R S T U V W */ ++ 0xD7, 0xD8, 0xD9, 0xE2, 0xE3, 0xE4, 0xE5, 0xE6, ++ /*58 X Y Z [ \ ] ^ _ */ ++ 0xE7, 0xE8, 0xE9, 0xAD, 0xE0, 0xBD, 0x5F, 0x6D, ++ /*60 ` a b c d e f g */ ++ 0x79, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, ++ /*68 h i j k l m n o */ ++ 0x88, 0x89, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, ++ /*70 p q r s t u v w */ ++ 0x97, 0x98, 0x99, 0xA2, 0xA3, 0xA4, 0xA5, 0xA6, ++ /*78 x y z { | } ~ DL */ ++ 0xA7, 0xA8, 0xA9, 0xC0, 0x4F, 0xD0, 0xA1, 0x07, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, ++ 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0x3F, 0xFF ++}; ++ ++/* ++ * Write blocks after converting to 512-byte blocks ++ */ ++static int ++_write_block (_anchor_t *anc, void *buf, PedSector start, PedSector count) ++{ ++ PedSector s = B2S (start); ++ PedSector c = B2S (count); ++ ++ return ped_device_write (anc->dev, buf, s, c ); ++} ++ ++/* ++ * Read blocks after converting to 512-byte blocks ++ */ ++static int ++_read_block (_anchor_t *anc, void *buf, PedSector start, PedSector count) ++{ ++ PedSector s = B2S (start); ++ PedSector c = B2S (count); ++ ++ return ped_device_read (anc->dev, buf, s, c ); ++} ++ ++/* ++ * Convert ASCII data to EBCDIC ++ */ ++static char * ++_asc2ebc (char *target, char *source, int l) ++{ ++ int i; ++ ++ for (i = 0; i < l; i++) ++ target[i] = _a2etab[(u_int8_t)(source[i])]; ++ ++ return target; ++} ++ ++/* ++ * Convert EBCDIC data to ASCII ++ */ ++static char * ++_ebc2asc (char *target, char *source, int l) ++{ ++ int i; ++ ++ for (i = 0; i < l; i++) ++ target[i] = _e2atab[(u_int8_t)(source[i])]; ++ ++ return target; ++} ++ ++/* ++ * Populate an extent descriptor ++ */ ++static void ++_set_extent (extent_t *ext, ++ u_int8_t typeind, ++ u_int8_t seqno, ++ cchh_t *lower, ++ cchh_t *upper) ++{ ++ ext->typeind = typeind; ++ ext->seqno = seqno; ++ memcpy (&ext->llimit, lower, sizeof (cchh_t)); ++ memcpy (&ext->ulimit, upper, sizeof (cchh_t)); ++} ++ ++/* ++ * Store cylinder and head in descriptor ++ */ ++static void ++_set_cchh (cchh_t *addr, u_int16_t cc, u_int16_t hh) ++{ ++ addr->cc = cc; ++ addr->hh = hh; ++} ++ ++/* ++ * Store track and record in descriptor ++ */ ++static void ++_set_ttr (ttr_t *addr, u_int16_t tt, u_int8_t r) ++{ ++ addr->tt = tt; ++ addr->r = r; ++} ++ ++/* ++ * Store cylinder, head, and block in descriptor ++ */ ++static void ++_set_cchhb (cchhb_t *addr, u_int16_t cc, u_int16_t hh, u_int8_t b) ++{ ++ addr->cc = cc; ++ addr->hh = hh; ++ addr->b = b; ++} ++ ++/* ++ * Store year and day of year in descriptor ++ */ ++static void ++_set_date (labeldate_t *d, u_int8_t year, u_int16_t day) ++{ ++ d->year = year; ++ d->day = day; ++} ++ ++ ++/* ++ * Initializes the volume label with EBCDIC blanks ++ */ ++static void ++_volume_label_init (volume_label_t *vlabel) ++{ ++ memset (vlabel->volkey, ' ', 84); ++ _asc2ebc (vlabel->volkey, vlabel->volkey, 84); ++} ++ ++/* ++ * Takes a string as input, converts it to uppercase, translates ++ * it to EBCDIC and fills it up with spaces before it copies it ++ * as volume serial to the volume label ++ */ ++static void ++_volume_label_set_volser (volume_label_t *vlabel, char *volser) ++{ ++ int i = strlen (volser); ++ ++ if (i > VOLSER_LENGTH) ++ i = VOLSER_LENGTH; ++ ++ memset (vlabel->volid, ' ', VOLSER_LENGTH); ++ memcpy (vlabel->volid, volser, i); ++ _asc2ebc (vlabel->volid, vlabel->volid, VOLSER_LENGTH); ++ ++ return; ++} ++ ++/* ++ * Sets the volume label key after converting to EBCDIC. ++ */ ++static void ++_volume_label_set_key (volume_label_t *vlabel, char *key) ++{ ++ _asc2ebc (vlabel->volkey, key, 4); ++ return; ++} ++ ++/* ++ * sets the volume label identifier after converting to EBCDIC ++ */ ++static void ++_volume_label_set_label (volume_label_t *vlabel, char *lbl) ++{ ++ _asc2ebc (vlabel->vollbl, lbl, 4); ++ return; ++} ++ ++/* ++ * Initialize format 4 DSCB ++ */ ++static void ++_init_format4_label (_anchor_t *anc) ++{ ++ format4_label_t *f4 = anc->f4; ++ cchh_t lower = {VTOC_START_CC, VTOC_START_HH}; ++ cchh_t upper = {VTOC_START_CC, VTOC_START_HH}; ++ ++ memset (f4, '\0', sizeof (format4_label_t)); ++ memset (f4->DS4KEYCD, '\x04', sizeof (f4->DS4KEYCD)); ++ f4->DS4IDFMT = 0xf4; ++ ++ f4->DS4DSREC = anc->geo.sectors - 2; ++ f4->DS4NOEXT = 1; ++ ++ f4->DS4DEVCT.DS4DSCYL = anc->geo.cylinders; ++ f4->DS4DEVCT.DS4DSTRK = anc->geo.heads; ++ ++ switch (anc->dev_type) ++ { ++ case DASD_3380_TYPE: ++ f4->DS4DEVCT.DS4DEVTK = DASD_3380_VALUE; ++ break; ++ case DASD_3390_TYPE: ++ f4->DS4DEVCT.DS4DEVTK = DASD_3390_VALUE; ++ break; ++ case DASD_9345_TYPE: ++ f4->DS4DEVCT.DS4DEVTK = DASD_9345_VALUE; ++ break; ++ default: ++ f4->DS4DEVCT.DS4DEVTK = anc->geo.sectors * anc->blksize;; ++ } ++ ++ f4->DS4DEVCT.DS4DEVFG = DS4DSF | DS4DEVAV; ++ f4->DS4DEVCT.DS4DEVDT = anc->geo.sectors; ++ ++ _set_extent (&f4->DS4VTOCE, EXTUSER, 0, &lower, &upper); ++ ++ if ((anc->geo.cylinders * anc->geo.heads) > BIG_DISK_SIZE) { ++/* ??????? f4->DS4DSREC--; */ ++ f4->DS4VTOCI = DS4DOSBT | DS4EFVLD; ++ f4->DS4EFLVL = DS4EFL07; ++ _set_cchhb(&anc->f4->DS4EFPTR, 0, 1, 3); ++ } ++ ++ return; ++} ++ ++/* ++ * Initialize format 5 DSCB ++ */ ++static void ++_init_format5_label (_anchor_t *anc) ++{ ++ memset (anc->f5, '\0', sizeof (format5_label_t)); ++ memset (anc->f5->DS5KEYID, '\x05', sizeof (anc->f5->DS5KEYID)); ++ anc->f5->DS5FMTID = 0xf5; ++} ++ ++ ++/* ++ * Initialize format 7 DSCB ++ */ ++static void ++_init_format7_label (_anchor_t *anc) ++{ ++ memset (anc->f7, '\0', sizeof (format7_label_t)); ++ memset (anc->f7->DS7KEYID, '\x07', sizeof (anc->f7->DS7KEYID)); ++ anc->f7->DS7FMTID = 0xf7; ++} ++ ++/* ++ * Initialize format 1 DSCB ++ */ ++static void ++_init_format1_label (_anchor_t *anc, extent_t *part_extent) ++{ ++ format1_label_t *f1 = anc->f1; ++ struct tm *creatime; ++ time_t t; ++ ++ /* get actual date */ ++ t = time(NULL); ++ creatime = gmtime(&t); ++ ++ memset (f1, '\0', sizeof (format1_label_t)); ++ _asc2ebc (f1->DS1DSNAM, ++ "PART .NEW ", ++ 44); ++ f1->DS1FMTID = 0xf1; ++ ++ _asc2ebc (f1->DS1DSSN, " ", 6); ++ f1->DS1VOLSQ = 1; ++ ++ _set_date (&f1->DS1CREDT, ++ (u_int8_t) creatime->tm_year, ++ (u_int16_t) creatime->tm_yday); ++ ++ /* never expire */ ++ _set_date (&f1->DS1EXPDT, ++ 99, ++ 365); ++ ++ f1->DS1NOEPV = 1; ++ _asc2ebc (f1->DS1SYSCD, "IBM LINUX ", 13); ++ _set_date (&f1->DS1REFD, ++ (u_int8_t) creatime->tm_year, ++ (u_int16_t) creatime->tm_yday); ++ f1->DS1DSRG1 = DS1DSGPS | DS1DSGU; ++ f1->DS1RECFM = DS1RECFF | DS1RECFS; ++ f1->DS1BLKL = anc->blksize; ++ f1->DS1LRECL = anc->blksize; ++ f1->DS1DSIND = DS1IND80; /* last volume for this dataset */ ++ f1->DS1SCAL1 = DS1TRK; ++ memcpy (&f1->DS1EXT1, ++ part_extent, ++ sizeof (extent_t)); ++} ++ ++/* ++ * Add or remove freespace from the format 5 or format 7 DSCBs ++ */ ++static void ++_set_freespace (_anchor_t *anc, u_int32_t start, u_int32_t stop) ++{ ++ int i; ++ ++ /* convert to track addresses */ ++ start = B2T (start); ++ stop = B2T (stop); ++ ++ if (anc->big_disk) { ++ ds7ext_t *ext; ++ ++ /* find and populate first free extent */ ++ for (i = 0; i < DS7EXTMX; i++) { ++ if (i < 5) ++ ext = &anc->f7->DS7EXTNT[i]; ++ else ++ ext = &anc->f7->DS7ADEXT[i-5]; ++ ++ if ((ext->a + ext->b) == 0) { ++ ext->a = start; ++ ext->b = stop; ++ break; ++ } ++ } ++ ++ PED_ASSERT (i != DS7EXTMX, return); ++ } ++ else { ++ ds5ext_t *ext; ++ ++ /* find and populate first free extent */ ++ for (i = 0; i < DS5EXTMX; i++) { ++ if (i == 0) ++ ext = &anc->f5->DS5AVEXT; ++ else if ((i > 0) && (i < 8)) ++ ext = &anc->f5->DS5EXTAV[i - 1]; ++ else ++ ext = &anc->f5->DS5MAVET[i - 8]; ++ ++ if ((ext->t + ext->fc + ext->ft) == 0) { ++ ext->t = start; ++ ext->fc = (stop - start + 1) / anc->geo.heads; ++ ext->ft = (stop - start + 1) % anc->geo.heads; ++ break; ++ } ++ } ++ ++ PED_ASSERT (i != DS5EXTMX, return); ++ } ++} ++ ++/* ++ * Convert cylinder, head, and block to relative block number ++ */ ++static unsigned long ++_cchhb2blk (_anchor_t *anc, cchhb_t *p) ++{ ++ return (unsigned long) ((p->cc * anc->dev->hw_geom.heads * anc->dev->hw_geom.sectors) + ++ (p->hh * anc->dev->hw_geom.sectors) + ++ p->b); ++} ++ ++/* ++ * Convert relative block number to cylinder, head, and block ++ */ ++static void ++_blk2cchhb (_anchor_t *anc, cchhb_t *addr, unsigned long blk) ++{ ++ int bpt = anc->geo.heads * anc->geo.sectors; ++ ++ addr->cc = blk / bpt; ++ addr->hh = (blk - (addr->cc * bpt)) / anc->geo.sectors; ++ addr->b = (blk - (addr->cc * bpt)) % anc->geo.sectors; ++ ++ return; ++} ++ ++/* ++ * Converts cylinder and head to relative block ++ */ ++static unsigned long ++_cchh2blk (_anchor_t *anc, cchh_t *p) ++{ ++ return ((p->cc * anc->dev->hw_geom.heads) + p->hh) *anc->geo.sectors; ++} ++ ++/* ++ * Initialize the VOL1 volume label ++ */ ++static void ++_init_volume_label (_anchor_t *anc) ++{ ++ char volser[7]; ++ volume_label_t *v = anc->vlabel; ++ ++ sprintf (volser, "0X%04x", anc->devno); ++ ++ _volume_label_init (v); ++ _volume_label_set_key (v, "VOL1"); ++ _volume_label_set_label (v, "VOL1"); ++ ++ sprintf (volser, "0X%04x", anc->devno); ++ _volume_label_set_volser (v, volser); ++ ++ _set_cchhb (&v->vtoc, VTOC_START_CC, VTOC_START_HH, VTOC_START_B); ++} ++ ++/* ++ * Write the volume label and initial VTOC ++ */ ++static int ++_write_labels (_anchor_t *anc) ++{ ++ unsigned int blk; ++ ++ /* write bootstrap labels */ ++ memcpy (anc->sect, &_ipl1, sizeof (bootstrap1_t)); ++ if (!_write_block (anc, anc->sect, 0, 1)) ++ return 0; ++ ++ memcpy (anc->sect, &_ipl2, sizeof (bootstrap2_t)); ++ if (!_write_block (anc, anc->sect, 1, 1)) ++ return 0; ++ ++ /* Initialize volume label */ ++ _init_volume_label (anc); ++ ++ /* Initialize all VTOC labels */ ++ _init_format4_label (anc); ++ _init_format5_label (anc); ++ _init_format7_label (anc); ++ _set_freespace (anc, ++ FIRST_USABLE_TRK, ++ anc->geo.cylinders * anc->geo.heads - 1); ++ ++ if (!_write_block (anc, anc->vlabel, anc->label_blk, 1)) ++ return 0; ++ ++ blk = (VTOC_START_CC * anc->geo.heads + VTOC_START_HH) * anc->geo.sectors; ++ if (!_write_block (anc, anc->f4, blk++, 1)) ++ return 0; ++ ++ if (!_write_block (anc, anc->f5, blk++, 1)) ++ return 0; ++ ++ if ((anc->geo.cylinders * anc->geo.heads) > BIG_DISK_SIZE) ++ if (!_write_block (anc, anc->f7, blk++, 1)) ++ return 0; ++ ++ return 1; ++} ++ ++/* ++ * Formats (with user approval) an uninitialized device ++ */ ++static int ++_ask_format (_anchor_t *anc) ++{ ++ format_data_t fmtd; ++ sigset_t oldset; ++ sigset_t newset; ++ sigset_t chkset; ++ int fd; ++ int rc; ++ ++#ifdef DISCOVER_ONLY ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("'%s' does not appear to be formatted.")); ++ return 0; ++#else ++ if (ped_exception_throw ( ++ PED_EXCEPTION_WARNING, ++ PED_EXCEPTION_YES_NO, ++ _("'%s' does not appear to be formatted.\nWould you like " ++ "to format the device now using defaults?"), ++ anc->dev->path) != PED_EXCEPTION_YES) ++ return 0; ++ ++ if (ped_exception_throw ( ++ PED_EXCEPTION_WARNING, ++ PED_EXCEPTION_YES_NO, ++ _("All data on '%s' will be destroyed.\nAre you sure?"), ++ anc->dev->path) != PED_EXCEPTION_YES) ++ return 0; ++ ++ ped_exception_throw ( ++ PED_EXCEPTION_INFORMATION, ++ PED_EXCEPTION_OK, ++ _("Formatting '%s'..."), ++ anc->dev->path); ++ ++ /* Get into external access mode */ ++ if (!ped_device_begin_external_access (anc->dev)) ++ return 0; ++ ++ /* Try to protect from interruption */ ++ rc = 0; ++ rc += sigemptyset (&newset); ++ rc += sigaddset (&newset, SIGTERM); ++ rc += sigaddset (&newset, SIGQUIT); ++ rc += sigaddset (&newset, SIGINT); ++ rc += sigprocmask (SIG_BLOCK, &newset, &oldset); ++ if (rc != 0) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Can't block signals: %d"), ++ errno); ++ goto restoremode; ++ } ++ ++ /* Get at the device */ ++ fd = open (anc->dev->path, O_RDWR); ++ if (fd == -1) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Unable to open %s: %d"), ++ anc->dev->path, errno); ++ goto restoresigs; ++ } ++ ++ /* And disable it */ ++ if (ioctl (fd, BIODASDDISABLE) != 0) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Could not disable the device: %d"), ++ errno); ++ goto closedev; ++ } ++ ++ /* Invalidate first track in case process is interrupted */ ++ fmtd.start_unit = 0; ++ fmtd.stop_unit = 0; ++ fmtd.blksize = MAX_BLKSIZE; ++ fmtd.intensity = DASD_FMT_INT_COMPAT | DASD_FMT_INT_INVAL; ++ if (ioctl (fd, BIODASDFMT, &fmtd) != 0) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Unable to invalidate track 0: %d"), ++ errno); ++ goto reenable; ++ } ++ ++ /* Set format parms for full cylinder format */ ++ fmtd.stop_unit = anc->geo.cylinders * anc->geo.heads - 1; ++ fmtd.start_unit = fmtd.stop_unit - anc->geo.heads + 1; ++ fmtd.intensity = DASD_FMT_INT_COMPAT; ++ ++ /* From end to beginning (revalidates track 0) */ ++ while (fmtd.start_unit >= 0) { ++ ++ /* provide a little feedback */ ++ if (!((fmtd.start_unit / anc->geo.heads) % 100)) { ++ ped_exception_throw ( ++ PED_EXCEPTION_INFORMATION, ++ PED_EXCEPTION_OK, ++ _("Cylinder %d : Tracks %d - %d"), ++ fmtd.start_unit / anc->geo.heads, ++ fmtd.start_unit, ++ fmtd.stop_unit ); ++ } ++ ++ /* check for interruptions */ ++ sigemptyset (&chkset); ++ sigpending (&chkset); ++ ++ if (sigismember (&chkset, SIGTERM) || ++ sigismember (&chkset, SIGQUIT) || ++ sigismember (&chkset, SIGINT)) { ++ if (ped_exception_throw ( ++ PED_EXCEPTION_WARNING, ++ PED_EXCEPTION_YES_NO, ++ _("Are you sure you want to interrupt" ++ "the format?\n")) == PED_EXCEPTION_YES) ++ goto reenable; ++ ++ /* reset pending signals */ ++ sigprocmask (SIG_UNBLOCK, &newset, NULL ); ++ sigprocmask (SIG_BLOCK, &newset, NULL ); ++ } ++ ++ /* Wipe it out and bump to next */ ++ if (ioctl (fd, BIODASDFMT, &fmtd) != 0) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Format failed for cylinder %d: %d"), ++ fmtd.start_unit / anc->geo.heads, ++ errno); ++ goto reenable; ++ } ++ fmtd.start_unit -= anc->geo.heads; ++ fmtd.stop_unit -= anc->geo.heads; ++ } ++ ++ /* Recalculate geometry based info */ ++ anc->blksize = fmtd.blksize; ++ anc->spb = anc->blksize / PED_SECTOR_SIZE; ++ ++ /* This part was good anyway */ ++ rc = 1; ++ ++reenable: ++ ioctl (fd, BIODASDENABLE); ++ ++closedev: ++ close (fd); ++ ++restoresigs: ++ sigprocmask (SIG_SETMASK, &oldset, NULL); ++ ++restoremode: ++ if (!ped_device_end_external_access (anc->dev)) ++ return 0; ++ ++ /* Lay down the default labels */ ++ if (rc == 1) ++ return _write_labels (anc); ++ ++ return 0; ++#endif ++} ++ ++/* ++ * Retrieve device metrics (can't trust dev->* values) ++ */ ++static int ++_dasd_info (PedDevice *dev, dasd_information2_t *di, int *ss, hd_geometry_t *geo) ++{ ++ int fd; ++ int rc = 0; ++ ++ if (!ped_device_begin_external_access (dev)) ++ return 0; ++ ++ fd = open (dev->path, O_RDONLY); ++ if (fd == -1) { ++ ped_device_end_external_access (dev); ++ return 0; ++ } ++ ++ if (rc == 0 && di != NULL) ++ rc = ioctl (fd, BIODASDINFO2, di); ++ ++ if (rc == 0 && ss != NULL) ++ rc = ioctl (fd, BLKSSZGET, ss); ++ ++ if (rc == 0 && geo != NULL) ++ rc = ioctl (fd, HDIO_GETGEO, geo); ++ ++ close (fd); ++ ++ if (!ped_device_end_external_access (dev)) ++ return 0; ++ ++ return rc == 0; ++} ++ ++/* ++ * ++ */ ++static int ++s390_probe (PedDevice *dev) ++{ ++ dasd_information2_t di; ++ ++ if (!_dasd_info (dev, &di, NULL, NULL)) ++ return 0; ++ ++ if (strncmp (di.type, "ECKD", 4) != 0) ++ return 0; ++ ++ return 1; ++} ++ ++#ifndef DISCOVER_ONLY ++static int ++s390_clobber (PedDevice *dev) ++{ ++ char *sect; ++ PedSector i; ++ int ss; ++ int spb; ++ hd_geometry_t geo; ++ dasd_information2_t di; ++ ++ PED_ASSERT (dev != NULL, return 0); ++ ++ if (!_dasd_info (dev, &di, &ss, &geo)) ++ return 0; ++ ++ sect = ped_malloc (MAX_BLKSIZE); ++ if (sect == NULL) ++ return 0; ++ ++ memset (sect, '\0', MAX_BLKSIZE); ++ ++ spb = ss / PED_SECTOR_SIZE; ++ i = VTOC_START_HH * geo.sectors; ++ while (i < FIRST_USABLE_TRK * geo.sectors) { ++ if (!ped_device_write (dev, ++ sect, ++ i * spb, ++ spb)) { ++ break; ++ } ++ ++ i++; ++ } ++ ++ ped_free (sect); ++ ++ return i == FIRST_USABLE_TRK * geo.sectors; ++} ++#endif /* !DISCOVER_ONLY */ ++ ++static PedDisk * ++s390_alloc (PedDevice *dev) ++{ ++ _anchor_t *anc; ++ dasd_information2_t di; ++ PedDisk *disk; ++ ++ PED_ASSERT (dev != NULL, return 0); ++ ++ disk = _ped_disk_alloc (dev, &s390_disk_type); ++ if (!disk) ++ return 0; ++ ++ disk->disk_specific = ped_malloc (sizeof (_anchor_t)); ++ if (!disk->disk_specific) ++ goto ancmem; ++ ++ anc = disk->disk_specific; ++ memset (anc, '\0', sizeof (_anchor_t)); ++ ++ if (!_dasd_info (dev, &di, &anc->blksize, &anc->geo)) ++ goto dierror; ++ ++ anc->dev = dev; ++ anc->devno = di.devno; ++ anc->dev_type = di.dev_type; ++ anc->format = di.format; ++ anc->spb = anc->blksize / PED_SECTOR_SIZE; ++ anc->label_blk = di.label_block; ++ anc->big_disk = ((anc->geo.cylinders * anc->geo.heads) > BIG_DISK_SIZE); ++ ++ anc->sect = ped_malloc (MAX_BLKSIZE); ++ if (anc->sect == NULL) ++ goto sectmem; ++ ++ anc->vlabel = ped_malloc (MAX_BLKSIZE); ++ if (anc->vlabel == NULL) ++ goto vlabmem; ++ ++ anc->f4 = ped_malloc (MAX_BLKSIZE); ++ if (anc->f4 == NULL) ++ goto fmt4mem; ++ ++ anc->f5 = ped_malloc (MAX_BLKSIZE); ++ if (anc->f5 == NULL) ++ goto fmt5mem; ++ ++ anc->f7 = ped_malloc (MAX_BLKSIZE); ++ if (anc->f7 == NULL) ++ goto fmt7mem; ++ ++ anc->f1 = ped_malloc (MAX_BLKSIZE); ++ if (anc->f1 == NULL) ++ goto fmt1mem; ++ ++ return disk; ++ ++fmt1mem: ++ ped_free (anc->f7); ++ ++fmt7mem: ++ ped_free (anc->f5); ++ ++fmt5mem: ++ ped_free (anc->f4); ++ ++fmt4mem: ++ ped_free (anc->vlabel); ++ ++vlabmem: ++ ped_free (anc->sect); ++ ++sectmem: ++ /* nothing to do here */ ++ ++dierror: ++ ped_free (anc); ++ ++ancmem: ++ _ped_disk_free (disk); ++ ++ return NULL; ++} ++ ++static PedDisk * ++s390_duplicate (const PedDisk *disk) ++{ ++ return ped_disk_new_fresh (disk->dev, &s390_disk_type); ++} ++ ++static void ++s390_free (PedDisk *disk) ++{ ++ _anchor_t *anc; ++ ++ PED_ASSERT (disk != NULL, return); ++ ++ anc = disk->disk_specific; ++ if (anc == NULL) ++ return; ++ ++ if (anc->sect != NULL) ++ ped_free (anc->sect); ++ if (anc->vlabel != NULL) ++ ped_free (anc->vlabel); ++ if (anc->f4 != NULL) ++ ped_free (anc->f4); ++ if (anc->f5 != NULL) ++ ped_free (anc->f5); ++ if (anc->f7 != NULL) ++ ped_free (anc->f7); ++ if (anc->f1 != NULL) ++ ped_free (anc->f1); ++ ++ ped_free (anc); ++ ++ _ped_disk_free (disk); ++} ++ ++static int ++s390_read (PedDisk *disk) ++{ ++ _anchor_t *anc; ++ format1_label_t *f1; ++ PedPartition *part; ++ PedConstraint *constraint; ++ PedSector end; ++ PedSector start; ++ PedSector b; ++ int rc; ++ char str[4]; ++ char dsn[45]; ++ ++ PED_ASSERT (disk != NULL, return 0); ++ PED_ASSERT (disk->dev != NULL, return 0); ++ PED_ASSERT (disk->disk_specific != NULL, return 0); ++ ++ ped_disk_delete_all (disk); ++ ++ anc = disk->disk_specific; ++ ++ if (anc->format != DASD_FORMAT_CDL) ++ if (!_ask_format (anc)) ++ return 0; ++ ++ if (!_read_block (anc, anc->vlabel, anc->label_blk, 1)) ++ goto recover; ++ ++ _asc2ebc (str, "VOL1", 4); ++ if (strncmp (anc->vlabel->vollbl, str, 4)) ++ goto recover; ++ ++ b = _cchhb2blk (anc, &anc->vlabel->vtoc) - 1; ++ if (b == 0) ++ goto recover; ++ ++ if (!_read_block (anc, anc->f4, b++, 1)) ++ goto recover; ++ ++ if (anc->f4->DS4IDFMT != 0xf4) ++ goto recover; ++ ++ if (!_read_block (anc, anc->f5, b++, 1)) ++ goto recover; ++ ++ if (anc->f5->DS5FMTID != 0xf5) ++ goto recover; ++ ++ if (anc->big_disk) { ++ if (!_read_block (anc, anc->f7, b++, 1)) ++ goto recover; ++ ++ if (anc->f7->DS7FMTID != 0xf7) ++ goto recover; ++ } ++ ++ /* ++ * Create partitions described by the F1 DSCBs. ++ * ++ * Note: The kernel stops looking for F1s when it finds a non-F1 ++ * DSCB, while fdasd scans all blocks in the VTOC. We'll ++ * opt for the kernel approach. ++ */ ++ f1 = anc->sect; ++ while (b < FIRST_USABLE_BLK) { ++ if (!_read_block (anc, f1, b++, 1)) ++ return 0; ++ ++ if (f1->DS1FMTID != 0xf1) ++ break; ++ ++ start = B2S (_cchh2blk (anc, &f1->DS1EXT1.llimit)); ++ end = B2S (_cchh2blk (anc, &f1->DS1EXT1.ulimit) + ++ anc->geo.sectors) - 1; ++ ++ part = ped_partition_new (disk, 0, NULL, start, end); ++ if (!part) ++ return 0; ++ ++ _ebc2asc (dsn, f1->DS1DSNAM, 44); ++ dsn[44] = ' '; ++ *(strchr (dsn, ' ')) = '\0'; ++ ped_partition_set_name (part, dsn); ++ ++ part->fs_type = ped_file_system_probe (&part->geom); ++ ++ rc = 0; ++ constraint = ped_constraint_exact (&part->geom); ++ if (constraint) { ++ rc = ped_disk_add_partition (disk, ++ part, ++ constraint); ++ ped_constraint_destroy (constraint); ++ } ++ ++ if (!rc) { ++ ped_partition_destroy (part); ++ return 0; ++ } ++ } ++ ++ return 1; ++ ++recover: ++ /* ++ * This is where we'd put the VTOC recovery code. But, for now ++ * we just complain. ++ */ ++ ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("The VTOC appears to be missing or corrupted")); ++ ++ return 0; ++} ++ ++#ifndef DISCOVER_ONLY ++static int ++s390_write (PedDisk *disk) ++{ ++ _anchor_t *anc; ++ format1_label_t *f1; ++ partition_info_t *info; ++ PedPartition *part; ++ cchh_t llimit; ++ cchh_t ulimit; ++ extent_t ext; ++ PedSector b; ++ unsigned long lower; ++ unsigned long upper; ++ ++ PED_ASSERT (disk != NULL, return 0); ++ PED_ASSERT (disk->dev != NULL, return 0); ++ PED_ASSERT (disk->disk_specific != NULL, return 0); ++ ++ anc = disk->disk_specific; ++ ++ /* Initialize volume label */ ++ _init_volume_label (anc); ++ b = _cchhb2blk (anc, &anc->vlabel->vtoc) - 1; ++ ++ /* Initialize all VTOC labels */ ++ _init_format4_label (anc); ++ b++; ++ ++ _init_format5_label (anc); ++ b++; ++ ++ _init_format7_label (anc); ++ if (anc->big_disk) ++ b++; ++ ++ /* look for freespace and normal partitions */ ++ f1 = anc->f1; ++ for (part = ped_disk_next_partition (disk, NULL); part; ++ part = ped_disk_next_partition (disk, part)) { ++ ++ /* ++ * Note: The end block will be the block at the end of the ++ * track. But, it will be dropped when converting to ++ * the track address, which is what we want. ++ */ ++ if (part->type == PED_PARTITION_FREESPACE) { ++ _set_freespace (anc, ++ S2B (part->geom.start), ++ S2B (part->geom.end)); ++ ++ continue; ++ } ++ ++ if (part->type != PED_PARTITION_NORMAL) ++ continue; ++ ++ /* convert starting and ending sectors to tracks */ ++ lower = S2T (part->geom.start); ++ upper = S2T (part->geom.end); ++ ++ /* set the start of the partition */ ++ _set_cchh (&llimit, ++ lower / anc->geo.heads, ++ lower % anc->geo.heads); ++ ++ /* and the end of the partition */ ++ _set_cchh (&ulimit, ++ upper / anc->geo.heads, ++ upper % anc->geo.heads); ++ ++ /* build the extent */ ++ _set_extent (&ext, ++ (llimit.hh == 0 ? EXTCYLB : EXTUSER), ++ 0, ++ &llimit, ++ &ulimit); ++ ++ /* start with a clean slate*/ ++ _init_format1_label (anc, &ext); ++ ++ /* set last track/record used */ ++ _set_ttr (&f1->DS1LSTAR, ++ upper - lower, ++ anc->geo.sectors); ++ ++ /* Populate volser and dataset name */ ++ info = part->disk_specific; ++ memcpy (f1->DS1DSSN, anc->vlabel->volid, 6); ++ memset (f1->DS1DSNAM, ' ', 44); ++ memcpy (f1->DS1DSNAM, info->dsn, strlen (info->dsn)); ++ _asc2ebc (f1->DS1DSNAM, f1->DS1DSNAM, 44); ++ ++ /* Write the block */ ++ if (!_write_block (anc, f1, b++, 1)) ++ goto failure; ++ ++ /* Set location of highest format 1 and remaing DSCB count */ ++ _blk2cchhb (anc, &anc->f4->DS4HPCHR, b); ++ anc->f4->DS4DSREC--; ++ } ++ ++ /* Set remaining DSCBs to format 0. ++ * ++ * Note: The kernel doesn't use the F4, F5, or F7 and stops ++ * scanning for F1s as soon as it finds a non-F1 FMTID. ++ * So, one F0 would suffice. But, fdasd scans for the 3 ++ * possible F1s, ignoring F0s. Just to be safe, we'll ++ * write format-0s to the rest. ++ */ ++ memset (anc->sect, '\0', MAX_BLKSIZE); ++ while (b < FIRST_USABLE_BLK) ++ if (!_write_block (anc, anc->sect, b++, 1)) ++ goto failure;; ++ ++ /* write format 4 DSCB */ ++ b = _cchhb2blk (anc, &anc->vlabel->vtoc) - 1; ++ if (!_write_block (anc, anc->f4, b++, 1)) ++ goto failure; ++ ++ /* write format 5 DSCB */ ++ if (!_write_block (anc, anc->f5, b++, 1)) ++ goto failure; ++ ++ /* write format 7 DSCB */ ++ if (anc->big_disk) ++ if (!_write_block (anc, anc->f7, b++, 1)) ++ goto failure; ++ ++ return 1; ++ ++failure: ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Write of VTOC failed and VTOC is incomplete")); ++ ++ /* ++ * Would be a nice place to dump the blocks to a file somewhere ++ * so the user can recover manually with "dd" or some such. ++ */ ++ ++ return 0; ++} ++#endif /* !DISCOVER_ONLY */ ++ ++static PedPartition * ++_find_dsn (const PedDisk *disk, char *dsn) ++{ ++ partition_info_t *info; ++ PedPartition *part; ++ ++ for (part = ped_disk_next_partition (disk, NULL); part; ++ part = ped_disk_next_partition (disk, part)) { ++ info = part->disk_specific; ++ if ((part->type != PED_PARTITION_NORMAL) || !info) ++ continue; ++ ++ if (strcmp (info->dsn, dsn) == 0) ++ return part; ++ } ++ ++ return NULL; ++} ++ ++static PedPartition * ++s390_partition_new (const PedDisk *disk, ++ PedPartitionType part_type, ++ const PedFileSystemType *fs_type, ++ PedSector start, ++ PedSector end) ++{ ++ _anchor_t *anc; ++ PedPartition *part; ++ partition_info_t *info; ++ int i; ++ char volid[7]; ++ ++ PED_ASSERT (disk != NULL, return NULL); ++ PED_ASSERT (disk->disk_specific != NULL, return NULL); ++ ++ anc = disk->disk_specific; ++ ++ part = _ped_partition_alloc (disk, part_type, fs_type, start, end); ++ if (!part) ++ return NULL; ++ ++ part->disk_specific = NULL; ++ if (ped_partition_is_active (part)) { ++ info = ped_malloc (sizeof (partition_info_t)); ++ if (!info) { ++ ped_free (part); ++ return NULL; ++ } ++ ++ memset (info, '\0', sizeof (partition_info_t)); ++ ++ for (i = 1; i < 999; i++) { ++ _ebc2asc (volid, anc->vlabel->volid, 6); ++ volid[6] = ' '; ++ *(strchr (volid, ' ')) = '\0'; ++ sprintf (info->dsn, ++ "LINUX.V%s.PART%04u.NATIVE", ++ volid, ++ i); ++ if (!_find_dsn (disk, info->dsn)) ++ break; ++ } ++ ++ part->disk_specific = info; ++ } ++ ++ return part; ++} ++ ++static PedPartition * ++s390_partition_duplicate (const PedPartition *part) ++{ ++ PedPartition *new; ++ ++ PED_ASSERT (part != NULL, return 0); ++ ++ new = ped_partition_new (part->disk, ++ part->type, ++ part->fs_type, ++ part->geom.start, ++ part->geom.end); ++ if (!new) ++ return NULL; ++ ++ new->num = part->num; ++ ++ if (part->disk_specific) ++ memcpy (new->disk_specific, ++ part->disk_specific, ++ sizeof (partition_info_t)); ++ ++ return new; ++} ++ ++static void ++s390_partition_destroy (PedPartition *part) ++{ ++ PED_ASSERT (part != NULL, return); ++ ++ if (ped_partition_is_active (part)) ++ if (part->disk_specific) ++ ped_free (part->disk_specific); ++ ++ _ped_partition_free (part); ++} ++ ++static int ++s390_partition_set_system (PedPartition *part, const PedFileSystemType *fs_type) ++{ ++ PED_ASSERT (part != NULL, return 0); ++ PED_ASSERT (part->disk != NULL, return 0); ++ ++ part->fs_type = fs_type; ++ ++ return 1; ++} ++ ++static int ++s390_partition_set_flag (PedPartition *part, PedPartitionFlag flag, int state) ++{ ++ return 0; ++} ++ ++static int ++s390_partition_get_flag (const PedPartition *part, PedPartitionFlag flag) ++{ ++ return 0; ++} ++ ++/* ++ * Make certain partitions start and end on a track boundary. ++ */ ++static PedConstraint * ++_get_strict_constraint (_anchor_t *anc) ++{ ++ PedDevice* dev = anc->dev; ++ PedAlignment start_align; ++ PedAlignment end_align; ++ PedGeometry max_geom; ++ PedSector sector = B2S (anc->geo.sectors); ++ ++ if (!ped_alignment_init (&start_align, 0, sector)) ++ return NULL; ++ ++ if (!ped_alignment_init (&end_align, -1, sector)) ++ return NULL; ++ ++ if (!ped_geometry_init (&max_geom, ++ dev, ++ B2S(FIRST_USABLE_BLK), ++ dev->length - B2S(FIRST_USABLE_BLK))) ++ return NULL; ++ ++ return ped_constraint_new (&start_align, ++ &end_align, ++ &max_geom, ++ &max_geom, ++ B2S (anc->geo.sectors), ++ dev->length); ++} ++ ++static int ++s390_partition_align (PedPartition* part, const PedConstraint* constraint) ++{ ++ _anchor_t *anc; ++ ++ PED_ASSERT (part != NULL, return 0); ++ PED_ASSERT (part->disk != NULL, return 0); ++ PED_ASSERT (part->disk->disk_specific != NULL, return 0); ++ ++ anc = part->disk->disk_specific; ++ ++ if (_ped_partition_attempt_align (part, ++ constraint, ++ _get_strict_constraint (anc))) ++ return 1; ++ ++#ifndef DISCOVER_ONLY ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Unable to satisfy all constraints on the partition.")); ++#endif ++ return 0; ++} ++ ++static int ++s390_partition_is_flag_available (const PedPartition* part, ++ PedPartitionFlag flag) ++{ ++ return 0; ++} ++ ++/* ++ * Allow user to change the dataset name. ++ * ++ * Note: The kernel doesn't use the dataset name at all, so it's mainly for ++ * the CDL. However, fdasd does place some restrictions on it, so ++ * if you will be using fdasd in addition to parted, you should ++ * follow these rules. ++ * ++ * 1) First 7 characters can be anything ++ * 2) Next 0-6 characters can be anything, but, if it's used to ++ * to update the VTOC, fdasd will replace them with the volser ++ * 3) Next 1 character must be "." ++ * 4) Next 0-? characters can be anything ++ * 5) Next 4 characters must be "PART" ++ * 6) Next 4 characters must be numeric and greather than zero ++ * 7) Next 1 character must be "." (dataset name rule) ++ * 8) Next 6 characters "should" be "NATIVE" or "SWAP " ++ * 9) Remaining characters are padded with blanks ++ * 10) Last 6 characters are unusable ++ * ++ * The s390 plugin in the evms package does not seem to parse or ++ * depend on the dataset name content. However, it does create ++ * fdasd style dataset names. ++ * ++ * Remember though that these are "artifical" restrictions and if ++ * fdasd is not used, then the dataset name can be anything as long ++ * as it follows standard dataset name rules. This is what we verify ++ * here. ++ */ ++static void ++s390_partition_set_name (PedPartition *part, const char *name) ++{ ++ partition_info_t *info; ++ PedPartition *p; ++ char *s; ++ char *d; ++ int c; ++ int ql; ++ int sawblank; ++ char dsn[45]; ++ ++ PED_ASSERT (part != NULL, return); ++ PED_ASSERT (part->disk != NULL, return); ++ PED_ASSERT (part->disk_specific != NULL, return); ++ ++ info = part->disk_specific; ++ ++ if (strlen (name) > 44) ++ goto badformat; ++ ++ sawblank = 0; ++ c = 0; ++ ql = 0; ++ d = dsn; ++ ++ for (s = (char *)name; *s != '\0'; s++) { ++ if (*s == ' ') { ++ sawblank = 1; ++ continue; ++ } ++ ++ if (sawblank) ++ goto badformat; ++ ++ c = *s; ++ *d++ = c; ++ ++ if (c == '.') { ++ if (ql < 1) ++ goto badformat; ++ ++ ql = 0; ++ continue; ++ } ++ ++ ql++; ++ if (strchr ("ABCDEFGHIJKLMNOPQRSTUVWXYZ#@$", c) == 0) { ++ if (ql == 1) { ++ goto badformat; ++ } ++ ++ if (strchr ("0123456789-{", c) == 0) ++ goto badformat; ++ } ++ } ++ ++ if (c == '.') ++ goto badformat; ++ ++ *d = '\0'; ++ p = _find_dsn (part->disk, dsn); ++ if (p) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Partition %d is already using %s"), ++ p->num, ++ dsn); ++ return; ++ } ++ ++ strcpy (info->dsn, dsn); ++ ++ return; ++ ++badformat: ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Partition name doesn't follow standard data set naming rules")); ++ ++ return; ++} ++ ++static const char * ++s390_partition_get_name (const PedPartition *part) ++{ ++ partition_info_t *info; ++ ++ PED_ASSERT (part != NULL, return NULL); ++ PED_ASSERT (part->disk_specific != NULL, return NULL); ++ ++ info = part->disk_specific; ++ ++ return info->dsn; ++} ++ ++static int ++s390_partition_enumerate (PedPartition *part) ++{ ++ int i; ++ PedPartition *p; ++ ++ PED_ASSERT (part != NULL, return 0); ++ ++ /* never change the partition numbers */ ++ if (part->num != -1) ++ return 1; ++ ++ for (i = 1; i <= USABLE_PARTITIONS; i++) { ++ p = ped_disk_get_partition (part->disk, i); ++ if (!p) { ++ part->num = i; ++ return 1; ++ } ++ } ++ ++ /* failed to allocate a number */ ++#ifndef DISCOVER_ONLY ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, ++ PED_EXCEPTION_CANCEL, ++ _("Unable to allocate an s390 disklabel slot")); ++#endif ++ return 1; ++} ++ ++static int ++s390_alloc_metadata (PedDisk *disk) ++{ ++ _anchor_t *anc; ++ PedPartition *part; ++ PedConstraint *constraint; ++ int rc = 0; ++ ++ PED_ASSERT (disk != NULL, return 0); ++ PED_ASSERT (disk->disk_specific != NULL, return 0); ++ ++ anc = disk->disk_specific; ++ ++ part = ped_partition_new (disk, ++ PED_PARTITION_METADATA, ++ NULL, ++ 0, ++ B2S(FIRST_USABLE_TRK * anc->geo.sectors) - 1); ++ if (!part) ++ return 0; ++ ++ rc = 0; ++ ++ constraint = ped_constraint_exact (&part->geom); ++ if (constraint) { ++ rc = ped_disk_add_partition (disk, part, constraint); ++ ped_constraint_destroy (constraint); ++ } ++ ++ if (rc) ++ return 1; ++ ++ ped_partition_destroy (part); ++ ++ return 0; ++} ++ ++static int ++s390_get_max_primary_partition_count (const PedDisk *disk) ++{ ++ return USABLE_PARTITIONS; ++} ++ ++static PedDiskOps s390_disk_ops = { ++ probe: s390_probe, ++#ifndef DISCOVER_ONLY ++ clobber: s390_clobber, ++#else ++ clobber: NULL, ++#endif ++ alloc: s390_alloc, ++ duplicate: s390_duplicate, ++ free: s390_free, ++ read: s390_read, ++#ifndef DISCOVER_ONLY ++ write: s390_write, ++#else ++ write: NULL, ++#endif ++ ++ partition_new: s390_partition_new, ++ partition_duplicate: s390_partition_duplicate, ++ partition_destroy: s390_partition_destroy, ++ partition_set_system: s390_partition_set_system, ++ partition_set_flag: s390_partition_set_flag, ++ partition_get_flag: s390_partition_get_flag, ++ partition_is_flag_available: s390_partition_is_flag_available, ++ partition_set_name: s390_partition_set_name, ++ partition_get_name: s390_partition_get_name, ++ partition_align: s390_partition_align, ++ partition_enumerate: s390_partition_enumerate, ++ ++ alloc_metadata: s390_alloc_metadata, ++ get_max_primary_partition_count:s390_get_max_primary_partition_count ++}; ++ ++static PedDiskType s390_disk_type = { ++ next: NULL, ++ name: "s390", ++ ops: &s390_disk_ops, ++ features: PED_DISK_TYPE_PARTITION_NAME ++}; ++ ++void ++ped_disk_s390_init () ++{ ++ ped_register_disk_type (&s390_disk_type); ++} ++ ++void ++ped_disk_s390_done () ++{ ++ ped_unregister_disk_type (&s390_disk_type); ++} ++ +diff -urNad parted-1.6.24~/libparted/disk_s390.h parted-1.6.24/libparted/disk_s390.h +--- parted-1.6.24~/libparted/disk_s390.h 1969-12-31 21:00:00.000000000 -0300 ++++ parted-1.6.24/libparted/disk_s390.h 2004-09-01 08:48:50.000000000 -0300 +@@ -0,0 +1,436 @@ ++/* ++ libparted - a library for manipulating disk partitions ++ Copyright (C) 2004 Free Software Foundation, Inc. ++ ++ This program is free software; you can redistribute it and/or modify ++ it under the terms of the GNU General Public License as published by ++ the Free Software Foundation; either version 2 of the License, or ++ (at your option) any later version. ++ ++ This program is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ++ GNU General Public License for more details. ++ ++ You should have received a copy of the GNU General Public License ++ along with this program; if not, write to the Free Software ++ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ++ ++ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ++ Portions of this file were copied from the Linux kernel source tree and ++ modified for use in libparted. Some of those portions held the ++ following copyright: ++ ++ (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 1999,2000 ++ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ++ */ ++ ++/******************************************************************************** ++ * SECTION: DASD device driver interface ++ * (linux/include/asm-s390/dasd.h) ++ *******************************************************************************/ ++#define DASD_IOCTL_LETTER 'D' ++ ++#define DASD_API_VERSION 5 ++ ++/* ++ * struct dasd_information2_t ++ * represents any data about the device, which is visible to userspace. ++ * including foramt and featueres. ++ */ ++typedef struct dasd_information2_t { ++ unsigned int devno; /* S/390 devno */ ++ unsigned int real_devno; /* for aliases */ ++ unsigned int schid; /* S/390 subchannel identifier */ ++ unsigned int cu_type : 16; /* from SenseID */ ++ unsigned int cu_model : 8; /* from SenseID */ ++ unsigned int dev_type : 16; /* from SenseID */ ++ unsigned int dev_model : 8; /* from SenseID */ ++ unsigned int open_count; ++ unsigned int req_queue_len; ++ unsigned int chanq_len; /* length of chanq */ ++ char type[4]; /* from discipline.name, 'none' for unknown */ ++ unsigned int status; /* current device level */ ++ unsigned int label_block; /* where to find the VOLSER */ ++ unsigned int FBA_layout; /* fixed block size (like AIXVOL) */ ++ unsigned int characteristics_size; ++ unsigned int confdata_size; ++ char characteristics[64]; /* from read_device_characteristics */ ++ char configuration_data[256]; /* from read_configuration_data */ ++ unsigned int format; /* format info like formatted/cdl/ldl/... */ ++ unsigned int features; /* dasd features like 'ro',... */ ++ unsigned int reserved0; /* reserved for further use ,... */ ++ unsigned int reserved1; /* reserved for further use ,... */ ++ unsigned int reserved2; /* reserved for further use ,... */ ++ unsigned int reserved3; /* reserved for further use ,... */ ++ unsigned int reserved4; /* reserved for further use ,... */ ++ unsigned int reserved5; /* reserved for further use ,... */ ++ unsigned int reserved6; /* reserved for further use ,... */ ++ unsigned int reserved7; /* reserved for further use ,... */ ++} dasd_information2_t; ++ ++/* ++ * values to be used for dasd_information_t.format ++ * 0x00: NOT formatted ++ * 0x01: Linux disc layout ++ * 0x02: Common disc layout ++ */ ++#define DASD_FORMAT_NONE 0 ++#define DASD_FORMAT_LDL 1 ++#define DASD_FORMAT_CDL 2 ++ ++#define DASD_PARTN_BITS 2 ++ ++/* ++ * struct format_data_t ++ * represents all data necessary to format a dasd ++ */ ++typedef struct format_data_t { ++ int start_unit; /* from track */ ++ int stop_unit; /* to track */ ++ int blksize; /* sectorsize */ ++ int intensity; ++} format_data_t; ++ ++/* ++ * values to be used for format_data_t.intensity ++ * 0/8: normal format ++ * 1/9: also write record zero ++ * 3/11: also write home address ++ * 4/12: invalidate track ++ */ ++#define DASD_FMT_INT_FMT_R0 1 /* write record zero */ ++#define DASD_FMT_INT_FMT_HA 2 /* write home address, also set FMT_R0 ! */ ++#define DASD_FMT_INT_INVAL 4 /* invalidate tracks */ ++#define DASD_FMT_INT_COMPAT 8 /* use OS/390 compatible disk layout */ ++ ++/******************************************************************************** ++ * SECTION: Definition of IOCTLs ++ * ++ * Here ist how the ioctl-nr should be used: ++ * 0 - 31 DASD driver itself ++ * 32 - 239 still open ++ * 240 - 255 reserved for EMC ++ *******************************************************************************/ ++ ++/* Disable the volume (for Linux) */ ++#define BIODASDDISABLE _IO(DASD_IOCTL_LETTER,0) ++/* Enable the volume (for Linux) */ ++#define BIODASDENABLE _IO(DASD_IOCTL_LETTER,1) ++ ++/* retrieve API version number */ ++#define DASDAPIVER _IOR(DASD_IOCTL_LETTER,0,int) ++/* Get information on a dasd device (enhanced) */ ++#define BIODASDINFO2 _IOR(DASD_IOCTL_LETTER,3,dasd_information2_t) ++/* Format dasd device */ ++#define BIODASDFMT _IOW(DASD_IOCTL_LETTER,1,format_data_t) ++ ++/******************************************************************************** ++ * SECTION: VTOC label information ++ * (linux/include/asm-s390/vtoc.h) ++ *******************************************************************************/ ++ ++#define LINE_LENGTH 80 ++#define VTOC_START_CC 0x0 ++#define VTOC_START_HH 0x1 ++#define VTOC_START_B 0x1 ++#define FIRST_USABLE_CYL 1 ++#define FIRST_USABLE_TRK 2 ++ ++#define DASD_3380_TYPE 13148 ++#define DASD_3390_TYPE 13200 ++#define DASD_9345_TYPE 37701 ++ ++#define DASD_3380_VALUE 0xbb60 ++#define DASD_3390_VALUE 0xe5a2 ++#define DASD_9345_VALUE 0xbc98 ++ ++#define VOLSER_LENGTH 6 ++#define BIG_DISK_SIZE 0x10000 ++ ++#define VTOC_ERROR "VTOC error:" ++ ++ ++typedef struct ttr ++{ ++ u_int16_t tt; ++ u_int8_t r; ++} __attribute__ ((packed)) ttr_t; ++ ++typedef struct cchhb ++{ ++ u_int16_t cc; ++ u_int16_t hh; ++ u_int8_t b; ++} __attribute__ ((packed)) cchhb_t; ++ ++typedef struct cchh ++{ ++ u_int16_t cc; ++ u_int16_t hh; ++} __attribute__ ((packed)) cchh_t; ++ ++typedef struct labeldate ++{ ++ u_int8_t year; ++ u_int16_t day; ++} __attribute__ ((packed)) labeldate_t; ++ ++ ++typedef struct volume_label ++{ ++ char volkey[4]; /* volume key = volume label */ ++ char vollbl[4]; /* volume label */ ++ char volid[6]; /* volume identifier */ ++ u_int8_t security; /* security byte */ ++ cchhb_t vtoc; /* VTOC address */ ++ char res1[5]; /* reserved */ ++ char cisize[4]; /* CI-size for FBA,... */ ++ /* ...blanks for CKD */ ++ char blkperci[4]; /* no of blocks per CI (FBA), blanks for CKD */ ++ char labperci[4]; /* no of labels per CI (FBA), blanks for CKD */ ++ char res2[4]; /* reserved */ ++ char lvtoc[14]; /* owner code for LVTOC */ ++ char res3[29]; /* reserved */ ++} __attribute__ ((packed)) volume_label_t; ++ ++ ++typedef struct extent ++{ ++ u_int8_t typeind; /* extent type indicator */ ++ u_int8_t seqno; /* extent sequence number */ ++ cchh_t llimit; /* starting point of this extent */ ++ cchh_t ulimit; /* ending point of this extent */ ++} __attribute__ ((packed)) extent_t; ++ ++/* typeind - extent type indicator */ ++#define EXTCYLB 0x81 ++#define EXTUSER 0x01 ++ ++typedef struct dev_const ++{ ++ u_int16_t DS4DSCYL; /* number of logical cyls */ ++ u_int16_t DS4DSTRK; /* number of tracks in a logical cylinder */ ++ u_int16_t DS4DEVTK; /* device track length */ ++ u_int8_t DS4DEVI; /* non-last keyed record overhead */ ++ u_int8_t DS4DEVL; /* last keyed record overhead */ ++ u_int8_t DS4DEVK; /* non-keyed record overhead differential */ ++ u_int8_t DS4DEVFG; /* flag byte */ ++ u_int16_t DS4DEVTL; /* device tolerance */ ++ u_int8_t DS4DEVDT; /* number of DSCB's per track */ ++ u_int8_t DS4DEVDB; /* number of directory blocks per track */ ++} __attribute__ ((packed)) dev_const_t; ++ ++/* DS4DEVFG - flag byte */ ++#define DS4DSF 0x20 ++#define DS4DEVAV 0x10 ++ ++/* ++ * Format 1 DSCB - Identifier ++ */ ++typedef struct format1_label ++{ ++ char DS1DSNAM[44]; /* data set name */ ++ u_int8_t DS1FMTID; /* format identifier */ ++ char DS1DSSN[6]; /* data set serial number */ ++ u_int16_t DS1VOLSQ; /* volume sequence number */ ++ labeldate_t DS1CREDT; /* creation date: ydd */ ++ labeldate_t DS1EXPDT; /* expiration date */ ++ u_int8_t DS1NOEPV; /* number of extents on volume */ ++ u_int8_t DS1NOBDB; /* no. of bytes used in last direction blk */ ++ u_int8_t DS1FLAG1; /* flag 1 */ ++ char DS1SYSCD[13]; /* system code */ ++ labeldate_t DS1REFD; /* date last referenced */ ++ u_int8_t DS1SMSFG; /* system managed storage indicators */ ++ u_int8_t DS1SCXTF; /* sec. space extension flag byte */ ++ u_int16_t DS1SCXTV; /* secondary space extension value */ ++ u_int8_t DS1DSRG1; /* data set organisation byte 1 */ ++ u_int8_t DS1DSRG2; /* data set organisation byte 2 */ ++ u_int8_t DS1RECFM; /* record format */ ++ u_int8_t DS1OPTCD; /* option code */ ++ u_int16_t DS1BLKL; /* block length */ ++ u_int16_t DS1LRECL; /* record length */ ++ u_int8_t DS1KEYL; /* key length */ ++ u_int16_t DS1RKP; /* relative key position */ ++ u_int8_t DS1DSIND; /* data set indicators */ ++ u_int8_t DS1SCAL1; /* secondary allocation flag byte */ ++ char DS1SCAL3[3]; /* secondary allocation quantity */ ++ ttr_t DS1LSTAR; /* last used track and block on track */ ++ u_int16_t DS1TRBAL; /* space remaining on last used track */ ++ u_int16_t res1; /* reserved */ ++ extent_t DS1EXT1; /* first extent description */ ++ extent_t DS1EXT2; /* second extent description */ ++ extent_t DS1EXT3; /* third extent description */ ++ cchhb_t DS1PTRDS; /* possible pointer to f2 or f3 DSCB */ ++} __attribute__ ((packed)) format1_label_t; ++ ++/* DS1DSRG1 - data set organization */ ++#define DS1DSGPS 0x40 ++#define DS1DSGU 0x01 ++ ++/* DS1RECFM - record format */ ++#define DS1RECFF 0x80 ++#define DS1RECFS 0x08 ++ ++/* DS1DSIND - data set indicators */ ++#define DS1IND80 0x80 ++ ++/* DS1CAL1 - space parameters */ ++#define DS1TRK 0x80 ++ ++/* ++ * Format 4 DSCB - VTOC ++ */ ++typedef struct format4_label ++{ ++ char DS4KEYCD[44]; /* key code for VTOC labels: 44 times 0x04 */ ++ u_int8_t DS4IDFMT; /* format identifier */ ++ cchhb_t DS4HPCHR; /* highest address of a format 1 DSCB */ ++ u_int16_t DS4DSREC; /* number of available DSCB's */ ++ cchh_t DS4HCCHH; /* CCHH of next available alternate track */ ++ u_int16_t DS4NOATK; /* number of remaining alternate tracks */ ++ u_int8_t DS4VTOCI; /* VTOC indicators */ ++ u_int8_t DS4NOEXT; /* number of extents in VTOC */ ++ u_int8_t DS4SMSFG; /* system managed storage indicators */ ++ u_int8_t DS4DEVAC; /* number of alternate cylinders. ++ Subtract from first two bytes of ++ DS4DEVSZ to get number of usable ++ cylinders. can be zero. valid ++ only if DS4DEVAV on. */ ++ dev_const_t DS4DEVCT; /* device constants */ ++ char DS4AMTIM[8]; /* VSAM time stamp */ ++ char DS4AMCAT[3]; /* VSAM catalog indicator */ ++ char DS4R2TIM[8]; /* VSAM volume/catalog match time stamp */ ++ char res1[5]; /* reserved */ ++ char DS4F6PTR[5]; /* pointer to first format 6 DSCB */ ++ extent_t DS4VTOCE; /* VTOC extent description */ ++ char res2[10]; /* reserved */ ++ u_int8_t DS4EFLVL; /* extended free-space management level */ ++ cchhb_t DS4EFPTR; /* pointer to extended free-space info */ ++ char res3[9]; /* reserved */ ++} __attribute__ ((packed)) format4_label_t; ++ ++/* DS4VTOCI - VTOC indicators */ ++#define DS4DOSBT 0x80 ++#define DS4EFVLD 0x20 ++ ++/* DS4EFLVL - Extended free-space management level */ ++#define DS4EFL00 0x00 ++#define DS4EFL07 0x07 ++ ++/* ++ * Format 5 DSCB extent ++ */ ++typedef struct ds5ext ++{ ++ u_int16_t t; /* RTA of the first track of free extent */ ++ u_int16_t fc; /* number of whole cylinders in free ext. */ ++ u_int8_t ft; /* number of remaining free tracks */ ++} __attribute__ ((packed)) ds5ext_t; ++ ++/* ++ * Format 5 DSCB - Free space ++ */ ++typedef struct format5_label ++{ ++ char DS5KEYID[4]; /* key identifier */ ++ ds5ext_t DS5AVEXT; /* first available (free-space) extent. */ ++ ds5ext_t DS5EXTAV[7]; /* seven available extents */ ++ u_int8_t DS5FMTID; /* format identifier */ ++ ds5ext_t DS5MAVET[18]; /* eighteen available extents */ ++ cchhb_t DS5PTRDS; /* pointer to next format5 DSCB */ ++} __attribute__ ((packed)) format5_label_t; ++ ++#define DS5EXTMX 26 /* max # of free extents */ ++ ++/* ++ * Format 7 DSCB extent ++ */ ++typedef struct ds7ext ++{ ++ u_int32_t a; /* starting RTA value */ ++ u_int32_t b; /* ending RTA value + 1 */ ++} __attribute__ ((packed)) ds7ext_t; ++ ++/* ++ * Format 7 DSCB - Free space for certain devices ++ */ ++typedef struct format7_label ++{ ++ char DS7KEYID[4]; /* key identifier */ ++ ds7ext_t DS7EXTNT[5]; /* space for 5 extent descriptions */ ++ u_int8_t DS7FMTID; /* format identifier */ ++ ds7ext_t DS7ADEXT[11]; /* space for 11 extent descriptions */ ++ char res1[2]; /* reserved */ ++ cchhb_t DS7PTRDS; /* pointer to next FMT7 DSCB */ ++} __attribute__ ((packed)) format7_label_t; ++ ++#define DS7EXTMX 16 /* max # of free extents */ ++ ++/******************************************************************************** ++ * SECTION: libparted specific disk interface ++ *******************************************************************************/ ++ ++/* from */ ++#define BLKSSZGET _IO(0x12,104) /* get block device sector size */ ++ ++/* from */ ++#define HDIO_GETGEO 0x0301 /* get device geometry */ ++typedef struct hd_geometry { ++ unsigned char heads; ++ unsigned char sectors; ++ unsigned short cylinders; ++ unsigned long start; ++} hd_geometry_t; ++ ++#define DASD_MIN_API_VERSION 2 ++#define PARTN_MASK ((1 << DASD_PARTN_BITS) - 1) ++#define USABLE_PARTITIONS ((1 << DASD_PARTN_BITS) - 1) ++#define MAX_BLKSIZE 4096 ++#define B2S(s) (anc->spb * (s)) ++#define S2B(b) ((b) / anc->spb) ++#define B2T(b) ((b) / anc->geo.sectors) ++#define S2T(b) (B2T (S2B (b))) ++#define FIRST_USABLE_BLK (FIRST_USABLE_TRK * anc->geo.sectors) ++ ++typedef struct partition_info { ++ format1_label_t *f1; ++ char dsn[45]; ++ char volser[7]; ++ int type; ++ int pnum; ++} partition_info_t; ++ ++/* type - partition type */ ++#define PART_UNUSED 0 ++#define PART_NATIVE 1 ++#define PART_SWAP 2 ++ ++typedef struct _anchor { ++ int big_disk; ++ int format; ++ int spb; ++ int devno; ++ int label_blk; ++ int blksize; ++ u_int16_t dev_type; ++ hd_geometry_t geo; ++ PedDevice *dev; ++ void *sect; ++ volume_label_t *vlabel; ++ format4_label_t *f4; ++ format5_label_t *f5; ++ format7_label_t *f7; ++ format1_label_t *f1; ++} _anchor_t; ++ ++typedef struct bootstrap1 { ++ u_int32_t key; ++ u_int32_t data[6]; ++} __attribute__ ((packed)) bootstrap1_t; ++ ++typedef struct bootstrap2 { ++ u_int32_t key; ++ u_int32_t data[36]; ++} __attribute__ ((packed)) bootstrap2_t; ++ +diff -urNad parted-1.6.24~/libparted/libparted.c parted-1.6.24/libparted/libparted.c +--- parted-1.6.24~/libparted/libparted.c 2005-10-10 15:50:25.000000000 -0300 ++++ parted-1.6.24/libparted/libparted.c 2005-07-11 07:45:23.000000000 -0300 +@@ -87,6 +87,7 @@ + extern void ped_disk_pc98_init (); + extern void ped_disk_sun_init (); + extern void ped_disk_amiga_init (); ++extern void ped_disk_s390_init (); + + static void + init_disk_types () +@@ -94,6 +95,7 @@ + ped_disk_loop_init (); /* must be last in the probe list */ + + ped_disk_sun_init (); ++ ped_disk_s390_init (); + #ifdef ENABLE_PC98 + ped_disk_pc98_init (); + #endif +@@ -142,6 +144,7 @@ + extern void ped_disk_pc98_done (); + extern void ped_disk_sun_done (); + extern void ped_disk_amiga_done (); ++extern void ped_disk_s390_done (); + + static void + done_disk_types () +@@ -157,6 +160,7 @@ + ped_disk_dvh_done (); + ped_disk_bsd_done (); + ped_disk_amiga_done (); ++ ped_disk_s390_done (); + } + + static void _init() __attribute__ ((constructor)); +diff -urNad parted-1.6.24~/libparted/linux.c parted-1.6.24/libparted/linux.c +--- parted-1.6.24~/libparted/linux.c 2004-05-05 10:45:53.000000000 -0300 ++++ parted-1.6.24/libparted/linux.c 2005-10-10 15:52:50.009850256 -0300 +@@ -217,6 +217,7 @@ + #define I2O_MAJOR6 85 + #define I2O_MAJOR7 86 + #define I2O_MAJOR8 87 ++#define DASD_MAJOR 94 + #define UBD_MAJOR 98 + + #define SCSI_BLK_MAJOR(M) ( \ +@@ -310,6 +311,8 @@ + dev->type = PED_DEVICE_I2O; + } else if (_is_cpqarray_major (dev_major) && (dev_minor % 0x10 == 0)) { + dev->type = PED_DEVICE_CPQARRAY; ++ } else if (dev_major == DASD_MAJOR && (dev_minor % 0x4 == 0)) { ++ dev->type = PED_DEVICE_DASD; + } else if (dev_major == UBD_MAJOR && (dev_minor % 0x10 == 0)) { + dev->type = PED_DEVICE_UBD; + } else { +@@ -360,31 +363,10 @@ + _device_get_sector_size (PedDevice* dev) + { + LinuxSpecific* arch_specific = LINUX_SPECIFIC (dev); +- int sector_size = PED_SECTOR_SIZE; /*makes Valgrind happy*/ ++ int sector_size = PED_SECTOR_SIZE; + + PED_ASSERT (dev->open_count, return 0); + +- if (_get_linux_version() < KERNEL_VERSION (2,3,0)) +- return PED_SECTOR_SIZE; +- if (ioctl (arch_specific->fd, BLKSSZGET, §or_size)) +- return PED_SECTOR_SIZE; +- +- if (sector_size != PED_SECTOR_SIZE) { +- if (ped_exception_throw ( +- PED_EXCEPTION_BUG, +- PED_EXCEPTION_IGNORE_CANCEL, +- _("The sector size on %s is %d bytes. Parted is known " +- "not to work properly with drives with sector sizes " +- "other than %d bytes."), +- dev->path, +- sector_size, +- PED_SECTOR_SIZE) +- == PED_EXCEPTION_IGNORE) +- return sector_size; +- else +- return PED_SECTOR_SIZE; +- } +- + return sector_size; + } + +@@ -411,7 +393,9 @@ + + if (_kernel_has_blkgetsize64()) { + if (ioctl(arch_specific->fd, BLKGETSIZE64, &bytes) == 0) { +- return bytes / PED_SECTOR_SIZE; ++ int ssize = _device_get_sector_size (dev); ++ if (ssize) ++ return bytes / ssize; + } + } + +@@ -462,8 +446,7 @@ + dev->hw_geom.heads = geometry.heads; + dev->hw_geom.cylinders + = dev->length / (dev->hw_geom.heads +- * dev->hw_geom.sectors) +- / (dev->sector_size / PED_SECTOR_SIZE); ++ * dev->hw_geom.sectors); + } else { + dev->hw_geom = dev->bios_geom; + } +@@ -870,6 +853,11 @@ + goto error_free_dev; + break; + ++ case PED_DEVICE_DASD: ++ if (!init_generic (dev, _("s390/zSeries DASD"))) ++ goto error_free_dev; ++ break; ++ + case PED_DEVICE_FILE: + if (!init_file (dev)) + goto error_free_arch_specific; +diff -urNad parted-1.6.24~/libparted/Makefile.am parted-1.6.24/libparted/Makefile.am +--- parted-1.6.24~/libparted/Makefile.am 2005-10-10 15:50:25.000000000 -0300 ++++ parted-1.6.24/libparted/Makefile.am 2005-07-11 07:43:24.000000000 -0300 +@@ -44,6 +44,7 @@ + disk_pc98.c \ + disk_sun.c \ + disk_amiga.c \ ++ disk_s390.c \ + @OS@.c + + EXTRA_libparted_la_SOURCES = linux.c \ --- parted-1.6.25.1.orig/debian/patches/lvm2.dpatch +++ parted-1.6.25.1/debian/patches/lvm2.dpatch @@ -0,0 +1,103 @@ +#! /bin/sh -e +## lvm2.dpatch by Andres Salomon +## +## DP: Find LVM2 devices by looking in /dev/mapper +## DP: Closes: #247174 +## DP: Upstream objected to merging, will stay debian specific for now. + +. `dirname $0`/DPATCH + +@DPATCH@ +diff -urN parted-1.6.9.orig/libparted/linux.c parted-1.6.9/libparted/linux.c +--- parted-1.6.9.orig/libparted/linux.c 2004-05-05 14:41:23.000000000 +0100 ++++ parted-1.6.9/libparted/linux.c 2004-05-05 14:45:53.000000000 +0100 +@@ -24,6 +24,7 @@ + #include + + #include ++#include + #include + #include + #include +@@ -1356,6 +1357,68 @@ + return *pos == 0; + } + ++ static int ++_probe_lvm_major () ++{ ++ FILE* proc_devices; ++ int major, result = 0; ++ char buf [512]; ++ char dev_name [32]; ++ ++ /* Obtain the major number for lvm devices; this is listed in ++ * /proc/devices, under the device-mapper entry. ++ */ ++ ++ proc_devices = fopen ("/proc/devices", "r"); ++ if (!proc_devices) ++ return 0; ++ ++ while (fgets (buf, 512, proc_devices)) { ++ if (sscanf (buf, "%d %31s", &major, dev_name) == 2 ++ && strcmp (dev_name, "device-mapper") == 0) { ++ result = major; ++ break; ++ } ++ } ++ fclose (proc_devices); ++ ++ return result; ++} ++ ++static int ++_probe_lvm_devices () ++{ ++ DIR* mapper_dir; ++ struct dirent* dent; ++ char buf [512]; /* readdir(3) claims d_name[256] */ ++ struct stat st; ++ dev_t lvm_major; ++ ++ lvm_major = _probe_lvm_major (); ++ if (!lvm_major) ++ return 0; ++ ++ mapper_dir = opendir ("/dev/mapper"); ++ if (!mapper_dir) ++ return 0; ++ ++ /* Search the /dev/mapper directory for devices w/ the same major ++ * number that was returned from _probe_lvm_major(). ++ */ ++ while ((dent = readdir (mapper_dir))) { ++ if (strcmp (dent->d_name, ".") == 0 || ++ strcmp (dent->d_name, "..") == 0) ++ continue; ++ ++ snprintf (buf, sizeof (buf), "/dev/mapper/%s", dent->d_name); ++ if (stat (buf, &st) == 0 && ((unsigned int)major (st.st_rdev) == lvm_major)) ++ _ped_device_probe (buf); ++ } ++ closedir (mapper_dir); ++ ++ return 1; ++} ++ + static int + _probe_proc_partitions () + { +@@ -1442,6 +1505,12 @@ + _probe_devfs_devices (); + else + _probe_standard_devices (); ++ ++ /* LVM2 devices aren't listed in /proc/partitions; or, if they are, ++ * they're listed as dm-X. So, instead of relying on that, we do ++ * our own checks. ++ */ ++ _probe_lvm_devices (); + } + + static char* --- parted-1.6.25.1.orig/debian/patches/DPATCH +++ parted-1.6.25.1/debian/patches/DPATCH @@ -0,0 +1,16 @@ +[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts +patch_opts="${patch_opts:--f --no-backup-if-mismatch}" + +if [ $# -ne 1 ]; then + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1 +fi +case "$1" in + -patch) patch $patch_opts -p1 -T < $0;; + -unpatch) patch $patch_opts -p1 -R < $0;; + *) + echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" + exit 1;; +esac + +exit 0 --- parted-1.6.25.1.orig/debian/patches/fix_rescue_segfault.dpatch +++ parted-1.6.25.1/debian/patches/fix_rescue_segfault.dpatch @@ -0,0 +1,103 @@ +=== trunk/parted/ui.c +#! /bin/sh -e +## fix_rescue_segfault.dpatch by Otavio Salvador +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix a segfault in recue command. Backported from 1.6.26 + +. `dirname $0`/DPATCH + +@DPATCH@ +================================================================== +--- trunk/parted/ui.c (revision 321) ++++ trunk/parted/ui.c (revision 322) +@@ -559,18 +559,21 @@ + * default. + */ + if (input && *value && !strcmp (input, def_str)) { +- *range = ped_geometry_new (dev, *value, 1); +- PED_ASSERT (*range != NULL, return 0); ++ if (range) { ++ *range = ped_geometry_new (dev, *value, 1); ++ ped_free (def_str); ++ return *range != NULL; ++ } + + ped_free (def_str); +- + return 1; + } + + ped_free (def_str); + if (!input) { + *value = 0; +- *range = NULL; ++ if (range) ++ *range = NULL; + return 0; + } + +=== trunk/libparted/unit.c +================================================================== +--- trunk/libparted/unit.c (revision 321) ++++ trunk/libparted/unit.c (revision 322) +@@ -352,15 +352,17 @@ + str, dev->path); + goto error_free_copy; + } +- *range = ped_geometry_new (dev, *sector, 1); ++ if (range) ++ *range = ped_geometry_new (dev, *sector, 1); + ped_free (copy); +- return 1; ++ return !range || *range != NULL; + + error_free_copy: + ped_free (copy); + error: + *sector = 0; +- *range = NULL; ++ if (range) ++ *range = NULL; + return 0; + } + +@@ -455,26 +457,28 @@ + /* negative numbers count from the end */ + if (copy[0] == '-') + *sector += dev->length; +- *range = geometry_from_centre_radius (dev, *sector, radius); +- if (!*range) { +- ped_exception_throw ( +- PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL, +- _("The location %s is outside of the device %s."), +- str, dev->path); +- goto error_free_copy; ++ if (range) { ++ *range = geometry_from_centre_radius (dev, *sector, radius); ++ if (!*range) { ++ ped_exception_throw ( ++ PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL, ++ _("The location %s is outside of the " ++ "device %s."), ++ str, dev->path); ++ goto error_free_copy; ++ } + } + *sector = clip (dev, *sector); + + ped_free (copy); + return 1; + +-error_destroy_range: +- ped_geometry_destroy (*range); + error_free_copy: + ped_free (copy); + error: + *sector = 0; +- *range = NULL; ++ if (range) ++ *range = NULL; + return 0; + } + --- parted-1.6.25.1.orig/debian/patches/devfs.dpatch +++ parted-1.6.25.1/debian/patches/devfs.dpatch @@ -0,0 +1,58 @@ +#! /bin/sh -e +## devfs.dpatch by Joey Hess +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: If /proc/partition probing fails, don't assume standard +## DP: partitions, but try out devfs style partitions too. +## DP: Closes: #243635 +## DP: Candidate for upstream integration. + +. `dirname $0`/DPATCH + +@DPATCH@ +diff -urN parted-1.6.9/libparted/linux.c parted-1.6.9-devfs/libparted/linux.c +--- parted-1.6.9/libparted/linux.c 2004-03-09 11:16:18.000000000 +0100 ++++ parted-1.6.9-devfs/libparted/linux.c 2004-04-14 10:01:05.000000000 +0200 +@@ -28,6 +28,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -1417,6 +1418,22 @@ + return 1; + } + ++int _probe_devfs_entry (const char *file, const struct stat *sb, int flag) ++{ ++ int len=strlen(file); ++ if (flag == FTW_F && file[len-1] == 'c' && file[len-2] == 's' && ++ file[len-3] == 'i' && file[len-4] == 'd' && file[len-5] == '/') { ++ _ped_device_probe(file); ++ } ++ return 0; ++} ++ ++static void ++_probe_devfs_devices () ++{ ++ ftw ("/dev", _probe_devfs_entry, 32); ++} ++ + static void + linux_probe_all () + { +@@ -1426,7 +1443,10 @@ + * because /proc/partitions might return devfs stuff, and we might not + * have devfs available + */ +- _probe_standard_devices (); ++ if (_have_devfs ()) ++ _probe_devfs_devices (); ++ else ++ _probe_standard_devices (); + } + + static char* --- parted-1.6.25.1.orig/debian/patches/reiserfs-libname.dpatch +++ parted-1.6.25.1/debian/patches/reiserfs-libname.dpatch @@ -0,0 +1,29 @@ +#! /bin/sh -e +## reiserfs-libname.dpatch by Timshel Knoll +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: loading proper reiserfs shared library names. +## DP: Closes: #163107 +## DP: Debian specific patch, uneeded because libreiserfs is not in sarge. + +. `dirname $0`/DPATCH + +@DPATCH@ +--- parted-1.6.6.orig/libparted/fs_reiserfs/reiserfs.c ++++ parted-1.6.6/libparted/fs_reiserfs/reiserfs.c +@@ -698,13 +698,13 @@ + + static int reiserfs_ops_init(void) + { +- if (!(libreiserfs_handle = dlopen("libreiserfs.so", RTLD_NOW))) ++ if (!(libreiserfs_handle = dlopen("libreiserfs-0.3.so.0", RTLD_NOW))) + goto error; + + if (!reiserfs_ops_interface_version_check()) + goto error_free_libreiserfs_handle; + +- if (!(libdal_handle = dlopen("libdal.so", RTLD_NOW))) ++ if (!(libdal_handle = dlopen("libdal-0.3.so.0", RTLD_NOW))) + goto error_free_libreiserfs_handle; + + INIT_SYM(reiserfs_fs_probe); --- parted-1.6.25.1.orig/debian/patches/00list +++ parted-1.6.25.1/debian/patches/00list @@ -0,0 +1,16 @@ +# Debian specific patches +doc-package +reiserfs-libname +# Patch susceptible to be merged upstream +errors-to-stderr +devfs + +# Backports +fix_rescue_segfault + +# Will also stay debian specific, but depends on some of the above :/ +lvm2 +#s390 +# Patch which may be obsolet. +#amiga-raid-lvm_fix +sparc-no-chs-in-udeb --- parted-1.6.25.1.orig/debian/patches/amiga-raid-lvm-fix.dpatch +++ parted-1.6.25.1/debian/patches/amiga-raid-lvm-fix.dpatch @@ -0,0 +1,36 @@ +#!/bin/sh -e +## amiga_raid_lvm_fix.dpatch by Sven Luther +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Use real partition types instead of flags for RAID/LVM, as partition types they are. + +. `dirname $0`/DPATCH + +@DPATCH@ +--- parted-1.6.23/libparted/disk_amiga.c.orig 2005-07-11 12:24:01.000000000 +0200 ++++ parted-1.6.23/libparted/disk_amiga.c 2005-07-11 12:37:30.464024848 +0200 +@@ -941,12 +942,20 @@ + else partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_NOMOUNT)); + return 1; + case PED_PARTITION_RAID: +- if (state) partition->pb_Flags |= PED_CPU_TO_BE32(PBFF_RAID); +- else partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_RAID)); ++ if (state) partition->de_DosType = PED_CPU_TO_BE32(0x52414944); /* 'RAID' */ ++ else partition->de_DosType = PED_CPU_TO_BE32(0x00000000); ++ if (state) { ++ partition->pb_Flags |= PED_CPU_TO_BE32(PBFF_RAID); ++ partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_LVM)); ++ } else partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_RAID)); + return 1; + case PED_PARTITION_LVM: +- if (state) partition->pb_Flags |= PED_CPU_TO_BE32(PBFF_LVM); +- else partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_LVM)); ++ if (state) partition->de_DosType = PED_CPU_TO_BE32(0x4c564d00); /* 'LVM\0' */ ++ else partition->de_DosType = PED_CPU_TO_BE32(0x00000000); ++ if (state) { ++ partition->pb_Flags |= PED_CPU_TO_BE32(PBFF_LVM); ++ partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_RAID)); ++ } else partition->pb_Flags &= ~(PED_CPU_TO_BE32(PBFF_LVM)); + return 1; + default: + return 0; --- parted-1.6.25.1.orig/debian/parted.files +++ parted-1.6.25.1/debian/parted.files @@ -0,0 +1,4 @@ +sbin +usr/share/man/man8/parted.8 +usr/share/man/man8/partprobe.8 +usr/share/man/pt_BR/man8/parted.8 --- parted-1.6.25.1.orig/debian/rules +++ parted-1.6.25.1/debian/rules @@ -0,0 +1,394 @@ +#!/usr/bin/make -f +# GNU Parted debian/rules +# +# This file is used by dpkg-buildpackage to build the parted packages. +# To build a package, run `dpkg-buildpackage' or `debuild' from the +# parent directory. (You may need to specify `-rfakeroot' to +# dpkg-buildpackage if you are not running it as root ...) +# +# $Id: rules,v 1.50 2003/02/19 11:13:18 timshel Exp $ +# +# Copyright (C) 1999, 2000, 2001, 2002 Timshel Knoll +# Licensed under the terms of the GNU General Public License +# +# Based (a long time ago) on parted's debian/rules, which in turn is based on +# `Sample debian/rules that uses debhelper' from dh_make, +# GNU Copyright (C) 1997 to 1999 by Joey Hess + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# This is the debhelper compatability version to use. +export DH_COMPAT=3 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +# The version of the debian package, used in naming the udeb +DEBPKGVER = $(shell dpkg-parsechangelog | sed -n -e '/^Version: /{s///;p;q;}') + +# The library package version, ie. version 0.2 will build package +# libparted0.2, libparted0.2-dev etc. +# When incrementing this because of a new library SONAME, add an 'a' to the +# end if there isn't already one, otherwise increment the letter that is +# already there. +# When incrementing this, also set DEPVER to the current package version. +LIBPKGVER = 1.6 + +# Append the LIBPKGVER to non-lib package names? This is useful when building +# packages of the development versions of parted (eg. to build a parted1.5 +# package) +# BINPKGVER = $(LIBPKGVER) + +# The first version of the package to build with the current LIBPKGVER +# This should be changed to the current version when LIBPKGVER is changed ... +DEPVER = 1.6.24 + +# This is the library's soname. The build will fail if this is wrong, since +# if the soname has changed we need to update stuff ... +LIBSONAME = 13 + +# This is for the version for the shared library +SHAREDLIBPKGVER = $(LIBPKGVER)-$(LIBSONAME) + +# The list of sed substitutions we need to do when generating files ... +# if you put `x' in here somewhere, the substitution `s/@x@/$(x)/' +# will be done ... +SUBSTS = LIBPKGVER BINPKGVER DEPVER LIBSONAME SHAREDLIBPKGVER + +# Files which are generated by this script ... +# You will probably need to change this depending on what files your package +# needs ... +GENFILES = debian/control \ + debian/libparted$(SHAREDLIBPKGVER).files \ + debian/libparted$(LIBPKGVER)-dev.files \ + debian/libparted$(LIBPKGVER)-i18n.files \ + +ifneq (, $(BINPKGVER)) +GENFILES += debian/parted$(BINPKGVER).files \ + debian/parted$(BINPKGVER)-doc.files \ + debian/parted$(BINPKGVER)-doc.docs \ + debian/parted$(BINPKGVER)-doc.postinst \ + debian/parted$(BINPKGVER)-doc.prerm +endif + +ifeq (, $(DEB_BUILD_ARCH)) +DEB_BUILD_ARCH = $(shell dpkg-architecture -qDEB_BUILD_ARCH) +endif + +ifeq (, $(DEB_BUILD_GNU_TYPE)) +DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +endif + +ifeq (, $(DEB_HOST_GNU_TYPE)) +DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +endif + +ifeq (, $(DEB_BUILD_GNU_SYSTEM)) +DEB_BUILD_GNU_SYSTEM = $(shell dpkg-architecture -qDEB_BUILD_GNU_SYSTEM) +endif + +ifeq (, $(ARCH)) +ARCH = $(DEB_BUILD_ARCH) +endif + +ifeq (, $(CFLAGS)) +CFLAGS = -g +UDEB_CFLAGS = -g + +ifeq (, $(findstring noopt, $(DEB_BUILD_OPTIONS))) +CFLAGS += -O2 +UDEB_CFLAGS += -Os +else +CFLAGS += -O0 +UDEB_CFLAGS += -O0 +endif + +endif + +# this is sparc specific.. no fear. +UDEB_CFLAGS += -DNOCHSEXCEPTION=1 + +# This is a workaround for a m68k compiler bug ... +ifeq (m68k, $(DEB_BUILD_ARCH)) + CONFFLAGS += --disable-Werror +endif +ifeq (s390, $(DEB_BUILD_ARCH)) + CONFFLAGS += --disable-Werror +endif +ifeq (gnu, $(DEB_BUILD_GNU_SYSTEM)) + CONFFLAGS += --disable-Werror +endif + +# This builds a substitution list for sed based on the SUBSTS variable +# and the variables whose names SUBSTS contains ... +SUBSTLIST = $(foreach subst, $(SUBSTS), s/@$(subst)@/$($(subst))/g;) + +# Pattern rules: + +# How to generate various files ... +debian/%: debian/%.in debian/rules + sed -e '$(SUBSTLIST)' < $< > $@ + +# This puts the libparted* packaging files in their right places +debian/libparted$(SHAREDLIBPKGVER)%: debian/libparted% + cp $< $@ + +debian/libparted$(LIBPKGVER)%: debian/libparted% + cp $< $@ + +debian/parted$(BINPKGVER)%: debian/parted% + cp $< $@ + +# by default, do something sane ... +default: echo-vars + +echo-vars: + @echo "Try: debian/rules [configure|build|install|binary|binary-arch|binary-indep|clean]" + @echo "CFLAGS: $(CFLAGS)" + @echo "DEB_BUILD_ARCH: $(DEB_BUILD_ARCH)" + @echo "DEB_BUILD_GNU_TYPE: $(DEB_BUILD_GNU_TYPE)" + @echo "DEB_HOST_GNU_TYPE: $(DEB_HOST_GNU_TYPE)" + @echo "LIBSONAME: $(LIBSONAME)" + @echo "LIBPKGVER: $(LIBPKGVER)" + @echo "BINPKGVER: $(BINPKGVER)" + @echo "GENFILES: $(GENFILES)" + @echo "SUBSTLIST: $(SUBSTLIST)" + +packaging-files: $(GENFILES) + +autotools-update: autotools-update-stamp +autotools-update-stamp: patch-stamp + ACLOCAL=aclocal-1.8 AUTOMAKE=automake-1.8 autoreconf -f -i + touch $@ + +build-deb/config.status: autotools-update-stamp + dh_testdir + [ -d build-deb ] || mkdir build-deb + +ifneq (, $(findstring debug, $(DEB_BUILD_OPTIONS))) + @echo "warning: option \`debug' in \$$DEB_BUILD_OPTIONS: building with gcc option \`-g'" >&2 +endif + +# Add here commands to configure the package. +# Install the `parted' executable to /sbin ... + cd build-deb && CFLAGS="$(CFLAGS)" ../configure --prefix=/usr \ + --sbindir=/sbin --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info --enable-shared \ + --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) \ + $(CONFFLAGS) + +build-udeb/config.status: autotools-update-stamp + dh_testdir + [ -d build-udeb ] || mkdir build-udeb + + cd build-udeb && CFLAGS="$(UDEB_CFLAGS)" ../configure --prefix=/usr \ + --sbindir=/sbin --libdir=/lib --mandir=\$${prefix}/share/man \ + --infodir=\$${prefix}/share/info --enable-shared --disable-static \ + --without-readline $(CONFFLAGS) \ + --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) + +build-dbg/config.status: autotools-update-stamp + dh_testdir + [ -d build-dbg ] || mkdir build-dbg + +# Add here commands to configure the package. + cd build-dbg && CFLAGS="-g $(CFLAGS)" ../configure --prefix=/usr \ + --enable-mtrace --disable-shared $(CONFFLAGS) \ + --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE) + + touch $@ + +build: build-deb build-udeb build-dbg + +build-deb: build-deb/build-stamp +build-deb/build-stamp: build-deb/config.status + dh_testdir + + $(MAKE) -C build-deb + + touch $@ + +build-udeb: build-udeb/build-stamp +build-udeb/build-stamp: build-udeb/config.status + dh_testdir + +# Only build binaries + $(MAKE) -C build-udeb/libparted + $(MAKE) -C build-udeb/parted + + touch $@ + +build-dbg: build-dbg/build-stamp +build-dbg/build-stamp: build-dbg/config.status + dh_testdir + +# Add here commands to compile the package. +# Don't need to build headers or doco rubbish, just the library ... +# Note: this assumes that the library source code is in the +# libparted directory, change this if it isn't ... + $(MAKE) -C build-dbg/libparted + + touch $@ + +clean: unpatch packaging-files + dh_testdir + dh_testroot + +# Add here commands to clean up after the build process + rm -rf build-deb build-udeb build-dbg + + rm -f autotools-update-stamp + +# Remove all debian/libparted*.* except for libparted.*, +# libparted-dev.* and libparted$(LIBPKGVER)* + @for file in debian/libparted*; do \ + file="`basename $$file`"; \ + case "$$file" in \ + libparted.*|libparted-dev.*|libparted-i18n.*|\ + libparted$(LIBPKGVER).*|libparted$(LIBPKGVER)-dev.*|\ + libparted$(LIBPKGVER)-i18n.*|libparted$(LIBPKGVER)-udeb.*) \ + ;; \ + *) \ + echo "rm -rf \"debian/$$file\""; \ + rm -rf "debian/$$file" ;; \ + esac; \ + done + + dh_clean + +install: DH_OPTIONS=-Nparted$(BINPKGVER)-udeb -Nlibparted$(LIBPKGVER)-udeb -Nlibparted$(LIBPKGVER)-dbg +install: build packaging-files + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) -C build-deb install DESTDIR=$(CURDIR)/debian/tmp + +# We need to do 2 things here: +# 1. Check that $(LIBSONAME) is actually what the library's SONAME is +# 2. Fix the libparted.so symlink to point to /lib/libparted.so.x.x.x +# rather than being relative & pointing to the current directory + @(cd debian/tmp/usr/lib; \ + SONAME=`ls libparted-$(LIBPKGVER).so.*.*.* | \ + sed -e 's/^.*\.so\.\([0-9]\+\)\..*$$/\1/'`; \ + if [ "$(LIBSONAME)" -ne "$$SONAME" ]; then \ + echo " *** error: debian/rules thinks that libparted is" \ + "version $(LIBSONAME)" >&2; \ + echo " *** library is actually version $$SONAME. These should" \ + "be the same." >&2; \ + echo " *** Change the value of LIBSONAME to $$SONAME in" \ + "debian/rules, and" >&2; \ + echo " *** while you're there, bump the value of LIBPKGVER and" \ + "also set"; \ + echo " *** DEPVER to the current version of the package that" \ + "you are building." >&2; \ + exit 1; \ + fi; \ + ln -sf /lib/`readlink libparted.so` libparted.so) + + exit +# Make sure the shared libs are in /lib (otherwise there's no point +# installing the executable to /sbin ...) :-) + mkdir -p debian/tmp/lib + mv debian/tmp/usr/lib/*.so.* debian/tmp/lib + + dh_movefiles + +# Remove all empty directories under debian/tmp +# The `sort -r' makes sure that the dir `x/y' is removed before `x' + rmdir --ignore-fail-on-non-empty `find debian/tmp -type d | sort -r` + + @if [ -d debian/tmp ]; then \ + echo " *** WARNING: files exists in debian/tmp after" \ + "dh_movefiles!!!" >&2; \ + echo " *** Maybe the debian/*.files files need updating ..." >&2; \ + fi + +install-udeb: DH_OPTIONS=-pparted$(BINPKGVER)-udeb -plibparted$(LIBPKGVER)-udeb +install-udeb: LIBPARTED_UDEB=$(shell dh_listpackages | grep -E '^libparted$(LIBPKGVER)-udeb$$') +install-udeb: PARTED_UDEB=$(shell dh_listpackages | grep -E '^parted$(BINPKGVER)-udeb$$') +install-udeb: build-udeb + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + [ -z "$(LIBPARTED_UDEB)" ] || \ + $(MAKE) -C build-udeb/libparted install \ + DESTDIR=$(CURDIR)/debian/libparted$(LIBPKGVER)-udeb + + [ -z "$(LIBPARTED_UDEB)" ] || \ + rm -f debian/libparted$(LIBPKGVER)-udeb/lib/libparted.so \ + debian/libparted$(LIBPKGVER)-udeb/lib/libparted.la + + [ -z "$(PARTED_UDEB)" ] || $(MAKE) -C build-udeb/parted install \ + DESTDIR=$(CURDIR)/debian/parted$(BINPKGVER)-udeb + +install-dbg: DH_OPTIONS=-plibparted$(LIBPKGVER)-dbg +install-dbg: build-dbg + dh_testdir + dh_testroot + dh_clean -k -plibparted$(LIBPKGVER)-dbg + + install -D -m644 build-dbg/libparted/.libs/libparted.a \ + debian/libparted$(LIBPKGVER)-dbg/usr/lib/libparted_g.a + +# This single target is used to build all the packages, all at once, or +# one at a time. So keep in mind: any options passed to commands here will +# affect _all_ packages. Anything you want to only affect one package +# should be put in another target, such as the install target. +binary-common: + dh_testdir + dh_testroot + dh_installdocs + dh_installchangelogs ChangeLog + dh_installexamples + dh_installmenu + dh_installcron + dh_installman + dh_installinfo + dh_strip + dh_link + dh_compress + dh_fixperms + dh_makeshlibs -V'libparted$(SHAREDLIBPKGVER) (>= $(DEPVER))' + dh_shlibdeps -Llibparted$(SHAREDLIBPKGVER) \ + -l/debian/libparted$(SHAREDLIBPKGVER)/lib + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture independant packages using the common target. +# Unfortunately, we still need to build since the info file has to be +# re-generated before installation and the locales need to be installed :-( +binary-indep: build install +# (Uncomment this next line if you have such packages.) + $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common + +# Build architecture dependant packages using the common target. +# FIXME: this is an ugly hack :-( Work out a better way to build the +# separate debug package ... +binary-arch: build install install-udeb + $(MAKE) -f debian/rules DH_OPTIONS="-a -Nlibparted$(LIBPKGVER)-dbg" binary-common + $(MAKE) -f debian/rules binary-libparted$(LIBPKGVER)-dbg + +# Any other binary targets build just one binary package at a time. +binary-%-dbg: build-dbg install-dbg + $(MAKE) -f debian/rules DH_OPTIONS="-p$(*)-dbg" binary-common + +binary-%: build install + $(MAKE) -f debian/rules DH_OPTIONS=-p$* binary-common + +binary: binary-arch binary-indep + +.PHONY: configure configure-udeb configure-dbg +.PHONY: build build-udeb build-dbg +.PHONY: install install-udeb install-dbg +.PHONY: clean binary-indep binary-arch binary +.PHONY: binary-%-dbg binary-%-udeb binary-% +.PHONY: packaging-files autotools + +include /usr/share/dpatch/dpatch.make --- parted-1.6.25.1.orig/debian/changelog +++ parted-1.6.25.1/debian/changelog @@ -0,0 +1,1351 @@ +parted (1.6.25.1-1ubuntu1) dapper; urgency=low + + [ Fabio M. Di Nitto ] + * Disable CHS check in udeb: + - add patch sparc-no-chs-in-udeb.dpatch. + - build libparted udeb with -DNOCHSEXCEPTION=1 + + libparted did grow a C/H/S sanity check in disk_sun.c. While this is a sane + check to perform, parted_server doesn't understand the exception and fails + because it gets a wrong size of the disk when writing a new label. + Since we are in deep feature freeze, there is no time to make a proper fix + into parted_server (that needs to be propagated all the way and back to + the UI to handle it properly). + For now let's workaround this issue disabling the feature ONLY for the udeb. + + -- Fabio M. Di Nitto Tue, 28 Feb 2006 10:23:03 +0100 + +parted (1.6.25.1-1) unstable; urgency=low + + [ Otavio Salvador ] + * New upstream release: + - sync_r388.dpatch: drop since is unneeded + * Really change libreadline dependencie (Closes: #333957) + * Change DEPVER to 1.6.24 to force the right version number as + dependencie and to avoid ABI mistake (Closes: #322262) + * fix_rescue_segfault.dpatch: added. Backported from current development + version to avoid a segfault in some uses of rescue command. + + -- Otavio Salvador Thu, 17 Nov 2005 13:31:38 -0200 + +parted (1.6.24-4) unstable; urgency=low + + *** This version doesn't apply s390 support by default *** + + [ Otavio Salvador ] + * ubd.dpatch: update to new source code. + * Drop merged upstream patches: + - parted.8.dpatch + - id.po.dpatch + - es.po.dpatch + - sparc.dpatch + - gcc_warnings_fix.dpatch + - ubd.dpatch + - udev-devfs-rules.dpatch + * sync_r388.dpatch: add to include current upstream fixes. + * s390.dpatch: Resync with current upstream code. + * *Disable* s390.dpatch by default. It has some strange things that need + to be cleared. + + [ Bastian Blank ] + * s390.dpatch: Update to apply again. + + -- Otavio Salvador Mon, 10 Oct 2005 16:40:00 -0300 + +parted (1.6.24-3) unstable; urgency=high + + [ Otavio Salvador ] + * Applied patch from A. Costa to update README.Debian + about hfs support + * parted.8.dpatch: manpage patch from A. Costa + * id.po.dpatch: include Indonesian language + * es.po.dpatch: update Spanish language translation + * sparc.dpatch: recognize partitions on sun disklabel (Closes: #328694) + + -- Otavio Salvador Fri, 9 Sep 2005 10:49:35 -0300 + +parted (1.6.24-2) unstable; urgency=medium + + [ Otavio Salvador ] + * Bumb Standards-Version to 3.6.2 (no changes need) + * Update debian/watch to version 3 standard + * Change the build-dependency to libreadline5-dev | libreadline-dev to + allow the libreadline4-dev removal from archive ASAP. (Closes: #326309) + * Urgency set to medium since it hasn't code changes. + + -- Otavio Salvador Sat, 3 Sep 2005 12:57:49 -0300 + +parted (1.6.24-1) unstable; urgency=low + + [ Sven Luther ] + * New Upstream release. + + [ Otavio Salvador ] + * Applied my patch to solve building using Sarge's toolchain. (Closes: #321212) + * Patch included upstream to fix some small typos on German translation + (Jens Seidel ). (Closes: #313948) + * Really include udev-devfs-rules.dpatch but already on the updated + version (Colin Watson ). (Closes: #311664) + * Patch included upstream to update documentation for HFS and HFS+ + current status (Nikolaus Schulz ). (Closes: #298020) + * Applied patch to fix FTBFS on Hurd (Michael Banck + ). (Closes: #297580) + * gcc_warnings_fix.dpatch: Created to fix current warnings while + building using GCC 4.0. + * Change library soname to 13. + * Add myself on uploaders field. + + -- Otavio Salvador Sun, 21 Aug 2005 15:56:50 -0300 + +parted (1.6.23-3) unstable; urgency=low + + * Oh well, built -2 in a broken chroot, fixed now. + * Notice, i wwish to remember all readers that i have put out a request for + help for this package, and altough people replied, no long standing help + happened. As i am going to also need to take more upstream + responsabilities, i definitively want to recall for help on parted + packaging, especially for arches i am not so good with (and yes, this + includes x86 :). For the ubuntu guys, next time you make a patch, you are + welcome to do it in the parted subversion repository on alioth, and upload + both packages if i don't comment for a longer time like i did in June. + + -- Sven Luther Sun, 17 Jul 2005 07:33:11 +0200 + +parted (1.6.23-2) unstable; urgency=low + + * The following patches where taken from the ubuntu parted package : + - Fix gcc4 warning in lvm2 patch (Matthias Klose ) + - udev-devfs-rules.dpatch: Check for devfs-style /disc => /partN + transformation unconditionally; the system might be using udev with + devfs rules, and if not the test is harmless. + (Colin Watson ) + + -- Sven Luther Sat, 16 Jul 2005 22:15:46 +0000 + +parted (1.6.23-1) unstable; urgency=low + + * New upstream release (1.6.23) + - PedUnit: support for different units for sizes and offsets. + - Error message/UI cleanup. + - More CHS cleanup. + - Check /sys before trying deprecated SCSI_IOCTL_SEND_COMMAND. + - Better Apple_Free partition support. + - Allow resizing of extended partitions, even if some logical partitions + are mounted + - Various DVH changes. + - mac RAID and LVM support. + * New upstream release (1.6.22) + - hfs and hfs+ shrinking support merged in upstream. + - gcc4 fixes. + - minor UI and documentation changes/fixes. + - support lvm on mac partition tables. + * Backed out again the size column addition, was a patch from Jari Aalto + with regard to Bug #109613, but a new patch will + hopefully make it to 1.6.24. + * Unbashized dpatches (Closes: #298017) + * Fixed amiga partition tables to use RAID/LVM partition types instead of + subverting flags for it. + * Removed the s390 patch, which needs a full review with regard to the + PedUnit stuff i believe. In particular with regard to the sector size + support. Please try to get this one integrated upstream, as it is the last + problematic big debian-specific patch remaining. + + -- Sven Luther Mon, 11 Jul 2005 12:41:06 +0200 + +parted (1.6.21-1) unstable; urgency=low + + * Unstable build, as we will be moving 1.6.21 into sarge after all. + * Readded bunch of missing fixes from the sarge/sid branch : + - Dropped libreiserfs support. + - Now build depends on libreadline4-dev | libreadline-dev, to work around + the bogus libreadline5 upload during the sarge freeze. (Bug: #279574) + - Drop any udeb magic, fixing .udeb dependency generation (Bastian Blank). + (Bug: #270133) + - Added mention of HFS and HFS+ resize feature in manpage. (Bug: #275650) + + -- Sven Luther Sun, 30 Jan 2005 19:07:42 +0100 + +parted (1.6.21-0.exp.2) experimental; urgency=low + + * Dropped ubd patch, since it may be superceded by another fix in 1.6.21 : + - Sets the type to PED_DEVICE_UNKNOWN on block devices that don't fall + into the standard categories. This makes libparted correctly update + the kernel's view of partition tables, etc. + * Added comments about upstream status to all .dpatches. + * Dropped parted-bf, we no longer build this package in the sarge/sid version. + * Changed libparted1.6-udeb to provide libparted1.6-12. (Bug: #292781) + + -- Sven Luther Sun, 30 Jan 2005 18:47:10 +0100 + +parted (1.6.21-0.exp.1) experimental; urgency=low + + * New upstream release. + - renamed prep-boot PReP boot partition name to prep. + - Fixed PED_SWAP macros missing, obsoleting amiga-64bit dpatch. + - Fixed sun cylinder recording stuff, obsoleting sun_disklabel dpatch. + - Removed bogus assertion, obsoleting no-clobber dpatch. + - Only treat the device as devfs if it has /disc on the end. + - Now use _partition_is_mounted_by_dev instead of guessing the partition + device name. + - Sets the type to PED_DEVICE_UNKNOWN on block devices that don't fall + into the standard categories. This makes libparted correctly update + the kernel's view of partition tables, etc. + - Improved heuristic for finding broken dos partition tables: test if + any feasible solution geometry exists against the end cylinder rather + than 1024. This heuristic now has fewer false negatives and no false + positives. + + -- Sven Luther Sat, 29 Jan 2005 17:06:56 +0100 + +parted (1.6.20-0.exp.2) experimental; urgency=low + + * Fixed 64bit FTBFS in disk_amiga.c introduced by Andrew's cosmetic changes. + (Closes: #286462) + + -- Sven Luther Tue, 4 Jan 2005 22:52:18 +0100 + +parted (1.6.20-0.exp.1) experimental; urgency=low + + * New upstream release : + - now includes assorted debian patches, like the amiga partition table + support and the Smart BootManager stuff. + - dvh: zero out the boot file name record before writing the name in. + - only attempt to check file systems if checking is implemented for + that file system type. + - when correcting the boot sector, use fat_boot_sector_write() to make + sure the backup copy gets written (if applicable). + + -- Sven Luther Sat, 18 Dec 2004 19:26:17 +0100 + +parted (1.6.19-0.exp.3) experimental; urgency=low + + * Enabled MS-DOS disk label detection when Smart BootManager patch which was + forgotten previously :/ + + -- Sven Luther Tue, 14 Dec 2004 14:13:37 +0100 + +parted (1.6.19-0.exp.2) experimental; urgency=low + + * Re-enabled hfs patch, since i got a new version from Guillaume Knispel. + + -- Sven Luther Fri, 3 Dec 2004 18:45:16 +0100 + +parted (1.6.19-0.exp.1) experimental; urgency=low + + * New upstream release : + - refuses to resize Windows Dynamic Disk partitions. + - allows reparation of damaged FAT file systems with "check". + - assorted smaller changes. + + -- Sven Luther Sun, 28 Nov 2004 11:41:39 +0100 + +parted (1.6.18-0.exp.1) experimental; urgency=low + + * New upstream release : + - More dos CHS geometry fixes. + - Now knows about the new sun-ufs partition ID (0xbf). + - Longer than 32bit GPT partition fix. + - removed bogus (int) casts, may fix large partition table problem, see + Bug #279732. + * Legacy amiga hardware compatibility fixes : + - non-full blocks should be padded by 0x00 and not 0xff. + - builtin filesystem driver pointer offset was off by one, thus + causing libparted to overwrite them if partitions are added. + * Added RAID & LVM flag for partitions on amiga partition tables. + * Readded missing 1.6.9-3.2 fixes : + - MS-DOS disk label detection when Smart BootManager is installed fix by + Matt Kraai (Bug #259248). + - Recognize UML UBD devices by Matt Zimmerman (Bug #258188). + * Added PREP flag for MBR partition tables. (Bug #245451) + * Dropped hfs resize patch for now, as it doesn't apply cleanly to 1.6.18. + + -- Sven Luther Sat, 27 Nov 2004 11:57:51 +0100 + +parted (1.6.14-0.exp.2) experimental; urgency=low + + * Added new hfs patch. + + -- Sven Luther Wed, 8 Sep 2004 07:55:18 +0200 + +parted (1.6.14-0.exp.1) experimental; urgency=low + + * New upstream release. + + -- Sven Luther Mon, 6 Sep 2004 15:28:59 +0200 + +parted (1.6.12-0.exp.1) experimental; urgency=low + + * New upstream release. (Closes: #254502) + - should fix 2.6 kernel BIOS CHS geometry problems. Broke binary + compatibility though, thus the soname change. + * Substituted some inaccurate terms in the doc (Fabio Tranchitella). + (Closes: #211746) + * Update s390 patch (Bastian Blank). + * Always regenerate autoconf/automake files (Bastian Blank). + * Dropped dvh patch, since a cleaner version is now upstream (Sven Luther). + * New updated hfs-resize patch (Guillaume Knispel) + + * Thanks to Fabio Tranchitella, Bastian Blank, Guillaume Knispel and + Peter Samuelson who made this release possible. + + -- Sven Luther Thu, 2 Sep 2004 09:41:29 +0200 + +parted (1.6.11-9) unstable; urgency=low + + * Applied large-partitions patch to show correct partition data. Thanks + go to Peter Chubb for providing the patch. + (Closes: #279732) + + -- Sven Luther Thu, 25 Nov 2004 14:32:36 +0100 + +parted (1.6.11-8) unstable; urgency=low + + * Now build depends on libreadline4-dev | libreadline-dev, to work around + the bogus libreadline5 upload during the sarge freeze. (Closes: #279574) + + -- Sven Luther Thu, 4 Nov 2004 14:42:11 +0100 + +parted (1.6.11-7) unstable; urgency=low + + * Added LVM flag for partitions on amiga partition tables. + * Added PREP flag for MBR partition tables. (Closes: #245451) + * Added mention of HFS and HFS+ resize feature in manpage. + (Closes: #275650) + * Dropped libreiserfs0.3-0 recommend, as it is no more part of sarge. + (Closes: #276887) + * Really readded missing 1.6.9-3.2 fixes : + - MS-DOS disk label detection when Smart BootManager is installed fix by + Matt Kraai (Bug #259248). + + -- Sven Luther Mon, 1 Nov 2004 12:03:25 +0100 + +parted (1.6.11-6) unstable; urgency=low + + * Really apply the chs patch this time. + * Rewrote description and README.Debian to take care of removed reiserfs + support as well as added amiga filesystem probing support. + (Closes: #273751) + + -- Sven Luther Tue, 28 Sep 2004 06:11:58 +0200 + +parted (1.6.11-5) unstable; urgency=low + + * Added RAID flag to amiga partition tables. + * Removed libreiserfs support, since progreiserfs will be kicked from sarge + (Closes: #272783). + + -- Sven Luther Sat, 25 Sep 2004 00:32:15 +0200 + +parted (1.6.11-4) unstable; urgency=low + + * Legacy amiga hardware compatibility fixes : + - non-full blocks should be padded by 0x00 and not 0xff. + - builtin filesystem driver pointer offset was off by one, thus causing + libparted to overwrite them if partitions are added. + * Readded missing 1.6.9-3.2 fixes : + - MS-DOS disk label detection when Smart BootManager is installed fix by + Matt Kraai (Bug #259248). + - Recognize UML UBD devices by Matt Zimmerman (Bug #258188). + - gcc 3.4 build fixes by Andreas Jochens (Bug #259534). + * Dropped last remains of the parted-bf package. + + -- Sven Luther Fri, 17 Sep 2004 10:51:34 +0200 + +parted (1.6.11-3) unstable; urgency=low + + * Drop any udeb magic, fixing .udeb dependency generation (Bastian Blank). + (Closes: #270133) + * Moved the maintainer address to the parted-maintainers alioth list. + + -- Sven Luther Mon, 6 Sep 2004 14:13:12 +0200 + +parted (1.6.11-2) unstable; urgency=low + + * Should have gone into unstable, not experimental :/ + + -- Sven Luther Fri, 3 Sep 2004 19:27:47 +0200 + +parted (1.6.11-1) experimental; urgency=low + + * New upstream release. (Closes: #254502) + - should fix 2.6 kernel BIOS CHS geometry problems. Broke binary + compatibility though, thus the soname change. + * Substituted some inaccurate terms in the doc (Fabio Tranchitella). + (Closes: #211746) + * Update s390 patch (Bastian Blank). + * Always regenerate autoconf/automake files (Bastian Blank). + * New updated hfs-resize patch (Guillaume Knispel) + * Added backported CHS BIOS geometry fix. + - libparted/disk_dos.c (read_table, process_bad_chs): now probes + Microsoft file systems for BIOS CHS geometry. This idea was + suggested by Steffen Winterfeldt . + + * Thanks to Fabio Tranchitella, Bastian Blank, Guillaume Knispel and + Peter Samuelson who made this release possible. + + -- Sven Luther Thu, 2 Sep 2004 09:41:29 +0200 + +parted (1.6.9-3.2) unstable; urgency=low + + * Non-maintainer upload with maintainer approval. + * Detect a MS-DOS disk label when Smart BootManager is installed + (closes: #259248). + * Fix build failure, thanks to Andreas Jochens (closes: #259534). + * Recognize UML UBD devices, thanks to Matt Zimmerman (closes: #258188). + + -- Matt Kraai Sun, 08 Aug 2004 11:00:32 -0700 + +parted (1.6.9-3.1) unstable; urgency=low + + * Non-maintainer upload with permission of the maintainer. + * Add patch to write a proper DVH header. Thanks to Thiemo Seufer. + (Closes: #239371) + + -- Martin Michlmayr Sun, 20 Jun 2004 14:10:44 +0100 + +parted (1.6.9-3) unstable; urgency=low + + * Non-maintainer upload with permission of the maintainer. + * Add patch to find LVM2 devices by looking in /dev/mapper. Thanks + to Andres Salomon. (Closes: #247174) + + -- Martin Michlmayr Sun, 09 May 2004 00:23:33 +0100 + +parted (1.6.9-2) unstable; urgency=low + + * Add devfs partition detection patch for 2.6 kernels, thanks to + Joey Hess . (Closes: #243635) + * Added a more complete s390 sector size patch by Lucius Leland + . (Closes: #243554) + + -- Sven Luther Wed, 14 Apr 2004 10:27:58 +0200 + +parted (1.6.9-1) unstable; urgency=low + + * New upstream release, gcc-33, linux-kernel-header, m68k-padding, palo and + parted-m4 are now included upstream. + * Really apply sun disk label patch. + + -- Sven Luther Wed, 14 Apr 2004 09:14:21 +0200 + +parted (1.6.6-11) unstable; urgency=low + + * Fixed broken sun disk label reading. Thanks to Peter Samuelson for testing + and providing the patch. (Closes: #238091) + * libparted-udeb not provides libparted1.6-0 too. (Closes: #239334) + + -- Sven Luther Mon, 29 Mar 2004 14:50:31 +0200 + +parted (1.6.6-10) unstable; urgency=low + + * Added patch by Bastian Blank to take sector size in account on hardware + needing bigger than 512 byte. (Closes: #236325) + + -- Sven Luther Thu, 18 Mar 2004 14:18:58 +0100 + +parted (1.6.6-9) unstable; urgency=low + + * debian/control.in: Added dpatch Build-Dependancy, debian/control is + generated from this file, which is why this build-dep kept being deleted. + (closes: #232570) + * Created new errors-to-stderr patch to print exceptions to stderr when in + script mode (closes: #196040) + + -- Timshel Knoll-Miller Tue, 24 Feb 2004 10:54:11 +1100 + +parted (1.6.6-8) unstable; urgency=low + + * Added read-gpt-1.02 patch to allow reading GPT header revision 1.02 + (closes: #210584) + * Added minor documenation fix to doc-package patch + (closes: #211747) + + -- Timshel Knoll-Miller Wed, 11 Feb 2004 18:08:14 +1100 + +parted (1.6.6-7) unstable; urgency=low + + * Added palo patch needed on parisc, thanks go to Richard Hirst + for providing a patch. + (Closes: #229626). + * Added parted.m4 patch provided by Petter Reinholdtsen , + (Closes: #223764). + + -- Sven Luther Tue, 27 Jan 2004 11:16:30 +0100 + +parted (1.6.6-6) unstable; urgency=low + + * dpatch build-depency got lost again :(. + + -- Sven Luther Sun, 25 Jan 2004 12:34:20 +0100 + +parted (1.6.6-5) unstable; urgency=low + + * Added hfs resize patch from Guillaume Knispel . + (Closes: #226115) + + -- Sven Luther Sat, 24 Jan 2004 16:33:14 +0100 + +parted (1.6.6-4) unstable; urgency=low + + * Aknowledge Petter's NMU. (Closes: #225875) + * Fix amiga block checksum fixing. + + -- Sven Luther Thu, 22 Jan 2004 19:48:50 +0100 + +parted (1.6.6-3.1) unstable; urgency=low + + * Non-maintainer upload to fix d-i problem before deadline. + * Add build-depend on dpatch. (Closes: #225875) + + -- Petter Reinholdtsen Fri, 2 Jan 2004 18:27:52 +0100 + +parted (1.6.6-3) unstable; urgency=low + + * Removed some extra () around BLKGETSIZE64 that were not really needed. + * Removed a fs->clobber assertion that did break since the amiga filesystem + doesn't provide a clobber op. (Closes: #225754) + + -- Sven Luther Thu, 1 Jan 2004 20:40:39 +0100 + +parted (1.6.6-2) unstable; urgency=low + + * Adding myself as comaintainer of the package, as discussed with Timshel + Knoll. + * Start using dpatch, and move all debian specific patches into + debian/patches/*.dpatch. Thanks to Petter Reinholdtsen + for doing the work. + * Added libuuid dependency to udebs. Thanks to Matt Kraai + for providing the patch and following this. (Closes: #221225, #221226) + + -- Sven Luther Wed, 31 Dec 2003 08:54:24 +0100 + +parted (1.6.6-1.2) unstable; urgency=low + + * Added amiga filesystem probing support. (Closes: #219947) + * Fixed wrong linux/fs.h header copying. (Closes: #218980) + * Now build-depends on the fixed version of linux-kernel-headers, so we + don't get bit by the __invalid_size_argument_for_IOC signedness problem. + (See bug #219940) + + -- Sven Luther Tue, 16 Dec 2003 14:22:33 +0100 + +parted (1.6.6-1.1) unstable; urgency=low + + * Added amiga RDB partitioning support. (Closes: #212536) + * Do not install policy-prohibited control files in udebs. + Thanks to Matt Kraai for the patch. (Closes: #216133) + + -- Sven Luther Wed, 29 Oct 2003 16:11:35 +0100 + +parted (1.6.6-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 2 Sep 2003 00:43:00 +1000 + +parted (1.6.5-3) unstable; urgency=low + + * Policy 3.5.9, Made udebs Priority: extra + * Changed descriptions to add that parted can remove all listed + filesystems (closes: #191523) + * Applied missing type suffix compile fix patch for gcc-3.3 and hurd, + thanks to Ognyan Kulev and Sven Luther (closes: #195318, #200337) + * m68k padding fix patch patch from Sven Luther (closes: #207634) + + -- Timshel Knoll Sat, 30 Aug 2003 10:44:52 +1000 + +parted (1.6.5-2) unstable; urgency=low + + * NMU with maintainers consent. + * Fixed some gcc 3.3 build problems. (Closes: #200337) + + -- Sven Luther Thu, 24 Jul 2003 10:36:15 +0200 + +parted (1.6.5-1) unstable; urgency=low + + * New upstream release + * Made libparted1.6-dev and libparted1.6-dbg Section: libdevel + + -- Timshel Knoll Wed, 30 Apr 2003 16:01:19 +1000 + +parted (1.6.4-2) unstable; urgency=low + + * debian/control.in: Build-Depends: debhelper (>= 4.1.1), as dh_shlibdeps' + -L flag was introduced in that version (closes: #179473) + * debian/rules: Update config.sub and config.guess on clean + + -- Timshel Knoll Wed, 19 Feb 2003 22:13:22 +1100 + +parted (1.6.4-1) unstable; urgency=low + + * New upstream release + + ped_disk_destroy API documentation inconsistency fixed (closes: #168850) + + the invalidate: busy buffer warning message issue was actually fixed + in the 1.6.0-pre5 release (closes: #146607) + + Mention is now made of the root disk in the info docs (closes: #157003) + * Standards-Version: 3.5.8: + + Support building with gcc -g by default, support DEB_BUILD_OPTIONS=noopt + * Made libparted1.6-0 Suggests: parted | nparted (closes: #168177) + * Removed . from end of libparted1.6-0 synopsis to fix lintian error + * Build udeb packages libparted1.6-udeb and parted-udeb for + debian-installer, built with the -Os gcc flag to optimise for size + (parted-bf is also now built with -Os) (thanks to + Dann Frazier for a udeb patch) (closes: #172020) + * Made libparted's reiserfs support dlopen the full filename of libreiserfs, + rather than just the libreiserfs.so symlink. This means that parted's + reiserfs support will now work without the libreiserfs0.3-dev package + being installed (closes: #163107) + + -- Timshel Knoll Tue, 10 Dec 2002 23:25:59 +1100 + +parted (1.6.3-3) unstable; urgency=low + + * GNU Parted is now built against libreiserfs (closes: #156149) + * debian/control: + + Build-Depend on libreiserfs0.3-dev + + libparted1.6-0 now Recommends: libreiserfs0.3-0 + + -- Timshel Knoll Wed, 11 Sep 2002 01:45:21 +1000 + +parted (1.6.3-2) unstable; urgency=low + + * debian/rules: use readlink to read link destination (closes: #157821) + + -- Timshel Knoll Thu, 22 Aug 2002 18:18:23 +1000 + +parted (1.6.3-1) unstable; urgency=low + + * New upstream release + * debian/control: + + Fixed Priority: override disparities (default Priority was still extra + from when these were experimental parted1.6 packages) + + Remove details of pre-release status notice from package description + (closes: #152655, #154818) + * Direct people looking for info docs to the parted-doc package + (closes: #152042) + * Wierd ... ls -l x | awk '{ print $11 }' is no longer giving the symlink + dest, $10 is though :-/. I'll see how this goes with $10 ... + + -- Timshel Knoll Tue, 20 Aug 2002 19:40:44 +1000 + +parted (1.6.2-1) unstable; urgency=low + + * New upstream release + * Build-Depend on texinfo (>= 4.2), as parted.texi uses a new 4.2 directive + + -- Timshel Knoll Wed, 10 Jul 2002 08:51:17 +1000 + +parted (1.6.1-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 18 Jun 2002 16:42:47 +1000 + +parted (1.6.0-1) unstable; urgency=low + + * New upstream release + * Source package renamed back to "parted", 1.6 is now considered + "stable" so uploaded to sid + + -- Timshel Knoll Tue, 30 Apr 2002 23:05:42 +1000 + +parted1.6 (1.5+1.6.0-pre10-1) experimental; urgency=low + + * New upstream pre-release + * This upstream release supports creating/resizing reiserfs filesystems, + if Yury Umanets' libreiserfs is installed. However, there is no Debian + package of libreiserfs (yet - I am working on it). So if you want this + support, you'll have to fetch progsreiserfs from + http://reiserfs.linux.kiev.ua/ and compile/install it yourself for this + support to be activated. + + -- Timshel Knoll Fri, 26 Apr 2002 01:51:04 +1000 + +parted1.6 (1.5+1.6.0-pre9-1) experimental; urgency=low + + * New upstream pre-release + + -- Timshel Knoll Wed, 10 Apr 2002 15:11:52 +1000 + +parted1.6 (1.5+1.6.0-pre8-1) experimental; urgency=low + + * New upstream pre-release + + -- Timshel Knoll Mon, 8 Apr 2002 23:23:20 +1000 + +parted1.6 (1.5+1.6.0-pre7-1) experimental; urgency=low + + * New upstream pre-release + + -- Timshel Knoll Sat, 6 Apr 2002 01:08:35 +1000 + +parted1.6 (1.5+1.6.0-pre6-1) experimental; urgency=low + + * New upstream pre-release + + -- Timshel Knoll Sat, 6 Apr 2002 00:42:30 +1000 + +parted1.6 (1.5+1.6.0-pre5-2) experimental; urgency=low + + * Recompile against latest e2fsprogs to fix dependancy issues + (see e2fsprogs #139274) + + -- Timshel Knoll Tue, 26 Mar 2002 18:19:58 +1100 + +parted1.6 (1.5+1.6.0-pre5-1) experimental; urgency=low + + * New upstream pre-release + * debian/{partprobe.8, parted.manpages, rules}: manpage added for partprobe + (closes: #137104) + * debian/control.in: make all parted1.6 packages Priority: extra, as + parted1.6 and parted1.6-doc Conflict: with the optional parted and + parted-doc packages. + * removed "#include " from libparted/fs_linux_swap/linux_swap.c, + which should fix build problems on ia64. + + -- Timshel Knoll Tue, 26 Mar 2002 17:09:08 +1100 + +parted1.6 (1.5+1.6.0-pre4-1) experimental; urgency=low + + * New upstream pre-release + * debian/control.in, debian/rules: ship locales package separately. This + means that libparted1.6-0 no longer needs to Conflict: libparted1.4, + both packages can be installed concurrently. Actually, I just realised + that libparted1.6-0 never actually needed to Conflict: libparted1.4, + Replaces: libparted1.4 would have been enough ... + * debian/control.in: + - Added pre-release status of package to package descriptions + (closes: #137475) + - Made libparted1.6-0 Replaces: libparted1.4 (<< 1.4.24-2). + libparted1.4 (>= 1.4.24-2) should be able to co-exist with libparted1.6, + but I forgot about the (<< 1.4.24-2) case ... (closes: #137567) + * debian/rules: + - debian/rules: use DESTDIR rather than prefix when 'make install'ing. + Use $(CURDIR) instead of `pwd`. + - lots of small fixes + - remove the locales dir from debian/tmp before checking if any files + are left after dh_movefiles + * debian/parted.files: Grab all of sbin rather than just sbin/parted. + This picks up partprobe + * debian/parted.undocumented: partprobe currently has no manpage (will be + fixed before 1.6.0-1 goes into sid) + + -- Timshel Knoll Wed, 13 Mar 2002 15:18:43 +1100 + +parted1.6 (1.5+1.6.0-pre3-1) experimental; urgency=low + + * New upstream pre-release + * debian/control.in: -doc package name changed to parted1.6-doc ... + * debian/rules: generate parted1.6-doc.* files + + -- Timshel Knoll Tue, 5 Mar 2002 14:20:04 +1100 + +parted1.6 (1.5+1.6.0-pre2-1) experimental; urgency=low + + * New upstream pre-release, built for experimental + * Don't include doc/USER in parted-doc, use the doc/parted.info texinfo file + instead ... + * Build the library packages as libparted[upstream 2 digit version]-[soname] + eg. libparted1.6-0 + + -- Timshel Knoll Fri, 1 Feb 2002 21:02:00 +1100 + +parted1.6 (1.5+1.6.0-pre1-1) unstable; urgency=low + + * New packages of 1.6 pre-release series + * Fixed compile warnings (hence errors with -Werror) in + libparted/disk_mips.c + + -- Timshel Knoll Fri, 1 Feb 2002 18:41:31 +1100 + +parted (1.4.23-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Wed, 16 Jan 2002 00:02:03 +1100 + +parted (1.4.22-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 30 Dec 2001 00:51:42 +1100 + +parted (1.4.21-1) unstable; urgency=low + + * New upstream release + * Disable -Werror when building on s390 (closes: #121267) + + -- Timshel Knoll Fri, 7 Dec 2001 23:51:02 +1100 + +parted (1.4.20-1) unstable; urgency=low + + * New upstream release + * Upstream now uses C99's PRIx64 for printf'ing __u64's - this fixes + compilation warnings on alpha and ia64 (closes: #115369) + * This should fix all alpha compile warnings, so removed --disable-Werror + configure flag when compiling on alpha (-Werror will help find bugs) + + -- Timshel Knoll Mon, 15 Oct 2001 11:00:29 +1000 + +parted (1.4.19-2) unstable; urgency=low + + * debian/rules: call ./configure with --disable-Werror flag on + alpha as well ... (closes: #114172) + + -- Timshel Knoll Mon, 8 Oct 2001 12:51:47 +1000 + +parted (1.4.19-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 30 Sep 2001 18:51:41 +1000 + +parted (1.4.18+19pre2-5) unstable; urgency=low + + * Applied Matt Domsch 's GPT (GUID Partition Tables) + support patch (closes: #105555) + + -- Timshel Knoll Sat, 15 Sep 2001 10:46:55 +1000 + +parted (1.4.18+19pre2-4) unstable; urgency=low + + * debian/control: Build-Depend on libtool (closes: #112110) + + -- Timshel Knoll Thu, 13 Sep 2001 11:20:56 +1000 + +parted (1.4.18+19pre2-3) unstable; urgency=low + + * Fixes to *really* fix building on m68k (yes really this time ... grrr): + - configure.in: hacked to add --disable-Werror argument + - debian/control: added Build-Depends on recent autoconf and automake + - debian/rules: + + run aclocal, autoconf and automake before ./configure'ing + + run configure with --disable-Werror argument on m68k + + -- Timshel Knoll Wed, 12 Sep 2001 16:43:59 +1000 + +parted (1.4.18+19pre2-2) unstable; urgency=low + + * debian/control: + + Fixed typo - fixed typo - libparted1.4 package was Priority: extra + instead of parted-bf package for the last 2 releases - fixed this + + Updated the file system support list in package descriptions + + Removed Build-Depends: on autoconf, automake and libtool - these are + only needed if autoconf/automake need to be re-run ... (not the case) + * debian/rules: + + pass the correct libparted library directory to dh_shlibdeps for + correct parted package dependancies (closes: #102359) + * debian/README.Debian: Updated the file system support list + + -- Timshel Knoll Mon, 10 Sep 2001 00:40:49 +0000 + +parted (1.4.18+19pre2-1) unstable; urgency=low + + * New upstream (pre-) release + * Build with -Wno-uninitialized on m68k (really closes: #110264) + + -- Timshel Knoll Mon, 10 Sep 2001 00:28:47 +1000 + +parted (1.4.18+19pre1-1) unstable; urgency=low + + * New upstream (pre-) release (closes: #110264) + * debian/rules, debian/control: + + Build parted-bf package, built with --disable-readline (closes: #109161) + + Now using debhelper v3 + + -- Timshel Knoll Wed, 5 Sep 2001 13:08:56 +1000 + +parted (1.4.18-1) unstable; urgency=low + + * New upstream release (never uploaded) + + -- Timshel Knoll Mon, 20 Aug 2001 20:23:41 +1000 + +parted (1.4.17-1) unstable; urgency=low + + * New upstream release + * debian/rules: build with CFLAGS += -Wno-unused on m68k to work around + compiler bug (closes: #105819) + + -- Timshel Knoll Mon, 23 Jul 2001 09:39:22 +1000 + +parted (1.4.16-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 17 Jul 2001 14:14:38 +1000 + +parted (1.4.15-2) unstable; urgency=low + + * Fixed ia64 compile errors (thanks to Jeff Licquia) (closes: #105529) + + -- Timshel Knoll Tue, 17 Jul 2001 10:22:56 +1000 + +parted (1.4.15-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 10 Jul 2001 11:43:26 +1000 + +parted (1.4.14-1) unstable; urgency=low + + * New upstream release + * debian/control: libparted1.4 Conflicts: parted (<< 1.4.13+14pre1), to + make sure that the soname change doesn't break stuff. + + -- Timshel Knoll Wed, 30 May 2001 21:55:26 +1000 + +parted (1.4.13+14pre2-1) unstable; urgency=low + + * New upstream release + * This means I don't need a patched configure.in, so don't need to + Build-Depend: auto{conf,make}, libtool ... (closes: Bug#99015) + Left the Build-Depends there anyway (just in case) + * This upstream release uses libtool 1.4 anyway, so that alone would fix + #99015 as well :-) + * debian/rules: + - explicitly specify --enable-shared to configure in configure target + (bug workaround for this version, shared libs aren't built by default) + - explicitly specify --disable-shared to configure in configure-dbg + target, this should substantially shorten the build time. + + -- Timshel Knoll Tue, 29 May 2001 10:10:09 +1000 + +parted (1.4.13-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sat, 26 May 2001 22:48:13 +1000 + +parted (1.4.12-2) unstable; urgency=low + + * debian/rules: Lots of updates to get stuff building properly, merged + binary-common and binary-libparted$(LIBPKGVER)-dbg rules. + * debian/control updates: + - added Build-Depends: autoconf (>= 2.50), automake (>= 1.4-p1), libtool + (closes: Bug#98673) + - Added '| libncurses5-dev' to libncurses-dev Build-Depends to provide + non-virtual installation candidate. + - Standards-Version: 3.5.4 + + -- Timshel Knoll Sat, 26 May 2001 14:53:59 +1000 + +parted (1.4.12-1) unstable; urgency=low + + * New upstream release + * debian/rules: made {build{,-dbg},configure{,-dbg}}-stamp stuff depend + directly on $(GENFILES), which stops ./configure from being repeatedly + run unnecessarily during the build procedure. + + -- Timshel Knoll Tue, 22 May 2001 17:26:34 +1000 + +parted (1.4.11-4) unstable; urgency=low + + * debian/control: libparted1.4-dbg Priority: extra + * debian/control: parted & libparted-dev now Suggests: parted-doc + (closes: Bug#97556) + + -- Timshel Knoll Tue, 15 May 2001 23:13:41 +1000 + +parted (1.4.11-3) unstable; urgency=low + + * Some big updates - lots of library versioning stuff automated ... + - debian/control and debian/shlibs.local now being generated from + debian/control.in and debian/shlibs.local.in respectively, with + debian/rules + - debian/libparted2{,-dev}.* moved to debian/libparted{,-dev}.*, + these are now copied to their appropriate places when necessary + - LIBPKGVER variable added to debian/rules, this is the library + package version (part of the library name). Initially set to + 1.4, which is the new version number of libparted (ie. the + libparted package is now named libparted1.4, to keep in line + with upstream). I'll add a letter which will be bumped whenever + upstream's soname changes, if necessary (ie. libparted1.4a) ... + * Added support for DEB_BUILD_OPTIONS=noopt (compiles without -O2). + * debian/control.in debian/rules: Added building of libparted2-dbg + package, unstripped static lib with malloc debugging enabled. + * Fixed problem with ./configure being run twice, once on + 'debian/rules build' and again on 'debian/rules binary-arch' + * Fixed shlibs library version _properly_, I changed the depends: + version but not the soname version :-(. With the versioning automation + stuff I have also added a LIBSONAME substitution, and also check that + parted's soname is what debian/rules (and thus debian/shlibs.local) + think that it is ... + + -- Timshel Knoll Wed, 2 May 2001 15:15:20 +1000 + +parted (1.4.11-2) unstable; urgency=low + + * Apparently 1.4.11 has a new soname, changed shlibs.local and + dh_makeshlibs to use (>= 1.4.11) (closes: Bug#95846) + + -- Timshel Knoll Tue, 1 May 2001 12:03:56 +1000 + +parted (1.4.11-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Thu, 19 Apr 2001 01:49:23 +1000 + +parted (1.4.10-2) unstable; urgency=low + + * debian/rules: Added support for $DEB_BUILD_OPTIONS + * debian/rules: removed call to deprecated dh_suidregister + * debian/rules: added separate configure[-stamp] targets which call configure + * debian/control: updated disklabel list in package descriptions, added + list of supported filesystems. + * debian/control: libparted2: added Conflicts: and Replaces: libparted + * debian/README.Debian: updated disklabel list, added detailed list + of supported filesystem and the amount of support for each + + -- Timshel Knoll Thu, 29 Mar 2001 19:57:58 -0800 + +parted (1.4.10-1) unstable; urgency=low + + * New upstream release + * Converted to cvs-buildpackage. + * debian/rules: removed call to obsolete dh_testversion. + * debian/parted-doc.docs: removed reference to 0 byte file BUGS + (well, no bugs, great) :-) + + -- Timshel Knoll Tue, 20 Mar 2001 00:47:22 +1100 + +parted (1.4.9-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Mon, 19 Feb 2001 18:21:43 +1100 + +parted (1.4.8-1) unstable; urgency=low + + * New upstream release + * debian/control: Made libparted2 Suggest: libparted2-dev + + -- Timshel Knoll Sat, 10 Feb 2001 09:51:10 +1100 + +parted (1.4.7-1) unstable; urgency=low + + * New upstream release + * debian/control, debian/libparted1[-dev]*, debian/rules: + Updated library package names to libparted2 and libparted2-dev, as + this upstream version contains incompatible changes to the library + versioning system + * debian/control: Updated build-depends: on debhelper to version + >= 2.0 (for DH_COMPAT=2), added gettext. + * debian/README.Debian: updated list of supported partition tables + (added BSD disklabels to the list) + + -- Timshel Knoll Sun, 4 Feb 2001 18:30:05 +1100 + +parted (1.4.6-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 7 Jan 2001 18:57:46 +1100 + +parted (1.4.5-1) unstable; urgency=low + + * New upstream release + * Updated package descriptions and README.Debian with a list of + supported partition tables / disklabels. + * debian/copyright: fixed bad email addresses of upstream authors, changed + copyright to Free Software Foundation, Inc. (it has been signed over + to the FSF). + + -- Timshel Knoll Sun, 7 Jan 2001 18:39:59 +1100 + +parted (1.4.4-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 3 Dec 2000 18:58:28 +1100 + +parted (1.4.3-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 28 Nov 2000 11:05:45 +1100 + +parted (1.4.2-1) unstable; urgency=low + + * New upstream release + * Removed empty NEWS file from parted-doc - fixes lintian warning. + * Changed all calls to dh_testversion in debian/rules to version 2. + * Modified debian/rules to not call dh_makeshlibs for arch-independent + parted-doc package. + + -- Timshel Knoll Wed, 22 Nov 2000 01:16:52 +1100 + +parted (1.4.0-1) unstable; urgency=low + + * New upstream release + * Renamed libparted0 to libparted1, and libparted0-dev to libparted1-dev. + * Changed shlibs to depend on 'libparted1 (>= 1.4.0)' rather than + 'libparted1 (= ${Source-Version})'. + * Made libparted1 Conflicts: libparted0 Replaces: libparted0 (since both + have their NLS messages in /usr/share/locale/*/LC_MESSAGES/parted.mo) - + I must find some way to work around this!!! + + -- Timshel Knoll Sun, 19 Nov 2000 22:52:57 +1100 + +parted (1.2.13-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Mon, 13 Nov 2000 09:49:54 +1100 + +parted (1.2.12-1) unstable; urgency=low + + * New upstream release + * Changed build system to use DH_COMPAT=2, so the 'parted' package now + builds in the debian/parted directory. This included moving the 'dirs' + file to 'parted.dirs', and 'docs' to 'parted.docs', amongst other things. + + -- Timshel Knoll Sun, 5 Nov 2000 14:59:25 +1100 + +parted (1.2.11-1) unstable; urgency=low + + * New upstream release + * Moved parted.m4 (in /usr/share/aclocal) from parted to libparted0-dev. + * Moved all locales (from /usr/share/locales) from parted to libparted0. + This is the right behavior since most of the messages are for libparted, + I have asked the author if it is possible to split parted and libparted + locales ... + * Made libparted0 and libparted0-dev Conflict: parted (<< 1.2.11) to + avoid dpkg needing --force-overwrite ... + * Added -D_REENTRANT to CFLAGS in libparted/Makefile.am - to conform + to policy 3.2.1. + * Policy 3.2.1 + + -- Timshel Knoll Wed, 18 Oct 2000 12:59:48 +1100 + +parted (1.2.10-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 15 Oct 2000 23:24:15 +1100 + +parted (1.2.9-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 12 Sep 2000 22:41:38 +1100 + +parted (1.2.8-2) unstable; urgency=low + + * debian/docs: debian/libparted0.docs: debian/libparted0-dev.docs: + Removed all documentation from packages other than parted-doc. All + packages have changelog and copyright, however (as per Debian + policy) + + -- Timshel Knoll Wed, 30 Aug 2000 20:01:15 +1100 + +parted (1.2.8-1) unstable; urgency=low + + * New upstream release + * Changed Build-Depends on libuuid-dev to uuid-dev (closes: Bug#69536) + + -- Timshel Knoll Tue, 22 Aug 2000 21:27:59 +1000 + +parted (1.2.7-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Sun, 13 Aug 2000 13:33:42 +1000 + +parted (1.2.6-1) unstable; urgency=low + + * New upstream release + * Shared libs in libparted0 now install to /lib (otherwise it's pointless + having the parted executable in /sbin ...) + * Now building shlibs with `libparted 0 libparted0 (= ${Source-Version})' + rather than >= ... This is because the libparted API is still changing + quite regularly. + + -- Timshel Knoll Wed, 2 Aug 2000 21:13:42 +1000 + +parted (1.2.5-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Thu, 20 Jul 2000 09:49:29 +1000 + +parted (1.2.3-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Wed, 28 Jun 2000 21:04:42 +1000 + +parted (1.2.1-2) unstable; urgency=low + + * Removed parted-doc Recommends: parted, and got rid of versions + from Suggests: parted, libparted0, libparted0-dev + * Changed description of libparted0-dev for consistency + (the word 'disk' was missing) + + -- Timshel Knoll Thu, 15 Jun 2000 13:25:56 +1000 + +parted (1.2.1-1) unstable; urgency=low + + * New upstream release + * The last release (1.2.0) didn't build on systems without libparted-dev + or libparted0-dev already installed, fixed in this version. + * Maintainer email addresses updated to `timshel@debian.org' + * debian/README.Debian updated to remove stuff about why shared libs + won't build (because they can be now) :) + + -- Timshel Knoll Thu, 15 Jun 2000 12:57:29 +1000 + +parted (1.2.0-1) unstable; urgency=low + + * New upstream release + * Merged a whole heap of changes from my locally built series of 1.1.x + packages, listed below: + * Can now build shared libraries. Split off package libparted0 which + contains the shared libraries. + * Renamed libparted-dev to libparted0-dev. This still Provides: libparted-dev + however. + + -- Timshel Knoll Thu, 15 Jun 2000 02:24:05 +1000 + +parted (1.0.17-2) unstable; urgency=low + + * Rebuild to get rid of config.log junk in the .diff.gz (hmmm ... must've + killed ./configure ... dammit) + * Split docs off into new, separate package (parted-doc) + * libparted-dev now Suggests: parted + + -- Timshel Knoll Tue, 13 Jun 2000 01:34:34 +1000 + +parted (1.0.17-1) unstable; urgency=low + + * New upstream release + * parted executable moved from /usr/sbin to /sbin + * "Section: " in debian/control changed for both 'parted' source & + 'parted' binary packages from 'utils' to 'admin' (admin is more suitable) + * "Architecture: any" for both packages, (was 'i386 alpha'), so + packages will now be built for other arches (for resizing old DOS + drives, as parted currently only support DOS partition tables) + + -- Timshel Knoll Mon, 12 Jun 2000 15:41:48 +1000 + +parted (1.0.15-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Fri, 12 May 2000 19:08:52 +1000 + +parted (1.0.14-1) unstable; urgency=low + + * New upstream release + * Updated debian/README.Debian with current parted shared libs status ... + + -- Timshel Knoll Sun, 16 Apr 2000 16:46:47 +1000 + +parted (1.0.13-1) frozen unstable; urgency=low + + * New upstream release + * This needs to go into frozen because it fixes a release critical bug: + * Fixed a severe bug which can cause massive data loss when converting + between FAT16 and FAT32 (closes: #62029). + * dh_testversion (in debian/rules) and Build-depends debhelper version + updated to 1.2.9 for dh_link ... + * Fixed typo in debian/control: Build-Depends: liuuid-dev -> libuuid-dev :) + * Policy 3.1.1 + + -- Timshel Knoll Tue, 11 Apr 2000 17:44:42 +1000 + +parted (1.0.12-1) unstable; urgency=low + + * New upstream release + * libparted-dev.docs updated to reflect movement of API docs to doc/ + * Updated to Standards-Version 3.1.0 (with Build-Depends) + + -- Timshel Knoll Tue, 28 Mar 2000 20:07:51 +1000 + +parted (1.0.10-1) unstable; urgency=low + + * New upstream release + * libparted-dev moved from libs to devel section + + -- Timshel Knoll Fri, 3 Mar 2000 09:59:32 +1100 + +parted (1.0.9-1) frozen unstable; urgency=low + + * New upstream release (closes: Bug#58301) + + -- Timshel Knoll Thu, 17 Feb 2000 21:28:53 +1100 + +parted (1.0.7-1) frozen unstable; urgency=low + + * New upstream release (closes: Bug#55871, parted fails on disks >16Gb) + * Manpage moved to upstream sources + + -- Timshel Knoll Tue, 25 Jan 2000 23:29:56 +1100 + +parted (1.0.5-1) frozen unstable; urgency=low + + * New upstream release (closes: Bug#55613) + * Added Conflicts: fsresize and Replaces: fsresize (closes: Bug#54110) + * Updates to manpage, parted(8) + + -- Timshel Knoll Wed, 19 Jan 2000 13:28:53 +1100 + +parted (1.0.4-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Wed, 5 Jan 2000 17:23:57 +1100 + +parted (1.0.2-1) unstable; urgency=low + + * New upstream release + * Updated debian/copyright with date/time last updated + * Updated package descripion and README.Debian warnings + + -- Timshel Knoll Mon, 3 Jan 2000 13:30:02 +1100 + +parted (1.0pre8-1.1) unstable; urgency=low + + * Sponsor upload. + * Recompiled against libreadline2g as libreadline4 is not yet in + potato. (closes: Bug#52205) + + -- Torsten Landschoff Sun, 19 Dec 1999 12:05:41 +0100 + +parted (1.0pre8-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Mon, 15 Nov 1999 22:40:06 +1100 + +parted (1.0pre7-2) unstable; urgency=low + + * Copyright message and Authors updated + * Updated package description, descriptions are now more consistant + * Added warning about software being unstable to package description + * Changed libparted-dev to Section: devel + * Removed debian/dirs (not required) + * Manpage parted.8 is now only installed in the parted package + + -- Timshel Knoll Sun, 14 Nov 1999 23:29:01 +1100 + +parted (1.0pre7-1) unstable; urgency=low + + * New upstream release + + -- Timshel Knoll Tue, 9 Nov 1999 13:52:14 +1100 + +parted (1.0pre4-2) unstable; urgency=low + + * Package split into parted and libparted-dev + + -- Timshel Knoll Mon, 8 Nov 1999 18:41:28 +1100 + +parted (1.0pre4-1) unstable; urgency=low + + * Initial Release. + + -- Timshel Knoll Fri, 5 Nov 1999 18:11:28 +1100 + + --- parted-1.6.25.1.orig/debian/parted-doc.files +++ parted-1.6.25.1/debian/parted-doc.files @@ -0,0 +1 @@ +usr/share/info/parted.info --- parted-1.6.25.1.orig/debian/libparted-dev.files +++ parted-1.6.25.1/debian/libparted-dev.files @@ -0,0 +1,5 @@ +usr/lib/libparted.a +usr/lib/libparted.la +usr/lib/libparted.so +usr/include +usr/share/aclocal/parted.m4 --- parted-1.6.25.1.orig/debian/libparted-i18n.files +++ parted-1.6.25.1/debian/libparted-i18n.files @@ -0,0 +1 @@ +usr/share/locale --- parted-1.6.25.1.orig/debian/control.in +++ parted-1.6.25.1/debian/control.in @@ -0,0 +1,268 @@ +Source: parted@BINPKGVER@ +Section: admin +Priority: optional +Maintainer: Parted Maintainer Team +Uploaders: Sven Luther , Otavio Salvador +Standards-Version: 3.6.2 +Build-Depends: debhelper (>= 4.2.0), dpatch, libncurses-dev | libncurses5-dev, libreadline5-dev | libreadline-dev, uuid-dev, gettext, texinfo (>= 4.2), debianutils (>= 1.13.1), autoconf, automake1.8, libtool + +Package: parted@BINPKGVER@ +Architecture: any +Section: admin +Depends: ${shlibs:Depends} +Suggests: parted@BINPKGVER@-doc +Conflicts: fsresize, parted1.6 +Replaces: fsresize, parted1.6 +Description: The GNU Parted disk partition resizing program + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: parted@BINPKGVER@-udeb +XC-Package-Type: udeb +Architecture: any +Section: debian-installer +Priority: extra +Depends: ${shlibs:Depends} +Provides: parted +Description: The GNU Parted disk partition resizing program + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package is similar to the "big" parted package, but has + less cosmetical features resulting in smaller binary. Intended + to be used in debian-installer. + . + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted@SHAREDLIBPKGVER@ +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Suggests: parted | nparted, libparted@LIBPKGVER@-dev, libparted@LIBPKGVER@-i18n (= ${Source-Version}) +Conflicts: parted (<< 1.4.13+14pre1), libparted0, libparted1, libparted2 +Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2) +Provides: libparted +Description: The GNU Parted disk partitioning shared library + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains libparted, the required shared library + used by Parted. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted@LIBPKGVER@-udeb +XC-Package-Type: udeb +Architecture: any +Section: debian-installer +Priority: extra +Depends: ${shlibs:Depends} +Provides: libparted@SHAREDLIBPKGVER@ +Description: The GNU Parted disk partitioning shared library + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains libparted, the required shared library + used by Parted. This is a cut-down package with no normal + documentation intended to be used in debian-installer. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted@LIBPKGVER@-i18n +Architecture: all +Section: libs +Depends: libparted@SHAREDLIBPKGVER@ +Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2), libparted1.6 (<< 1.5+1.6.0-pre3-2), libparted1.4-i18n, parted (<< 1.4.13+14pre1) +Conflicts: libparted-i18n +Provides: libparted-i18n +Description: The GNU Parted disk partitioning library i18n support + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the i18n message catalogs for + libparted and parted. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted@LIBPKGVER@-dev +Architecture: any +Section: libdevel +Depends: libc6-dev, libparted@SHAREDLIBPKGVER@ (= ${Source-Version}) +Suggests: parted@BINPKGVER@ (= ${Source-Version}), parted-doc +Conflicts: libparted-dev, parted (<< 1.2.11) +Replaces: libparted-dev, libparted0-dev, libparted2-dev +Provides: libparted-dev +Description: The GNU Parted disk partitioning library development files + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the static library and header files + for libparted, which are really only of interest to parted + developers. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted@LIBPKGVER@-dbg +Architecture: any +Section: libdevel +Priority: extra +Depends: libparted@SHAREDLIBPKGVER@ (= ${Source-Version}), libparted@LIBPKGVER@-dev (= ${Source-Version}) +Conflicts: libparted-dbg +Replaces: libparted-dbg +Provides: libparted-dbg +Description: The GNU Parted disk partitioning library debug development files + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the debugging static library for + libparted, which are really only of interest to parted + developers who need to debug their programs. + . + The debugging libraries are installed as /usr/lib/libparted_g.a + Link specifically with them if you want to debug. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: parted@BINPKGVER@-doc +Architecture: all +Section: doc +Suggests: parted@BINPKGVER@ | libparted@LIBPKGVER@-dev +Conflicts: parted1.6-doc +Replaces: parted1.6-doc +Description: The GNU Parted disk partition resizing program documentation + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains user documentation for parted (for the 'parted@BINPKGVER@' + package) and API documentation for libparted (for the + 'libparted@LIBPKGVER@' and 'libparted@LIBPKGVER@-dev' packages). --- parted-1.6.25.1.orig/debian/parted-bf.manpages +++ parted-1.6.25.1/debian/parted-bf.manpages @@ -0,0 +1 @@ +doc/parted.8 --- parted-1.6.25.1.orig/debian/parted-doc.postinst +++ parted-1.6.25.1/debian/parted-doc.postinst @@ -0,0 +1,49 @@ +#! /bin/sh +# postinst script for parted-doc +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + install-info --quiet --section "Disk Management" "Disk Management" \ + /usr/share/info/parted.info.gz + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- parted-1.6.25.1.orig/debian/parted-doc.prerm +++ parted-1.6.25.1/debian/parted-doc.prerm @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for parted-doc +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + install-info --quiet --remove /usr/share/info/parted.info.gz + ;; + failed-upgrade) + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + + --- parted-1.6.25.1.orig/debian/watch +++ parted-1.6.25.1/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://ftp.gnu.org/gnu/parted/parted-(.*).tar.gz --- parted-1.6.25.1.orig/debian/libparted.files +++ parted-1.6.25.1/debian/libparted.files @@ -0,0 +1 @@ +lib/libparted*.so.* --- parted-1.6.25.1.orig/debian/libparted1.6-dev.files +++ parted-1.6.25.1/debian/libparted1.6-dev.files @@ -0,0 +1,5 @@ +usr/lib/libparted.a +usr/lib/libparted.la +usr/lib/libparted.so +usr/include +usr/share/aclocal/parted.m4 --- parted-1.6.25.1.orig/debian/copyright +++ parted-1.6.25.1/debian/copyright @@ -0,0 +1,31 @@ +This package was debianized by Timshel Knoll on +Fri, 5 Nov 1999 18:11:28 +1100. + +It was downloaded from ftp://ftp.gnu.org/gnu/parted/ + +Upstream Authors: Andrew Clausen + Lennert Buytanhek + Matthew Wilson + +Copyright: + + Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +On Debian GNU/Linux systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + + -- Timshel Knoll Tue, 13 Mar 2002 11:17:20 +1100 --- parted-1.6.25.1.orig/debian/parted-doc.docs +++ parted-1.6.25.1/debian/parted-doc.docs @@ -0,0 +1,9 @@ +AUTHORS +BUGS +README +THANKS +TODO +doc/API +doc/FAQ +doc/FAT +doc/USER.jp --- parted-1.6.25.1.orig/debian/libparted1.6-i18n.files +++ parted-1.6.25.1/debian/libparted1.6-i18n.files @@ -0,0 +1 @@ +usr/share/locale --- parted-1.6.25.1.orig/debian/README.Debian +++ parted-1.6.25.1/debian/README.Debian @@ -0,0 +1,42 @@ +GNU Parted for Debian +---------------------- + +The nature of this software means that any bugs could cause massive data loss. +While there are no known bugs at the moment, they could exist, so please back +up all important files before running it, and do so at your own risk. + +Parted currently supports DOS, Mac, PC98, BSD, GPT, MIPS and Sun disklabels / +partition tables, as well as a 'loop' (raw disk) disklabel type which is +useful for filesystems on RAID or LVM volumes. + +Filesystems currently supported: +[from the user documentation] + +Filesystem | Supported Operations + |detect |create |resize | copy | check +----------------|-------|-------|-------|-------|-------- +ext2 | * | * | *[1] | *[2] | *[3] +ext3 | * | | *[1] | *[2] | *[3] +fat16 | * | * | *[4] | *[4] | * +fat32 | * | * | * | * | * +hfs | * | | * | | +jfs | * | | | | +linux-swap | * | * | * | * | * +ntfs | * | | | | +reiserfs | * | *[5] | *[1,5]| *[5] | *[3,5] +ufs | * | | | | +xfs | * | | | | + +[1] Parted can't move the start of ext2 or ext3 partitions (yet). +[2] The size of the partition you copy to must be greater than or equal to + the size of the partition you copy from. +[3] Limited checking is done when the filesystem is opened, this is the + extent of ext2 checking done at the moment. +[4] The size of the new partition, after resizing or copying, is restricted + by the cluster size for fat (mainly affects FAT16). Parted can shrink + cluster sizes, but cannot grow them on FAT16. +[5] ReiserFS support is enabled if you install libreiserfs, currently in the + libreiserfs0.3-0 package. Since libreiserfs0.3-0 is no more in sarge, the + reiserfs create/resize/copy/check support is not built in in the debian package. + + -- Otavio Salvador , Fri Sep 9 10:19:39 2005 --- parted-1.6.25.1.orig/debian/control +++ parted-1.6.25.1/debian/control @@ -0,0 +1,268 @@ +Source: parted +Section: admin +Priority: optional +Maintainer: Parted Maintainer Team +Uploaders: Sven Luther , Otavio Salvador +Standards-Version: 3.6.2 +Build-Depends: debhelper (>= 4.2.0), dpatch, libncurses-dev | libncurses5-dev, libreadline5-dev | libreadline-dev, uuid-dev, gettext, texinfo (>= 4.2), debianutils (>= 1.13.1), autoconf, automake1.8, libtool + +Package: parted +Architecture: any +Section: admin +Depends: ${shlibs:Depends} +Suggests: parted-doc +Conflicts: fsresize, parted1.6 +Replaces: fsresize, parted1.6 +Description: The GNU Parted disk partition resizing program + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: parted-udeb +XC-Package-Type: udeb +Architecture: any +Section: debian-installer +Priority: extra +Depends: ${shlibs:Depends} +Provides: parted +Description: The GNU Parted disk partition resizing program + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package is similar to the "big" parted package, but has + less cosmetical features resulting in smaller binary. Intended + to be used in debian-installer. + . + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted1.6-13 +Architecture: any +Section: libs +Depends: ${shlibs:Depends} +Suggests: parted | nparted, libparted1.6-dev, libparted1.6-i18n (= ${Source-Version}) +Conflicts: parted (<< 1.4.13+14pre1), libparted0, libparted1, libparted2 +Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2) +Provides: libparted +Description: The GNU Parted disk partitioning shared library + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains libparted, the required shared library + used by Parted. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted1.6-udeb +XC-Package-Type: udeb +Architecture: any +Section: debian-installer +Priority: extra +Depends: ${shlibs:Depends} +Provides: libparted1.6-13 +Description: The GNU Parted disk partitioning shared library + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains libparted, the required shared library + used by Parted. This is a cut-down package with no normal + documentation intended to be used in debian-installer. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted1.6-i18n +Architecture: all +Section: libs +Depends: libparted1.6-13 +Replaces: libparted0, libparted1, libparted2, libparted1.4 (<< 1.4.24-2), libparted1.6 (<< 1.5+1.6.0-pre3-2), libparted1.4-i18n, parted (<< 1.4.13+14pre1) +Conflicts: libparted-i18n +Provides: libparted-i18n +Description: The GNU Parted disk partitioning library i18n support + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the i18n message catalogs for + libparted and parted. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted1.6-dev +Architecture: any +Section: libdevel +Depends: libc6-dev, libparted1.6-13 (= ${Source-Version}) +Suggests: parted (= ${Source-Version}), parted-doc +Conflicts: libparted-dev, parted (<< 1.2.11) +Replaces: libparted-dev, libparted0-dev, libparted2-dev +Provides: libparted-dev +Description: The GNU Parted disk partitioning library development files + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the static library and header files + for libparted, which are really only of interest to parted + developers. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: libparted1.6-dbg +Architecture: any +Section: libdevel +Priority: extra +Depends: libparted1.6-13 (= ${Source-Version}), libparted1.6-dev (= ${Source-Version}) +Conflicts: libparted-dbg +Replaces: libparted-dbg +Provides: libparted-dbg +Description: The GNU Parted disk partitioning library debug development files + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains the Parted binary and manual page. + . + This package contains the debugging static library for + libparted, which are really only of interest to parted + developers who need to debug their programs. + . + The debugging libraries are installed as /usr/lib/libparted_g.a + Link specifically with them if you want to debug. + . + Parted currently supports DOS, Mac, Sun, BSD, GPT, MIPS and + PC98 disklabels/partition tables, as well as a 'loop' (raw + disk) type which allows use on RAID/LVM. Filesystems which + are currently fully supported are ext2, ext3, fat (FAT16 + and FAT32), ReiserFS (with libreiserfs) and linux-swap. + Parted can also detect and remove HFS (Mac OS), JFS, NTFS, + UFS (Sun and HP), XFS and ASFS/AFFS/APFS (Amiga) filesystems, + but cannot create, resize or check these filesystems yet. + . + Note that ReiserFS support is only enabled if you install + the libreiserfs0.3-0 package. Since libreiserfs0.3-0 has been + removed from sarge, ReiserFS support is not compiled in the + default package. + . + The nature of this software means that any bugs could cause + massive data loss. While there are no known bugs at the moment, + they could exist, so please back up all important files before + running it, and do so at your own risk. + +Package: parted-doc +Architecture: all +Section: doc +Suggests: parted | libparted1.6-dev +Conflicts: parted1.6-doc +Replaces: parted1.6-doc +Description: The GNU Parted disk partition resizing program documentation + GNU Parted is a program that allows you to create, destroy, + resize, move and copy hard disk partitions. This is useful + for creating space for new operating systems, reorganising + disk usage, and copying data to new hard disks. This package + contains user documentation for parted (for the 'parted' + package) and API documentation for libparted (for the + 'libparted1.6' and 'libparted1.6-dev' packages).