Your message dated Fri, 24 Dec 2010 21:33:20 +0000
with message-id <e1pwfgk-0007mm...@franck.debian.org>
and subject line Bug#510130: fixed in util-linux 2.17.2-4
has caused the Debian Bug report #510130,
regarding Error calculing volhdr partition boundaries on SGI disklabel
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
510130: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510130
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: util-linux
Version: 2.13.1.1-1
Severity: grave
Tags: patch

Yesterday I tried the d-i rc1 for lenny on a silicon graphics O2 (a
complete report is available as Debian bug #510060).

The problem I found against fdisk is that when using large disks (i.e.,
disks with more than 4096 sectors per cylinder), the volhdr partition is
incorrectly sized because it is marked as starting and ending on
cylinder 0. When having this specific case, this is what happen:

Command (m for help): p

Disk /dev/sda (SGI disk label): 255 heads, 63 sectors, 8941 cylinders
Units = cylinders of 16065 * 512 bytes

----- partitions -----
Pt#    Device  Info     Start       End   Sectors  Id  System
----- Bootinfo -----
Bootfile: /unix
----- Directory Entries -----
 0: arcboot    sector    4 size   72492

Command (m for help): n
Partition number (1-16): 1
Attempting to generate entire disk entry automatically.
First cylinder (1-8940, default 1): 
Using default value 1
 Last cylinder (1-8940, default 8940): 2000

Command (m for help): p

Disk /dev/sda (SGI disk label): 255 heads, 63 sectors, 8941 cylinders
Units = cylinders of 16065 * 512 bytes

----- partitions -----
Pt#    Device  Info     Start       End   Sectors  Id  System
 1: /dev/sda1  boot         1      2000  32130000  83  Linux native
 9: /dev/sda2               0         0      4096   0  SGI volhdr
11: /dev/sda3               0      8940 143637165   6  SGI volume
----- Bootinfo -----
Bootfile: /unix
----- Directory Entries -----
 0: arcboot    sector    4 size   72492


Command (m for help): n
Partition number (1-16): 2
First cylinder (1-0): 1
Value out of range.
First cylinder (1-0): 0
Value out of range.
First cylinder (1-0): 2001
Value out of range.
First cylinder (1-0): ^C

As you may see, once the first partition has been created, fdisk will
automatically create partitions 9 and 11, but it will wrongly set the
end boundary of volhdr. Starting with this error, it is not possible to
add any new partition, because the accepted cylinder range would be
"1-0".

Please find attached a solution for this bug. This solution raise the
volhdr size of 4096 up to the first cylinder boundary. If the boundary
is less than 4096 then nothing is changed.

If you like the fix and will accept this patch, please add this note to
the changelog:

 * fix of mips related bug, dedicate to ths.

Thanks,
Giuseppe
--- fdisk/fdisksgilabel.c.orig	2008-04-21 14:58:43.000000000 +0200
+++ fdisk/fdisksgilabel.c	2008-12-29 16:01:14.000000000 +0100
@@ -604,8 +604,11 @@
 			 * Choose same default volume header size
 			 * as IRIX fx uses.
 			 */
-			if (4096 < sgi_get_lastblock())
-				sgi_set_partition(n, 0, 4096, SGI_VOLHDR);
+ 			unsigned hdrsize = heads * sectors;
+ 			if (hdrsize<4096)
+ 				hdrsize=4096;
+ 			if (hdrsize < sgi_get_lastblock())
+ 				sgi_set_partition(n, 0, hdrsize, SGI_VOLHDR);
 			break;
 		}
 	}

--- End Message ---
--- Begin Message ---
Source: util-linux
Source-Version: 2.17.2-4

We believe that the bug you reported is fixed in the latest version of
util-linux, which is due to be installed in the Debian FTP archive:

bsdutils_2.17.2-4_amd64.deb
  to main/u/util-linux/bsdutils_2.17.2-4_amd64.deb
