diff options
author | Karel Zak | 2006-12-07 00:26:22 +0100 |
---|---|---|
committer | Karel Zak | 2006-12-07 00:26:22 +0100 |
commit | 0b0bb92085fc7a7e7d2afe984e43161a2f4ec140 (patch) | |
tree | e560f6b005f0e83713e8259f2f12806dd8d39ec6 /fdisk/fdisksgilabel.c | |
parent | Imported from util-linux-2.12h tarball. (diff) | |
download | kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.gz kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.tar.xz kernel-qcow2-util-linux-0b0bb92085fc7a7e7d2afe984e43161a2f4ec140.zip |
Imported from util-linux-2.12i tarball.
Diffstat (limited to 'fdisk/fdisksgilabel.c')
-rw-r--r-- | fdisk/fdisksgilabel.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fdisk/fdisksgilabel.c b/fdisk/fdisksgilabel.c index c9ccd3e39..663e925aa 100644 --- a/fdisk/fdisksgilabel.c +++ b/fdisk/fdisksgilabel.c @@ -598,13 +598,11 @@ sgi_set_volhdr(void) for (n=8; n<partitions; n++) { if (!sgi_get_num_sectors(n)) { /* - * 5 cylinders is an arbitrary value I like - * IRIX 5.3 stored files in the volume header - * (like sash, symmon, fx, ide) with ca. 3200 - * sectors. + * Choose same default volume header size + * as IRIX fx uses. */ - if (heads * sectors * 5 < sgi_get_lastblock()) - sgi_set_partition(n, 0, heads * sectors * 5, SGI_VOLHDR); + if (4096 < sgi_get_lastblock()) + sgi_set_partition(n, 0, 4096, SGI_VOLHDR); break; } } |