Module Name:    src
Committed By:   martin
Date:           Sat Dec 14 20:41:58 UTC 2019

Modified Files:
        src/usr.sbin/sysinst: disklabel.c

Log Message:
Pass proper track size when initializing the default alignment - this is
important with sunlabels.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/usr.sbin/sysinst/disklabel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/disklabel.c
diff -u src/usr.sbin/sysinst/disklabel.c:1.24 src/usr.sbin/sysinst/disklabel.c:1.25
--- src/usr.sbin/sysinst/disklabel.c:1.24	Sat Dec 14 19:26:17 2019
+++ src/usr.sbin/sysinst/disklabel.c	Sat Dec 14 20:41:58 2019
@@ -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 @@ disklabel_parts_read(const char *disk, d
 	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

Reply via email to