bsdutils_2.17.2-4_i386.deb
  to main/u/util-linux/bsdutils_2.17.2-4_i386.deb
cfdisk-udeb_2.17.2-4_amd64.udeb
  to main/u/util-linux/cfdisk-udeb_2.17.2-4_amd64.udeb
cfdisk-udeb_2.17.2-4_i386.udeb
  to main/u/util-linux/cfdisk-udeb_2.17.2-4_i386.udeb
fdisk-udeb_2.17.2-4_amd64.udeb
  to main/u/util-linux/fdisk-udeb_2.17.2-4_amd64.udeb
fdisk-udeb_2.17.2-4_i386.udeb
  to main/u/util-linux/fdisk-udeb_2.17.2-4_i386.udeb
libblkid-dev_2.17.2-4_amd64.deb
  to main/u/util-linux/libblkid-dev_2.17.2-4_amd64.deb
libblkid-dev_2.17.2-4_i386.deb
  to main/u/util-linux/libblkid-dev_2.17.2-4_i386.deb
libblkid1-udeb_2.17.2-4_amd64.udeb
  to main/u/util-linux/libblkid1-udeb_2.17.2-4_amd64.udeb
libblkid1-udeb_2.17.2-4_i386.udeb
  to main/u/util-linux/libblkid1-udeb_2.17.2-4_i386.udeb
libblkid1_2.17.2-4_amd64.deb
  to main/u/util-linux/libblkid1_2.17.2-4_amd64.deb
libblkid1_2.17.2-4_i386.deb
  to main/u/util-linux/libblkid1_2.17.2-4_i386.deb
libuuid1-udeb_2.17.2-4_amd64.udeb
  to main/u/util-linux/libuuid1-udeb_2.17.2-4_amd64.udeb
libuuid1-udeb_2.17.2-4_i386.udeb
  to main/u/util-linux/libuuid1-udeb_2.17.2-4_i386.udeb
libuuid1_2.17.2-4_amd64.deb
  to main/u/util-linux/libuuid1_2.17.2-4_amd64.deb
libuuid1_2.17.2-4_i386.deb
  to main/u/util-linux/libuuid1_2.17.2-4_i386.deb
mount_2.17.2-4_amd64.deb
  to main/u/util-linux/mount_2.17.2-4_amd64.deb
mount_2.17.2-4_i386.deb
  to main/u/util-linux/mount_2.17.2-4_i386.deb
util-linux-locales_2.17.2-4_all.deb
  to main/u/util-linux/util-linux-locales_2.17.2-4_all.deb
util-linux-udeb_2.17.2-4_amd64.udeb
  to main/u/util-linux/util-linux-udeb_2.17.2-4_amd64.udeb
util-linux-udeb_2.17.2-4_i386.udeb
  to main/u/util-linux/util-linux-udeb_2.17.2-4_i386.udeb
util-linux_2.17.2-4.diff.gz
  to main/u/util-linux/util-linux_2.17.2-4.diff.gz
util-linux_2.17.2-4.dsc
  to main/u/util-linux/util-linux_2.17.2-4.dsc
util-linux_2.17.2-4_amd64.deb
  to main/u/util-linux/util-linux_2.17.2-4_amd64.deb
util-linux_2.17.2-4_i386.deb
  to main/u/util-linux/util-linux_2.17.2-4_i386.deb
uuid-dev_2.17.2-4_amd64.deb
  to main/u/util-linux/uuid-dev_2.17.2-4_amd64.deb
uuid-dev_2.17.2-4_i386.deb
  to main/u/util-linux/uuid-dev_2.17.2-4_i386.deb
uuid-runtime_2.17.2-4_amd64.deb
  to main/u/util-linux/uuid-runtime_2.17.2-4_amd64.deb
uuid-runtime_2.17.2-4_i386.deb
  to main/u/util-linux/uuid-runtime_2.17.2-4_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 510...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
