summaryrefslogtreecommitdiff
path: root/sbin/disklabel/editor.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-07-16 18:03:45 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-07-16 18:03:45 +0000
commit44f46539474c744c1f1f79aa4a1d4d9bb410080f (patch)
tree091fd6dadde41582367fc32927d9c68fae6ee665 /sbin/disklabel/editor.c
parentd7a2a4d548d3f3ab6e52e6a605c58d9f5ecbf3aa (diff)
new default frag/block sizes.
reminded by millert@
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r--sbin/disklabel/editor.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 744ba4c322d..f563dc322d4 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.86 2003/06/17 21:56:24 millert Exp $ */
+/* $OpenBSD: editor.c,v 1.87 2003/07/16 18:03:44 tedu Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: editor.c,v 1.86 2003/06/17 21:56:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.87 2003/07/16 18:03:44 tedu Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -514,7 +514,7 @@ editor_add(struct disklabel *lp, char **mp, u_int32_t *freep, char *p)
pp->p_size = *freep;
pp->p_offset = next_offset(lp, &pp->p_size);
pp->p_fstype = partno == 1 ? FS_SWAP : FS_BSDFFS;
- pp->p_fsize = 1024;
+ pp->p_fsize = 2048;
pp->p_frag = 8;
pp->p_cpg = 16;
old_offset = pp->p_offset;
@@ -2076,7 +2076,7 @@ get_fsize(struct disklabel *lp, int partno)
for (;;) {
ui = getuint(lp, partno, "fragment size",
- "Size of fs block fragments. Usually 1024 or 512.",
+ "Size of fs block fragments. Usually 2048 or 512.",
pp->p_fsize, pp->p_fsize, 0, 0);
if (ui == UINT_MAX - 1) {
fputs("Command aborted\n", stderr);
@@ -2106,7 +2106,7 @@ get_bsize(struct disklabel *lp, int partno)
for (;;) {
ui = getuint(lp, partno, "block size",
- "Size of filesystem blocks. Usually 8192 or 4096.",
+ "Size of filesystem blocks. Usually 16384 or 4096.",
pp->p_fsize * pp->p_frag, pp->p_fsize * pp->p_frag,
0, 0);