Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/distrib/utils/sysinst Pull up revision 1.61 (via patch)...



details:   https://anonhg.NetBSD.org/src/rev/34f40c17d5b5
branches:  netbsd-1-6
changeset: 529148:34f40c17d5b5
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Oct 13 23:04:46 2002 +0000

description:
Pull up revision 1.61 (via patch) (requested by grant in ticket #853):
use current values for start/size/bsize/fsize as defaults when editing
disklabel partitions.

diffstat:

 distrib/utils/sysinst/menus.mi.en |  16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diffs (39 lines):

diff -r 95ae55d34705 -r 34f40c17d5b5 distrib/utils/sysinst/menus.mi.en
--- a/distrib/utils/sysinst/menus.mi.en Sun Oct 13 23:00:59 2002 +0000
+++ b/distrib/utils/sysinst/menus.mi.en Sun Oct 13 23:04:46 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: menus.mi.en,v 1.51.2.6 2002/09/30 13:20:09 lukem Exp $ */
+/*     $NetBSD: menus.mi.en,v 1.51.2.7 2002/10/13 23:04:46 lukem Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -155,8 +155,10 @@
        option "Offset/size", action  
                {       int start, size;
                        msg_display_add(MSG_defaultunit, multname);
-                       start = getpartoff(MSG_offset, 0);
-                       size = getpartsize(MSG_size, start, 0);
+                       start = getpartoff(MSG_offset,
+                               bsdlabel[editpart].pi_offset);
+                       size = getpartsize(MSG_size, start,
+                               bsdlabel[editpart].pi_size);
                        if (size == -1)
                                size = dlsize - start;
                        bsdlabel[editpart].pi_offset = start;
@@ -170,10 +172,14 @@
                                process_menu (MENU_ok);
                                return FALSE;
                        }
-                       msg_prompt_add (MSG_bsize, NULL, buf, 40);
+                       snprintf(buf, sizeof(buf), "%d",
+                               bsdlabel[editpart].pi_bsize);
+                       msg_prompt_add (MSG_bsize, buf, buf, 40);
                        i = atoi(buf);
                        bsdlabel[editpart].pi_bsize = i;
-                       msg_prompt_add (MSG_fsize, NULL, buf, 40);
+                       snprintf(buf, sizeof(buf), "%d",
+                               bsdlabel[editpart].pi_fsize);
+                       msg_prompt_add (MSG_fsize, buf, buf, 40);
                        i = atoi(buf);
                        bsdlabel[editpart].pi_fsize = i;
                };



Home | Main Index | Thread Index | Old Index