LaMont Jones <lam...@debian.org> (supplier of updated util-linux package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 24 Dec 2010 14:06:47 -0700
Source: util-linux
Binary: util-linux util-linux-locales mount bsdutils fdisk-udeb cfdisk-udeb 
libblkid1 libblkid1-udeb libblkid-dev libuuid1 uuid-runtime libuuid1-udeb 
uuid-dev util-linux-udeb
Architecture: all amd64 i386 source
Version: 2.17.2-4
Distribution: unstable
Urgency: low
Maintainer: LaMont Jones <lam...@debian.org>
Changed-By: LaMont Jones <lam...@debian.org>
Closes: 117596 510130 566072 593336
Description: 
 bsdutils   - Basic utilities from 4.4BSD-Lite
 cfdisk-udeb - Manually partition a hard drive (cfdisk) (udeb)
 fdisk-udeb - Manually partition a hard drive (fdisk) (udeb)
 libblkid1  - block device id library
 libblkid1-udeb - block device id library (udeb)
 libblkid-dev - block device id library - headers and static libraries
 libuuid1-udeb - stripped down universally unique id library, for 
debian-installer (udeb)
 libuuid1   - Universally Unique ID library
 mount      - Tools for mounting and manipulating filesystems
 util-linux-locales - Locales files for util-linux
 util-linux - Miscellaneous system utilities
 util-linux-udeb - Miscellaneous system utilities (udeb)
 uuid-dev   - universally unique id library - headers and static libraries
 uuid-runtime - runtime components for the Universally Unique ID library
Changes: 
 util-linux (2.17.2-4) unstable; urgency=low
 .
   [Miklos Szeredi]
 .
   * mount: don't canonicalize "spec" with --no-canonicalize option.
     Closes: #593336
 .
   [Karel Zak]
 .
   * fdisk: fix freespace boundaries calculation on SGI disklabel.
     Closes: #510130
 .
   [LaMont Jones]
 .
   * Deliver agetty as both agetty and getty, preferring agetty.
     Closes: #117596
   * Declare source format (1.0)
   * use debconf (iff installed) to warn about noauto fileysstems with non-zero
     pass numbers.  Closes: #566072
   * update lintian-overrides, actually install them in the deb
Checksums-Sha1: 
 b42cffe7e92d43df6edb5c02ab8f6af5e4e505e3 733094 util-linux_2.17.2-4_amd64.deb
 dacd854813cf821c5e56f7a2762185bbcb3aa5a6 177428 mount_2.17.2-4_amd64.deb
 e90b6e6592c7708a38a903f55fc2d37ea1f2ab19 79348 bsdutils_2.17.2-4_amd64.deb
 3f83db5e7046e8bd03e85377817f3554076447f0 76696 fdisk-udeb_2.17.2-4_amd64.udeb
 8dbefdab69ef841e9741c3598d5e012256d2dac0 1363992 
cfdisk-udeb_2.17.2-4_amd64.udeb
 66a1bcf4a81cb1c9a212af1d91f4db8f6e0f60fe 107686 libblkid1_2.17.2-4_amd64.deb
 91ba0f2aa653e8bbabd154d329c7c0646c2ac281 57924 
libblkid1-udeb_2.17.2-4_amd64.udeb
 0a1b313c1cf57d688003bf26d44d384faeec6f69 135130 libblkid-dev_2.17.2-4_amd64.deb
 f0e9d7b9de393b7e9d5abf54615ae56722a90ef3 58388 libuuid1_2.17.2-4_amd64.deb
 bae3b5c65d3be08e59696fc4cc3f73679c5a9821 61842 uuid-runtime_2.17.2-4_amd64.deb
 eca47d11c5c85bd370bd851735d6b0ab0a065332 8032 libuuid1-udeb_2.17.2-4_amd64.udeb
 18767801687b4defaab104df3b6707b469aad1e8 73018 uuid-dev_2.17.2-4_amd64.deb
 96c479ee111bba7fa85f50b427d6e61a4b5cf18d 10882 
util-linux-udeb_2.17.2-4_amd64.udeb
 1275dc1b4a39f485e74db857a1442aa7c7cdacdf 1386234 
util-linux-locales_2.17.2-4_all.deb
 07512c1edfd3a7015e15cc1566c788af7bb7b425 702320 util-linux_2.17.2-4_i386.deb
 31e1cd1b876fa053dc13fc64f3442cbffc218d27 169766 mount_2.17.2-4_i386.deb
 a643529ca09db05b652b9ab1fcd3731f0f53abf6 77732 bsdutils_2.17.2-4_i386.deb
 fd7903de6a38a10672df1aeb0abe543d5e10eccf 71478 fdisk-udeb_2.17.2-4_i386.udeb
 1924df897efa7b8c730304a454c442f1b080eebd 1363120 cfdisk-udeb_2.17.2-4_i386.udeb
 342e8943f2e7d9a55e27ad04a004a7178edb0fe7 105642 libblkid1_2.17.2-4_i386.deb
 a75669cee39f2151f11fd91b7dc82de51fa9c306 55976 
libblkid1-udeb_2.17.2-4_i386.udeb
 474fe848503ab0b7351b9bf8e343b8899d1aca20 129686 libblkid-dev_2.17.2-4_i386.deb
 6ffc7427a83ab4aca752406461ba49889365a51c 58074 libuuid1_2.17.2-4_i386.deb
 384a2daad6b9a64d04fe2f16523aa1bce997a084 61008 uuid-runtime_2.17.2-4_i386.deb
 727a15665c39b80641fc0c5c907cd827793bb094 7786 libuuid1-udeb_2.17.2-4_i386.udeb
 187b8d09201c3df75602b0e9efced8431c66fb68 71852 uuid-dev_2.17.2-4_i386.deb
 0d36a4b383058a1ac8ddcf1b109d9c0aac5cca8a 10174 
util-linux-udeb_2.17.2-4_i386.udeb
 d699910fcefa42e5963f3b7c47541ade61162056 1485 util-linux_2.17.2-4.dsc
 be3d8612ef3e40e3d3e60038e926cb51d0e6ce36 178379 util-linux_2.17.2-4.diff.gz
Checksums-Sha256: 
 e7969a7edb0235b25465fffeb86d1cc8b253e18e2ebe792836a03953f4fbfc74 733094 
util-linux_2.17.2-4_amd64.deb
 f5481259ac44d1ea1fcb006531253bb7fd15a616ef8c647a5510a6f2dfc9dda9 177428 
mount_2.17.2-4_amd64.deb
 e2373289b70d07ffbcc59c0cb2d5f700df2de7ce5278612a960d20dcceafb76f 79348 
bsdutils_2.17.2-4_amd64.deb
 6c4bcf7bb185544bbeea8d73276822ba444765f22f486ec78bf741e6b3b233c5 76696 
fdisk-udeb_2.17.2-4_amd64.udeb
 d795583860ed4fc903104ce8cb3696d3a95ed58410e53088c0cc023cbe6528db 1363992 
cfdisk-udeb_2.17.2-4_amd64.udeb
 dec111ecf447d5d4be6d77438a6c3179b11988ea2986bdc4f5227acb20038661 107686 
libblkid1_2.17.2-4_amd64.deb
 b6ac5fffe6f6d5b67252ec5cce45c0959f05fa1600c3bbe039c85897bdff79c5 57924 
libblkid1-udeb_2.17.2-4_amd64.udeb
 b5b9b2b181f9b1d7335203e5eb4cc5faea34b635b324cbb1d8b11312cc0b6f1d 135130 
libblkid-dev_2.17.2-4_amd64.deb
 b4a43a05362e191aa71dcf88bba29074828c127ee2bd8456906f5f142cadad62 58388 
libuuid1_2.17.2-4_amd64.deb
 76348248fd642bb8efbed9984d8654312dad30665c0f7e616492bd5d05aadbd7 61842 
uuid-runtime_2.17.2-4_amd64.deb
 5d90a16b209d273c0a1ac8f4b704eb7104a8e6e46d783ec9ffba15b99ac47c84 8032 
libuuid1-udeb_2.17.2-4_amd64.udeb
 d0b0e0294fa23d78d06b33b6d1b6ae374e11a7c0dadb1e5fea02ba2538d76251 73018 
uuid-dev_2.17.2-4_amd64.deb
 2af7ca6250ad146aa0cc601fdcf4eb035f51a18ef23de7df49d100c76f91a28f 10882 
util-linux-udeb_2.17.2-4_amd64.udeb
 81a801f470fab2c2824e1c835b1f7f7e460d81906048357acb3b21d526efd9cd 1386234 
util-linux-locales_2.17.2-4_all.deb
 de4532defb0970ef86bf51048d02d82f346e62a44a0cfba9d146a65988539885 702320 
util-linux_2.17.2-4_i386.deb
 167357e1a5a32a6758e85ec62525d98b168be1b24a4ee5dc15ae01f0bd4f064a 169766 
mount_2.17.2-4_i386.deb
 3602c72c8c59a4531859ed000db0cc68751b415c4f30a32d0ee78c207b3530d3 77732 
bsdutils_2.17.2-4_i386.deb
 b8565cea14a3e0c2a77a43b822727c8bec116e5d496e01c18b52c8ab5f21806a 71478 
fdisk-udeb_2.17.2-4_i386.udeb
 9463a6c39de2cd319cc40dd76fea778cac9c96846c589c91ccca8b5cca12ecee 1363120 
cfdisk-udeb_2.17.2-4_i386.udeb
 45212c6b832a6939def4b3bcd4129327c45f898f513f25b395061b9f5606586a 105642 
libblkid1_2.17.2-4_i386.deb
 32a255c32a2c501da8e0b428bd4e7e27db5c2f97a5e558c28b5a124fe512d99b 55976 
libblkid1-udeb_2.17.2-4_i386.udeb
 56d6aaf63df7df1c87a1cee11c2add15b2e8d49a5184716fb32ea69565751269 129686 
libblkid-dev_2.17.2-4_i386.deb
 4db3c3186716379f00c66e4dbb20007b95d9a11f9a9c87bb4f4b2a5a0086e07c 58074 
libuuid1_2.17.2-4_i386.deb
 31e358e2c23e76e6ce3acac2c2145ee588c3760ebc4f19ca2838f5be03216a99 61008 
uuid-runtime_2.17.2-4_i386.deb
 b85c2953092e935501a61a0b0f830e18f8459a58ddce329d6b1c012aef5cea69 7786 
libuuid1-udeb_2.17.2-4_i386.udeb
 f18f5c2cd3d967a1093b11e59442ea953b440a969299ab3fd9a60a560df2e1b1 71852 
uuid-dev_2.17.2-4_i386.deb
 d5ba885ba7008fe3e27f0554688f75e7847280068a26110ef63d8dfb4c04de5e 10174 
util-linux-udeb_2.17.2-4_i386.udeb
 37daa77d601507a61fc2e96d7eb906bba167684903ccd22bfea133c5a9204aa7 1485 
util-linux_2.17.2-4.dsc
 237faea7b411fe7d68db8278cb589b1f04eae2e0734971166c14d72730758282 178379 
util-linux_2.17.2-4.diff.gz
Files: 
 3eb5c3a4423423a055a7ec976a9e1478 733094 utils required 
util-linux_2.17.2-4_amd64.deb
 25f08fde0e2ef538817fa27e59595448 177428 admin required mount_2.17.2-4_amd64.deb
 6c904f72e38e52cbeef9bbdce0170f32 79348 utils required 
bsdutils_2.17.2-4_amd64.deb
 c1691d53d1250e538eeff93d126f3865 76696 debian-installer extra 
fdisk-udeb_2.17.2-4_amd64.udeb
 083cc27615ee5672cdfa876f9ad66c3d 1363992 debian-installer extra 
cfdisk-udeb_2.17.2-4_amd64.udeb
 aaaa002f1f753b619df7ec0855dca6ea 107686 libs required 
libblkid1_2.17.2-4_amd64.deb
 240f6becb8c3b8058a5b76dd291d855a 57924 debian-installer optional 
libblkid1-udeb_2.17.2-4_amd64.udeb
 8d2d3a90c1b11f2d19655c58a64c2e1a 135130 libdevel extra 
libblkid-dev_2.17.2-4_amd64.deb
 0e5f028dafcbee81cd95c0398247f90e 58388 libs required 
libuuid1_2.17.2-4_amd64.deb
 75ad1cda79a7889443780558ca087833 61842 libs optional 
uuid-runtime_2.17.2-4_amd64.deb
 ddcf606afe4112894d9350e4da31627b 8032 debian-installer optional 
libuuid1-udeb_2.17.2-4_amd64.udeb
 339d3a9f23a498bf06fa33d9462eca47 73018 libdevel extra 
uuid-dev_2.17.2-4_amd64.deb
 188d0d5dae529065989a5b662973e756 10882 debian-installer optional 
util-linux-udeb_2.17.2-4_amd64.udeb
 a63ccb435b4c4d2273af5ec55a822a5c 1386234 utils optional 
util-linux-locales_2.17.2-4_all.deb
 134554827c7385fe2adb72d9d229647b 702320 utils required 
util-linux_2.17.2-4_i386.deb
 2792bf0f8c1643bf4bf099a6ec07a1ee 169766 admin required mount_2.17.2-4_i386.deb
 d716197e5f750e60eacb86e1bf21811e 77732 utils required 
bsdutils_2.17.2-4_i386.deb
 4c9f7cc85d13cc18f27fefc87d7f7ec8 71478 debian-installer extra 
fdisk-udeb_2.17.2-4_i386.udeb
 9fd0f605a54eea3c89a8d942e3621c55 1363120 debian-installer extra 
cfdisk-udeb_2.17.2-4_i386.udeb
 9b9c0186c98ef65fd3677e7cfc1f2b90 105642 libs required 
libblkid1_2.17.2-4_i386.deb
 99b6f3d5b45e9732592581fc5288b727 55976 debian-installer optional 
libblkid1-udeb_2.17.2-4_i386.udeb
 de637e331eef1b0761b38e5da58cb16d 129686 libdevel extra 
libblkid-dev_2.17.2-4_i386.deb
 84a3ff211b0cfee91f7c299aa4c0d0ee 58074 libs required libuuid1_2.17.2-4_i386.deb
 4c33967f9be3088225534d443fc01829 61008 libs optional 
uuid-runtime_2.17.2-4_i386.deb
 a2058c879cf305bffc2451d43a3a95bc 7786 debian-installer optional 
libuuid1-udeb_2.17.2-4_i386.udeb
 2c8341601cb820af1495c8ec8033df48 71852 libdevel extra 
uuid-dev_2.17.2-4_i386.deb
 d18b070e001e90e842611cb7d1c674a3 10174 debian-installer optional 
util-linux-udeb_2.17.2-4_i386.udeb
 18540220360b93b6ef6a1474c4fe2958 1485 base required util-linux_2.17.2-4.dsc
 7ffb37e2623aa2c682b6c694a967b8c8 178379 base required 
util-linux_2.17.2-4.diff.gz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFNFQ43zN/kmwoKyScRArgtAJ4+ObF/Xypj8psVKpcx48VFACGsHACePyX3
qjD1WXbZb63/d1yMoHSKLBE=
=FUzB
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to