Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/sysinst Pass proper track size when initializing th...
details: https://anonhg.NetBSD.org/src/rev/70e008229677
branches: trunk
changeset: 1005611:70e008229677
user: martin <martin%NetBSD.org@localhost>
date: Sat Dec 14 20:41:58 2019 +0000
description:
Pass proper track size when initializing the default alignment - this is
important with sunlabels.
diffstat:
usr.sbin/sysinst/disklabel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 5619bcf73eb9 -r 70e008229677 usr.sbin/sysinst/disklabel.c
--- a/usr.sbin/sysinst/disklabel.c Sat Dec 14 20:28:02 2019 +0000
+++ b/usr.sbin/sysinst/disklabel.c Sat Dec 14 20:41:58 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disklabel.c,v 1.24 2019/12/14 19:26:17 martin Exp $ */
+/* $NetBSD: disklabel.c,v 1.25 2019/12/14 20:41:58 martin Exp $ */
/*
* Copyright 2018 The NetBSD Foundation, Inc.
@@ -226,7 +226,7 @@
parts->dp.disk = strdup(disk);
parts->dp.disk_start = start;
parts->dp.disk_size = parts->dp.free_space = len;
- disklabel_init_default_alignment(parts, 0);
+ disklabel_init_default_alignment(parts, parts->l.d_secpercyl);
for (int part = 0; part < parts->l.d_npartitions; part++) {
if (parts->l.d_partitions[part].p_fstype == FS_UNUSED
Home |
Main Index |
Thread Index |
Old Index