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/ac3676f6e549
branches: trunk
changeset: 466194:ac3676f6e549
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 e4d5be92281a -r ac3676f6e549 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